Page 1 of 1
Keep getting error when loading a model
Posted: Mon Feb 21, 2011 11:53 pm
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
Re: Keep getting error when loading a model
Posted: Mon Feb 21, 2011 11:59 pm
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.