文件名称:hdbddgq
介绍说明--下载内容均来自于网络,请自行研究使用
实现步骤
1. 首先确定使用分割法将整张图片分割成若干份,画在一个网格组成的长方形中
2.画出N*N格的方格
3.将国旗图案贴到这个网格中
1》 计算网格各顶点坐标 Vertex
计算各顶点对应的纹理坐标 texcoord
计算各顶点所对应的顶点法向量 Normal
计算出需要绘制的各顶点的顺序 order
绘制飘动效果
根据正弦曲线,计算出各顶点所对应的深度值 zDepth
计算出正弦曲线的波动
坐标点的变动
顶点法向量坐标值的变动
增加灯光效果
增加材质的效果 -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
1. 首先确定使用分割法将整张图片分割成若干份,画在一个网格组成的长方形中
2.画出N*N格的方格
3.将国旗图案贴到这个网格中
1》 计算网格各顶点坐标 Vertex
计算各顶点对应的纹理坐标 texcoord
计算各顶点所对应的顶点法向量 Normal
计算出需要绘制的各顶点的顺序 order
绘制飘动效果
根据正弦曲线,计算出各顶点所对应的深度值 zDepth
计算出正弦曲线的波动
坐标点的变动
顶点法向量坐标值的变动
增加灯光效果
增加材质的效果 -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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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