Export a compound object from 3dsmax

dronbas

24-11-2010 12:45:16

Hello,
I have a teapot model in 3dsmax (OgreMax and PhysX plugins installed). I need to make a realistic simulation of the teapot using NxOgre (so that it could be hand by its handle). I have split the geometry into 2 parts: a handle and a body, exported each into an obj file, loaded them into PhysX Rocket and created 2 convex hulls, saved them to nxb files. What should I do next to create a teapot model in NxOgre?I don't understand how to get nxs files for each part. What is the right way to create compound objects in NxOgre?
I've read several topics about it (viewtopic.php?f=6&t=10108&start=0), but I yet don't know the answer.

Thank you!

betajaen

24-11-2010 12:52:22

The NXB file format is used by "NxuStream"; some serialisation code for PhysX. I don't particularly like it (for numerous reasons), so I've never written in any support.

You should be able to load both meshes in normally, and create two convex shapes for each part then attach them to an Actor/Body. I've you need help with that just ask.

dronbas

25-11-2010 10:48:13

The NXB file format is used by "NxuStream"; some serialisation code for PhysX. I don't particularly like it (for numerous reasons), so I've never written in any support.
You should be able to load both meshes in normally, and create two convex shapes for each part then attach them to an Actor/Body. I've you need help with that just ask.


Ok, now I have in 3dsmax one part and several convex meshes which approximate the geometry of the part. I can convert convex meshes to nxs files. Betajaen, should I just create a Shapes, then insert several loaded convex meshes in it?Will they be properly positioned automatically (as I've done in 3dsmax) or I have to somehow move them using NxOgre?

betajaen

25-11-2010 11:08:36

Yes, that is what I would do. If you didn't have to move them in Rocket, you don't need to move them in NxOgre.

dronbas

25-11-2010 11:42:25

Yes, that is what I would do. If you didn't have to move them in Rocket, you don't need to move them in NxOgre.

How can I create a body using several nxs files and one mesh file using Detritus and Critter?

betajaen

25-11-2010 12:10:59

See; https://github.com/betajaen/nxogretutor ... 03.cpp#L93

The "makeContainer" function. But instead of using BoxDescriptions, you use ConvexDescriptions.