Static mesh triangulation ?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
csensivas
Posts: 5
Joined: Sun Sep 30, 2012 7:01 pm

Static mesh triangulation ?

Post by csensivas »

Hello Norbo!

As I am importing my FBX to my Sunburn editor, everything is displayed fine. But as soon as I convert my track to a static mesh, and wireframely debug draw it, some vertices seem to out of control .. but mesh draws fine.. I think that also affects the physics collisions.. Please have a look:

Image

Image

I have told my artist to triangulate the mesh in Maya and that didnt help.. What could be the reason ? Anything I should know about the mesh structure for a static mesh ?

PS Edit: Strangely enough, if I just use the stripped down version of BEPU in Sunburn the mesh structure seems to be drawn correct with the physics debug render manager:

Image

Best rgds,

CS
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Static mesh triangulation ?

Post by Norbo »

The BEPUphysicsDrawer is built for Reach and can't handle huge meshes. If there's too many triangles in a single object, it'll explode like you see. Another common place to see this is large terrains drawn with the BEPUphysicsDrawer.

This is purely a graphical effect. It is unrelated to the actual physics. You could modify the drawer for HiDef if you wanted.

That mesh might be a little heavy on the triangles, too- it will probably be fine, but if you have performance issues with collision detection later, it would be a good thing to at least investigate. Using a simpler model for the physics often has both performance and robustness benefits.
Post Reply