zerlina
22-12-2006 17:22:12
hi all, i am a new comer here.
In my project, i export meshes using oFusion. In oFusion view, all the coordinate of meshes is well. But when i exported all the meshes and then load all of it in ogre scene, i found that all of their coordinate are set to (0,0,0). what is happening?
thanks.
zerlina
23-12-2006 03:45:18
It's a bit problem in my desc, not all of their coordinate are set to (0,0,0), maybe it's a align problem. Because in my ogre scene they are disorderly.
Thanks.
Lioric
23-12-2006 16:21:41
Meshes are in model space (i.e. related to their pivot points)
If you want to use the world positions, load the exported osm scene file, or if you want to load directly the .mesh file in your application export them in world coords (i.e. put their pivot points in the world center of the scene, before exporting)
zerlina
24-12-2006 04:34:22
Thankyou very much.
But i still have some questions below:
1. how to load .osm file? I load the position information manually, and then using SceneNode's translate method? or i can load .osm file auto?
2. you mean that i can put mesh's pivot points in the world center of the scene before exporting?
thanks.
Lioric
26-12-2006 16:47:49
1. Use the OSM Scene Loader library to automatically load osm scenes, see the oSceneLoader demo application for more details
2. Yes (not needed if you load osm scenes)