Keep getting error when loading a model

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Rompetoto
Posts: 18
Joined: Wed Oct 28, 2009 9:47 pm

Keep getting error when loading a model

Post by Rompetoto »

I keep getting a "Unsupported Vertex type in mesh." When i try to load a model into a static triangle mesh group....

Have you faced this problem before???

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

Re: Keep getting error when loading a model

Post by Norbo »

The TriangleMesh.GetVerticesAndIndicesFromModel convenience method was changed in v0.14.3 to deal with a framework bug on the WP7 device. As a side effect, it can't handle as many vertex formats. Apparently, the vertex format in the model you're trying to load is not recognized.

The vertex/index data can be from anywhere, though. The built-in convenience method doesn't do anything special. If you aren't targeting WP7 hardware, you can use an approach similar to the old version of the convenience method (an example can found in this thread: http://www.bepu-games.com/forums/viewto ... 072&p=6616) or use a build-time content processor to extract the vertices.
Post Reply