NoodlesOnMyBack
10-10-2008 20:19:17
I need people to test it, it has some bugs here and there so its not completely usable, and may not work at all.
There is no source of the loaded provided just yet, if the binary works, i release it.
So... take one!
Instructions to setup and run the Maxscript and loader:
Prerequisites:
--------------
1.OgreMax plugin installed http://www.ogremax.com/OgreMax-1.6.22.rar
2.3D Max 9 (and a wallet full of money)
3.The NxOgreLoaderDemo
http://rapidshare.com/files/152749068/NxOgreLoaderDemo.rar.html
Mirror:
http://www.mediafire.com/?sharekey=8d68082f31cc5738d2db6fb9a8902bda
Mirror:
http://www.megaupload.com/?d=JC5U2N04
This includes the loader binary, the Maxscript, and a test.max scene.
Optional:
4.You may also need PhysX 2.8.0 Silent installer, VC++ 2005 redistributable, and Dx9 redist.
http://rapidshare.com/files/152724080/Redistributables.rar.html
Mirror:
http://www.mediafire.com/?sharekey=8d68082f31cc5738d2db6fb9a8902bda
Install & Config:
-----------------
Open Max, goto OgreMax->Scene Settings->Directories, should be like this:
Copy the PhysicsExporter.ms file to the 3D Max startup folder:
C:\Program Files\Autodesk\3ds Max 9\Scripts\Startup
Close and open Max, the dialog of the Exporter should appear:
Never close the dialog window when editing a scene, you can re-run the script by going MaxScript->RunScript.
In the Physics Exporter dialog window set:
Scene Path->Browse: Select the path where the /Data folder of the loader is located
Loader Path->Browse: Select the path where the .exe of the loader is located
The script create a txt file where stores all the data, this file is placed whenever you Save or Load a Scene from Max,
so when you do this you are also saving the Physics data.
Creating a Scene:
-----------------
You can open the provided test.max scene or create a new one.
To edit the properties of the objects, click an object, go to the Modify Tab and you should see a Physics rollout menu there:
Once you are done, click Generate Physics Data in the Dialog window.
This commits the changes and you are ready to export the scene.
Exporting the Scene:
-----------------
Now you have to export the .scene file to the path specified in the Scene Path, name the file 'test.scene' and replace the previous:
Now click 'Run Scene!', this first cook the meshes with a batch file, you will see this window appear:
You have to wait until its all done, then run the demo.
Please report any error so i can fix them as soon as possible, any tip, suggestion or whatever are very welocme.
Hope its usefull, cheers...
Pablo.
Side Notes:
1.I know the batch thing its not nice, but for the moment works for me...
2.If you want to export Triangle or Convex shapes, first right click the object,select Convert to->'Editable Mesh' or 'Editable Poly'
Otherwise a message will popup when Generating, since it couldnt be recognized as a valid shape.