When it comes to the first step, the most likely response is to use OpenGL ES .... However, to achieve such a small function, to use this thing, inexplicable fear Ah!!!! So far I have not figured out how to play this ...Well, fortunately, there's a camera class that can help us, and it's said that the underlying implementation is also using OpenGL ESNote: The Android.graphics.Camera is usedWords not much to say, directly on the code: Public class_3danimationextendsAnimation {Private floatmfromd
effectCamerairishollowopen//Camera lens open effect (does not support transition direction) Camerairishollowclose//Camera lens Close effect (no transition direction is supported)Transition Direction Kcatransitionfromright Kcatransitionfromleft The use of kcatransitionfrombottomkcatransitionfromtopcatransition catransition *anim = [Catransition animation];anim.type= @ "Cube";//Animation transition typeAnim.subtype = Kcatransitionfromtop;//Animation transition DirectionAnim.duration =1;//animatio
connections, 2 to 3 connections, and 3 to 0 connections.
5. gl_triangles
3n, 3N + 1, and 3N + 2 vertices form a triangle, and the remainder vertex left is ignored. For example, (,) is an index, and 1, 2, and 3 constitute a triangle, 4, 5, and 6 form a triangle.
6. gl_triangles_strif
Connect two adjacent vertices into a triangle. Different from the preceding vertex, the nth vertex is connected to the nth vertex, for example (,) as the index, A triangle consists of 0, 1 and 2, and a triangle cons
(Material source code) Cat and cat learning IOS () core of UI animation two lines of code to deal with 3D transfer (android CRYING), iosandroid
CAT/CAT sharing, must be excellent
For Original Articles, please reprint them. Reprinted Please note: Yan Nai-yu's blogHttp://blog.csdn.net/u013357243? Viewmode = contentsSource Material address: http://download.csdn.net/detail/u013357243/8677065Effect:
Code:
# Imp
Developed by these Android 3D gamesArticleThe original article was written by Martin, a German at droidnova.com. lixinso was translated into Chinese.
In the third part of this series, I will show you how to stop the rotation of the triangle and tell you that the original rotation is actually only the rotation of the triangle, instead of rotating on the camera "camera.
We hope to have more control over t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.