《安卓系統(tǒng)使用移動(dòng)3D+API進(jìn)行高級(jí)游戲開發(fā)(11)》由會(huì)員分享,可在線閱讀,更多相關(guān)《安卓系統(tǒng)使用移動(dòng)3D+API進(jìn)行高級(jí)游戲開發(fā)(11)(5頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、|2004 JavaOne,SM,Conference|Session TS-2121,*,Click to edit the title text format,Click to edit the outline text format,Second outline level,Third outline level,|2004 JavaOne,SM,Conference|Session TS-2121,*,Text,Click to edit the outline text format,從這個(gè)節(jié)點(diǎn)到他的父節(jié)點(diǎn),忽略根節(jié)點(diǎn),四個(gè)組成部分,平移,T,方向定位,R,不規(guī)則縮放,S,一般,3x
2、4,矩陣,M,組合:,C,=,T R S M,節(jié)點(diǎn)變換,Group,Group,Group,Mesh,Sprite,C,C,C,C,C,World,C,例子:設(shè)置一個(gè)層次,private Group group1,group2;,private Mesh cube1,cube2,cube3;,cube1=new Mesh(cubeVB,triangles,appearance);,cube2=new Mesh(cubeVB,triangles,appearance);,cube3=new Mesh(cubeVB,triangles,appearance);,group1=new Group()
3、;,group2=new Group();,group1.addChild(cube1);,group1.addChild(cube2);,group1.addChild(group2);,group2.addChild(cube3);,group2,group1,cube1,cube3,cube2,層次的渲染和動(dòng)畫,g3d.render(group1,null);,cube1.setOrientation(yAngle,0.0f,1.0f,0.0f);,cube1.setTranslation(0.0f,2.0f,0.0f);,cube2.setOrientation(-yAngle,0.0
4、f,1.0f,0.0f);,cube2.setTranslation(0.0f,-2.0f,0.0f);,group2.setOrientation(-yAngle,0.0f,1.0f,0.0f);,group2.setTranslation(-2.0f,0.0f,0.0f);,cube3.setOrientation(zAngle,0.0f,0.0f,1.0f);,cube3.setTranslation(-2.0f,0.0f,0.0f);,cube3.setScale(0.5f,0.5f,0.5f);,演示,層次的變換,4,http:/www.anzhuo.cc/安卓手機(jī)論壇,議程,我們?yōu)槭裁锤信d趣?,如何開始?,低層次的描述,位圖和貼圖,場(chǎng)景繪制,動(dòng)態(tài)網(wǎng)格,動(dòng)畫,