3D model file format with collision?

Post your questions, suggestions and experiences regarding to Image manipulation, 3d modeling and level editing for the Irrlicht engine here.
Post Reply
jeffmorris
Posts: 3
Joined: Sat Jun 28, 2008 12:02 pm

3D model file format with collision?

Post by jeffmorris »

Which 3D model file format support collision without having to create other files? One of the tutorials on Irrlicht's web site showed me how to load a 3D model and have collision checking. I would like to create a virtual city.
FlyingIsFun1217
Posts: 219
Joined: Fri Apr 13, 2007 8:29 pm
Location: Illinois
Contact:

Post by FlyingIsFun1217 »

Depends on what you mean by 'support collision'. No model contains a physics engine of any sort, but if you mean collision support as in model 'weight', 'size', 'velocity', etc., I would check out COLLADA.

FlyingIsFun1217
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

You can create a basic triangle selector from any model; the source format doesn't matter.

Exception: except it does, because getMesh(s32 frame); is currently borked for skinned animated meshes.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
jeffmorris
Posts: 3
Joined: Sat Jun 28, 2008 12:02 pm

Post by jeffmorris »

How do I modify the source code for the collision example to load a different 3D mesh file that's not in a compressed file? The collision example loads "map-20kdm2.pk3" compressed file and loads "20kdm2.bsp" 3D mesh from the compressed file. For example, I wish to load "city.3ds" 3D mesh file.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Don't add the pk3 archive and replace the load mesh function's parameter with city.3ds, simple as that!
Image Image Image
jeffmorris
Posts: 3
Joined: Sat Jun 28, 2008 12:02 pm

Post by jeffmorris »

I can load the city model in meshviewer example but I can't load the city model in collision example or I can't see the city model in collision example. I saw the faerie.md2 model appear for a second before moving off the screen in collision example. How do I slow down the first person camera in meshviewer example?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

you can slow it down by changing the parameters in smgr->addCameraSceneNodeXXX()
Image Image Image
Dorth
Posts: 931
Joined: Sat May 26, 2007 11:03 pm

Post by Dorth »

You are free falling, that's why... Look at your gravity and your collision.
Post Reply