3DS Max Model loading problem

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
crevu
Posts: 2
Joined: Sun May 22, 2011 10:02 pm

3DS Max Model loading problem

Post by crevu »

Hello BEPU team and first of all congratulations for this engine!

Here is my problem: i'm trying to use the "VehicleInput" class in the "BEPUphysicsDemos" project. I want to make my own 3D model (for the terrain), but when i try to load it, the application crashes. All I did was replace the model loaded in the "Playground.cs" class with my own. The only thing that works is creating a new model with only one shape (shape examples : box, pyramid, plane, Cone, TeaPot etc.) in it (in 3DS MAX). If i try adding 2 or more shapes to it (even basic ones like box or sphere) in 3DS MAX 2011, the application crashes when trying to load the new model.

I must mention that this problem does not occure when loading the exact same 3DS model in the "GettingStartedDemo" project. I presume this project uses an older version of BEPU , because some classes and namespaces have changed (for example : "StaticMesh" - which i successfully used before to load the model - doesn't exist).

I also tried to create the model in 3DS MAX 2012 and still no result. Please tell me what setting must I use in 3DS MAX when exporting the scene so it can be loaded ok.

I would also like to ask : Why is everything red ? :D
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: 3DS Max Model loading problem

Post by Norbo »

Hello BEPU team and first of all congratulations for this engine!
Hello and thanks!
I want to make my own 3D model (for the terrain), but when i try to load it, the application crashes.
Was it an exception, and if so, could you provide the trace?

Are you using the latest versions (v0.15.2 or the development fork)?
I must mention that this problem does not occure when loading the exact same 3DS model in the "GettingStartedDemo" project. I presume this project uses an older version of BEPU , because some classes and namespaces have changed (for example : "StaticMesh" - which i successfully used before to load the model - doesn't exist).
The GettingStartedDemo, at http://bepuphysics.codeplex.com/wikipag ... umentation, uses a recent version. It does have the StaticMesh type, though in v0.15.0 and above, the mesh-loading static convenience methods are in the TriangleMesh class.
I would also like to ask : Why is everything red ?
If you're using one of the recent versions and everything looks red, I'm not sure :) There was a problem once upon a time in one of the pre-release versions of the v0.15.0 demos where everything looked red, but if I remember correctly, that was due to a compiler or possibly driver issue that didn't like how the colors are selected.
crevu
Posts: 2
Joined: Sun May 22, 2011 10:02 pm

Re: 3DS Max Model loading problem

Post by crevu »

Thank you so much for your quick reply, right now I'm in a hurry with my project at school (I have to show something that's working until Wednesday) ! :)

I solved the problem using your advice : I was using an older version of the Demos (downloaded from Development Fork), but now with the latest version everything seems to be working fine (that includes the colors :D ). If I encounter other problems, I'll ask again, hope you don't mind !

Keep up the good work !
Post Reply