代码示例

出自Ogre3D开放资源地带

跳转到: 导航, 搜索

本段落翻译自OGRE3D官方wiki,同时也访问本站的朋友可以把自己的经验代码共享出来。

目录

本站的朋友共享

几何

顶点以及索引缓存(Vertex and Index Buffers)

Manual Object

  • ManualObject - 一个简单的例子
  • ManualObject_2D - A minimal example (Eihort only)
  • ManualObject_AxisObject - A simple Axis using box's.

General

  • Setting a vector's length
  • Nearest point on a line - Find the nearest point on a line between two points
  • 2D line intersection - do 2 lines described by 4 vertices intersect?
  • Find Spline index - from global interpolation value
  • Raycasting to the polygon level - how to see if a line intersects with a mesh's geometry
  • Get Screenspace Coordinates - Get the screenspace (2D) coordinates of a MovableObject.
  • Projecting 3D position and size to 2D
  • Equal Length Spline - Generating new spline (based on SimpleSpline) which has equal distance between points.
  • Nearest point on a Spline - From "Robust and Efficient Computation of the Closest Point on a Spline Curve"

渲染(Rendering)


DotScene Loader

个人工具
友情链接