World geometry basics

brajeshlal

15-11-2006 00:03:57

hi,

I am able to do Intermediate 02 tutorial. I want clear my doubt and understand the basic.

1. What is world geometry (refering to setWorldGeometry) mean?
2. Does it include only terrain files?
3. Can new object(mesh files) be added as the part of world geometry.
4. Does the new object will collide the same way as terrain? Means i don't want the camera to pass through the model or it require ODE for mesh and camera collision?

Cutter

15-11-2006 18:51:05

1. world geometry means the main part of your map that is static and will not move while playing the game (as the landscape, for example). The meaning of "World geometry" is defined in the scene managers. In the case of plsm, it is your landscape.

2. I think so (in plsm), but I am no expert. For other objects, you can add static geometries or use other batching strategies.

3. no (AFAIK)

4. I think you will need OPCODE (or a full physics engine) to let objects collide in an exact way. Sometimes a bounding box is enough, then just use Ogre RaySceneQueries.