Difference between revisions of "HowToAdjustMeshesForSFZ"

From SfzWiki
Jump to: navigation, search
 
Line 1: Line 1:
 
When importing models, they often have to be rescaled, recentered and rotated.
 
When importing models, they often have to be rescaled, recentered and rotated.
  
We created a specialized editor for that, it is described here.
+
We created a specialized editor mode inside SFZ for that, it is described here.
  
 
* see also [[HowToExportFromBlender]]
 
* see also [[HowToExportFromBlender]]
 
* see also [[HowToTestModelsIngame]]
 
* see also [[HowToTestModelsIngame]]
 +
 +
 +
to start the mesh-editor launch sfz with the commandline parameter "-sm" followed by the filepath to a mesh, e.g.
 +
  ./sfz -sm data/model/sd_spaceman.mesh
 +
 +
a white grid-box shows 1 unit in the sfz coordinate space.
 +
 +
a spaceman next to the box is helpful to understand the size in relation to a human.
 +
 +
you get two dialogs with buttons, one for scaling and moving the model (0.5 halves the model size)
 +
 +
and one for other tools operations like alignment and rotating.
 +
 +
"unify" scales and centers the model so that it fits inside the grid box.

Revision as of 20:02, 24 August 2007

When importing models, they often have to be rescaled, recentered and rotated.

We created a specialized editor mode inside SFZ for that, it is described here.


to start the mesh-editor launch sfz with the commandline parameter "-sm" followed by the filepath to a mesh, e.g.

 ./sfz -sm data/model/sd_spaceman.mesh

a white grid-box shows 1 unit in the sfz coordinate space.

a spaceman next to the box is helpful to understand the size in relation to a human.

you get two dialogs with buttons, one for scaling and moving the model (0.5 halves the model size)

and one for other tools operations like alignment and rotating.

"unify" scales and centers the model so that it fits inside the grid box.