How to generate NXS files?

daedar

06-06-2007 13:13:24

Hi,

using 0.9 I don't know how to generated cooked NXS files. With 0.4 you have an option ("save") that serializes the mesh file to the disk, but with 0.9?

Also, I've seen that you betajean have modified convex and mesh shapes to accept nxs files. Is it in .24 yet? :D

Thx

betajaen

06-06-2007 13:55:36

Usually when a mesh is cooked it's cooked to memory, but in debug mode it's cooked to a file, that file is the NXS file. There isn't a "save" function per-se though, although running your application in debug mode would do the exact same thing and generate the NXS files for you.

In '25 all meshes cooked to a file take on the name of the mesh it cooked from; "ogrehead.mesh" to "ogrehead.MeshShape.nxs" and they can also be read in; new MeshShape("ogrehead.MeshShape.nxs") instead of new MeshShape("ogrehead.mesh").

daedar

06-06-2007 14:43:22

Ok great! thx betajaen, so I'm waiting for the .25 to finish the job...

vinvin

06-06-2007 15:40:09

As do I !

(I have a patch to submit before you commit betajaen, for linux compiling, #ifdef stuff, I will private msg you (later), it's quite big).