Crystal Space 2.0.0: 4.22.4 Working with Meshes

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 4.22.4 Working with Meshes

BugPlug has various nice tools to work with meshes. If you press `‘ctrl-s’` then you can select a mesh with your left mouse button. Immediatelly you'll notice a blue box and a green 3D cross. On standard output you will see output representing the name of the selected mesh and the coordinate where you actually hit the mesh. The box represents the bounding box of that mesh. The green cross represents the three axes of the bounding sphere. You can disable the display of the box using `‘ctrl-d b’` and you can disable the display of the radius using `‘ctrl-d r’`.

Now with this mesh selected there are a number of things you can do:

- Show normals (`‘ctrl-d n’`): if you enable visualization of normals then BugPlug will show normals (in blue), tangents (in red) and bitangents (in green) for every triangle of the selected mesh.
- Show collision detection mesh (`‘ctrl-d crtl-alt-c’`): show the triangle mesh that will be used for collision detection with this mesh.
- Show visibility culling mesh (`‘ctrl-d crtl-alt-v’`): show the triangle mesh that will be used for visibility culling with this mesh. Basically this is the mesh that will occlude other meshes. It will not be used to test visibility.
- Show shadow casting mesh (`‘ctrl-d crtl-alt-s’`): show the triangle mesh that will be used for shadow casting.
- Show base mesh (`‘ctrl-d crtl-alt-b’`): show the base triangle mesh.
- Hide mesh (`‘ctrl-d h’`): hide the current selected mesh.
- Undo hide mesh (`‘ctrl-d shift-h’`): unhide the current selected mesh.

If you can't find a mesh but you know the name then you can also select a mesh using `‘ctrl-d ctrl-alt-m’`. You'll be presented with a dialog in which you can type a regexp pattern. Using this you can also select multiple meshes. Typing `‘.*’` here will select all meshes. Note that this feature only works for meshes in the current sector.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

This document was generated using texi2html 1.76.