NxTriangleMesh from Irrlicht Mesh

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
l1p3q
Posts: 3
Joined: Wed Apr 22, 2009 1:09 pm

NxTriangleMesh from Irrlicht Mesh

Post by l1p3q »

Hi,
I'm coding my game (simple 3d FPS) and I want to use Physx (with irrPhysx wrapper) in it, but I've got a problem with creating NxTriangleMesh (for CCD purposes). Does anyone know how to create NxTriangleMesh from Irrlich Mesh object ? or how to get number of triangles from Irrlicht Mesh ?
Cheers,
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

The irrlicht mesh will have a function to get the index count, divide that by 3 and you shall know the triangle count!

In IrrPhysx there's support for triangle meshes, does that not cover your needs?
Image Image Image
l1p3q
Posts: 3
Joined: Wed Apr 22, 2009 1:09 pm

Post by l1p3q »

Thanks for fast reply :)
You're right there is, I didn't saw it earlier. Thanks a lot :)

Cheers,
L1p3q
Last edited by l1p3q on Wed Apr 22, 2009 5:57 pm, edited 1 time in total.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well if you look at the IrrPhysx source you will see how I create the Physx triangle mesh from the Irrlicht mesh data so that should give you some pointers for how to get the CCD skeleton setup?
Image Image Image
l1p3q
Posts: 3
Joined: Wed Apr 22, 2009 1:09 pm

Post by l1p3q »

Yes, sorry for bother you :) my mistake.

Cheers,
L1p3q
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Not a problem, feel free to come back with any issues :)

Though note that I don't know anything about the CCD stuff, hence why it's not in IrrPhysx yet ;)
Image Image Image
Post Reply