Differences between revisions 2 and 3
Revision 2 as of 2007-08-17 06:41:50
Size: 628
Editor: flyaflya
Comment:
Revision 3 as of 2007-08-17 06:43:58
Size: 646
Editor: flyaflya
Comment:
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
Line 5: Line 6:
Line 9: Line 11:
Line 13: Line 16:
Line 14: Line 18:
Line 15: Line 20:
 * 旋转方向 *
* 旋转方向
Line 17: Line 24:
Line 18: Line 26:
Line 19: Line 28:

基础

组成结构

坐标

  • render(3d) X右,Y前,Z上 render2d 坐标左下角(-1,0,-1)到右上角(1,0,1)

移动、形变

  • NodePath.setPos(X,Y,Z) #位移

    NodePath.setHpr(H,P,R) #旋转 

    NodePath.setScale(uniform) #缩放

  • 旋转方向 Heading: XZ平面逆时针转  Pitch: YZ平面 Roll:  旋转的例子: attachment:hpr.py 使用simples/tutorial1中的model

镜头

  • base.camera

FlyaflyaPanda3dNote (last edited 2009-12-25 07:15:27 by localhost)