Page 1 of 1

Extract points for collision shape

Posted: Mon Jul 23, 2012 9:46 pm
by Sinthoras
Hello everyone,

Im trying around with OGRE and BulletPhysics and right now I would like to created some good collision shapes for my graphic objects. To do that I need to extract some points from the mesh surface (I create the meshes with blender) and the question is, how can I get these surface points? Any ideas?

Greetings
Sinthoras

Re: Extract points for collision shape

Posted: Tue Jul 24, 2012 4:43 pm
by bstone
A mesh consists of one or more sub-meshes. Each sub-mesh contains a vertex declaration - that's where you can get the vertices (points) you need. But don't forget that all vertices usually reside in a shared (by all sub-meshes) vertex buffer and then index buffers are used to point exactly which vertices compose sub-mesh triangles.