安卓系统使用移动3DAPI进行高级游戏开发.pptVIP

  • 3
  • 0
  • 约1.29千字
  • 约 4页
  • 2017-06-03 发布于四川
  • 举报

安卓系统使用移动3DAPI进行高级游戏开发.ppt

Sprite3D 比例模式显示一个公告栏或者树木等 非比例模式显示字体或图标等 Image2D 在一个三维空间中定位一个二维的图片 Sprite3D Appearance Image2D CompositingMode Fog 渲染技巧 Use layers to impose rendering order Appearance包含一个层索引(整型) 为所有的网格和动画定义一个全局的索引 注意: 在天空盒中不能使用Z缓冲,使用层方式 注意: 三角面最大长度 根据需要添加简化的三角面 使用向量缓存是一个好方法 举例:旋转的盒子 // 根据XYZ坐标定义一个盒子 static short[] cubeVertices = { -1, -1, 1, 1, -1, 1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1 }; // 定义每个顶点一种颜色 static byte[] cubeColors = { (byte) 255, (byte) 0, (byte) 0, // red … (byte) 0, (byte) 255, (byte) 0, // green }; // 作为单一的三角形面定义 static int[]

文档评论(0)

1亿VIP精品文档

相关文档