Jump to content

Dynamic Shapes


SpiderPig
 Share

Recommended Posts

Hey guys,

 

What I have is a large dynamic mesh, and Shape::PolyMesh() takes too long to be used in real-time. I want the shapes vertices to change along with the mesh's without using Shape::PolyMesh() all the time.

 

Is it possible to manipulate the vertices of a shape without re-generating it? dry.png

Link to comment
Share on other sites

By default it won't change the physics shape. It is, however possible to send the output of the geometry shader to an output stream and then access it from the cpu. I have never done such a thing thoug and don't know how exactly that works, but it should be possible to generate the physics-shape from it.

Some reading:

https://www.khronos.org/opengl/wiki/Transform_Feedback

https://www.khronos.org/opengl/wiki/Geometry_Shader#Output_streams

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...