[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ] [ Search: ]

5.14 Previewing Models (viewmesh)

Viewmesh is a tool included with Crystal Space that can be used to preview models (mesh factories and libraries).

Commandline Options

And then there is an optional filename parameter. Here is an example on how to use viewmesh:

 
viewmesh -R=c:\data\gamedata.zip -C=objects/actor factories/genActor

This example requires some explanation. First we use the ‘-R’ option to take our game data archive and mount that to ‘/tmp/viewmesh’. Then we use the ‘-C’ option to go inside the ‘objects/actor’ directory that is inside that ZIP archive. And finally we load the actual model that is still in a deeper directory called ‘factories/genActor’. This example demonstrates how it can be useful to have good control over the current directory in VFS. Usually with models exported from blender2crystal there will be a ‘factories’ and a ‘textures’ directory. So you want the current directory to be the parent of those so that the model can reference textures like ‘textures/bla.jpg’.

User Interface

@ TODO


This document was generated using texi2html 1.76.