Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: Wrapping a cloth-like object around a hard object

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    154

    Wrapping a cloth-like object around a hard object

    Hello, I would like to wrap a cloth-like object around another soild object. Both objects are made of a number of triangles.I would like to do in such a way that cloth does not go inside the solid object. How could that be done? Some tips will be highly appreciated.

  2. #2
    I don't how to do this, but I think you can use a physical engine (like Bullets) to achieve this. Bullets manages soft body wrapped arount a solid object. Hope it's help

  3. #3
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    154
    Hi, I never used physical engine. Could you let me know how can I use it?

  4. #4
    Sorry, I'm not an expert in Bullets Physics, I suggest you to start reading papers and tutorials on http://bulletphysics.org/wordpress/ and ask on the bullets forum.
    I don't know what result you want.. You can model your "cloth" and draw it as a solid body over the first object, depends on your need for animations and physics.

  5. #5
    Intern Contributor
    Join Date
    Apr 2012
    Posts
    90
    I would like to wrap a cloth-like object around another soild object. Both objects are made of a number of triangles.I would like to do in such a way that cloth does not go inside the solid object.
    You could compute the convex hull of the vertices making up the original object. That would give you a tight skin effect. Google 'convex hull' for more info. I think you can download code for free to do it.

  6. #6
    Junior Member Regular Contributor
    Join Date
    Jun 2010
    Posts
    154
    Could you bit a more elaborate about how the deformable sheet will wrap around the solid object without penetrating into it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •