nxs aren't well generated?

daedar

05-07-2007 22:44:09

Hi,

I'm using pre-cooked nxs files but I've just noticed that they doesn't seems well generated.

Previously, I used this code to generate my MeshShapes:

new NxOgre::TriangleMeshShape("xxx.mesh", "mesh-scale: "+StringConverter::toString(pObjNode->getScale()));

works perfectly, but if I'm using this instead:

new NxOgre::TriangleMeshShape("xxx.TriangleMeshShape.nxs", "mesh-scale: "+StringConverter::toString(pObjNode->getScale()));

the physic shapes are not well generated, some parts of the model are missing...

Has anyone already experienced the problem?

Thanks

betajaen

05-07-2007 22:52:49

Hmm, It's just saving the Cooked mesh. If it was incomplete or erroneous PhysX would just crash.

But scaling a cooked mesh wouldn't do anything anyway.

Aiursrage2k

05-07-2007 23:49:22


Serialization

* Members of the NxPhysicsSDK descriptor are not saved on serialization.
* Active state serialization is currently not supported for metal cloth or torn cloth.
* Binary serialized file format will have changed.


If you have updated the sdk to version .72 then you might want to try recooking your mesh.

daedar

06-07-2007 01:20:47

Thx for the reply, I haven't updated my Ageai version yet...

In fact, it may be a scale problem I'll take a look at it with the debugger. Does the size matters when the NXS file is generated?

But scaling a cooked mesh wouldn't do anything anyway.

So if I have the same mesh in my scene but with different scales, I can't use NXS files?

betajaen

06-07-2007 08:18:09

The scale operation is performed by NxOgre. Not by PhysX. Once the mesh is cooked and NxOgre re-reads the saved mesh back in to PhysX it doesn't touch the vertices.

Infact it's using a completely seperate part of code to cook and read the mesh.

So if your having a problem with the mesh being incomplete it's either PhysX or your code which is causing the problem.