- Category:
- android
- Tags:
-
[Java]
[源码]
- File Size:
- 349kb
- Update:
- 2016-05-26
- Downloads:
- 0 Times
- Uploaded by:
- 芦天民
Description: Implementation steps
1 first determine the use of the segmentation method will be divided into several parts of the whole picture, painted in a grid consisting of a rectangle
2 draw the N*N grid square
3 to put the national flag on the grid
1 calculate the coordinates of each vertex of the grid Vertex
Calculate the texture coordinates of each vertex texcoord
Calculate the vertex normal vector of each vertex Normal
Calculate the order of the vertices that need to be drawn order
Draw a fluttering effect
According to the sine curve, the depth value of each vertex is calculated zDepth
The fluctuation of the sine curve is calculated.
Change of coordinate point
The change of the value of the vector coordinate of the vertex method
Increase the lighting effect
Increase the effect of material
To Search:
File list (Check if you may need any files):
MyFlagDemo
..........\.classpath
..........\.project
..........\AndroidManifest.xml
..........\assets
..........\bin
..........\...\classes.dex
..........\...\MyFlagDemo.apk
..........\...\org
..........\...\...\android
..........\...\...\.......\demo
..........\...\...\.......\....\Main.class
..........\...\...\.......\....\MyEnum.class
..........\...\...\.......\....\MyUtil.class
..........\...\...\.......\....\R$attr.class
..........\...\...\.......\....\R$drawable.class
..........\...\...\.......\....\R$layout.class
..........\...\...\.......\....\R$string.class
..........\...\...\.......\....\R.class
..........\...\...\.......\....\Test.class
..........\...\resources.ap_
..........\default.properties
..........\gen
..........\...\org
..........\...\...\android
..........\...\...\.......\demo
..........\...\...\.......\....\R.java
..........\res
..........\...\drawable-nodpi
..........\...\..............\b4.jpg
..........\...\..............\flag.png
..........\...\..............\icon3.jpg
..........\...\..............\icon5.jpg
..........\...\layout
..........\...\......\main.xml
..........\...\values
..........\...\......\strings.xml
..........\src
..........\...\org
..........\...\...\android
..........\...\...\.......\demo
..........\...\...\.......\....\Main.java
..........\...\...\.......\....\MyEnum.java
..........\...\...\.......\....\MyUtil.java
..........\...\...\.......\....\Test.java
..........\说明.htm