VBO & Soft Body

User avatar
sio2interactive
Posts: 31
Joined: Tue Jul 29, 2008 10:26 am

VBO & Soft Body

Post by sio2interactive »

I have a soft body created with btSoftBodyHelpers::CreateFromConvexHull, so I have my vertex array in memory as well as my indices, now my question is how can I plug that inside a function like glDrawElements, in other words how can I get access to the modified vertex array by the soft body simulation and render my triangles using OpenGL with textures and materials etc... using standard OpenGL draw calls?

Tks in advance,

Cheers,
BlindSide
Posts: 3
Joined: Sat Oct 18, 2008 5:52 am

Re: VBO & Soft Body

Post by BlindSide »

Theres an example of this on the wiki, here http://www.bulletphysics.com/mediawiki- ... _Rendering

You don't happen to be sio2 off Irrlicht forums? I don't imagine its a very common username.