Scene creation

leandro

10-07-2008 10:22:06

I've been searching in the forums, and I've found some people asking the same, but I think that the answers are a bit outdated, so I would like to know what's the best method to create a scene, (loading of course the physics data): Collada, dotScene...

In the begining, I'm only interested in loading static geometry, but I'm not sure how do I do that, I mean, do I use convex meshes in the physics calculations, o do I have to define the mesh primitives for every mesh...

By the way, I'm using Blender to create all this models.

Thanks

betajaen

10-07-2008 11:14:24

COLLADA is a horrible file format to work with NxOgre and PhysX. Especially the NxuStream version provided by nVidia.

So I wrote my own in NxOgre 1.0'22, which isn't out yet but will be soon. It's open enough for people to write their own file formats or use existing ones - providing they can write the importer/exporter. If somebody is willing to work on a Blender exporter then you can use that.


As for your second question; Your collision geometry would have to be attached to a Actor. Usually I suggest using an actor per "zone" or room of the level; to speed up collision detection; and switching parts on/off based on the focus of action in the level, and you would use a triangle mesh not a convex. And the more optimized and low poly it is, the better.

leandro

10-07-2008 11:20:40

And how about integrating your file format with dotScene format??

I've read that DieHard did something similar http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=2756&postdays=0&postorder=asc&highlight=dotscene&start=0

By the way, congratulations for NxOgre, I'm using it since only a couple of weeks, but it's great!!

betajaen

10-07-2008 12:10:03

Ah; But there is no native NxOgre file format. Just a small framework of code to implement your own. I've written XML and JSON versions with TinyXML and JSONCpp pretty easily. You don't need to know the schema, names of things, how things should be ordered. Just convert one thing to another.

So dotScene should be easy for anyone to implement :P

leandro

10-07-2008 12:13:25

Thank you!!, I will try that while the new release comes out