Jump to content
  • Advertisement
Sign in to follow this  
rocklobster

Wrapping a mesh around a skeleton structure

This topic is 2303 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys,

Just have a few questions regarding some 'simple' methods of creating triangle meshes around a skeleton type structure. The idea is that we have some procedurally generated plant which is represented by nodes and lines such as below.

mVzIZ.png
Assuming this is a 3d structure, we want to be able to wrap the lines with a mesh so it can have girth and we can apply textures etc.
One proposed method to this was to use a heightmap and wrap it around each line (cylinder) so the surface has some variation. At the joints however, we are not sure if it will be an easy task joining the meshes so they will smoothly transition.

Another way that i'm not sure how hard this would actually be would just be to have a flat triangle mesh and wrap it over the whole structure (sort of like putting on clothes). Is there a technical definition for this kind of process or how hard would that be to accomplish (keep in mind the structure is three dimensional)?

4vkJI.png

Sorry for the mediocre paint art :P
Hopefully it gives some idea of what i'm talking about.

Thanks for any help

- rocklobster

Share this post


Link to post
Share on other sites
Advertisement
Blender's upcoming 2.64 version has something like this:

http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.64/Skin_Modifier

You can take a look at the source code, as Blender is open source.

It is very difficult to automatically generate meaningful unwrapped texture coordinates for this type of mesh. That said, it is easy enough to get the nearest "bones" for a given point in the result mesh, so a weighted blending of procedural 3d textures probably proves very useful.

Share this post


Link to post
Share on other sites
Looks like a decent fit to CSG algorithms - you could create a capsule mesh surrounding each line, and then calculate the union of all the capsules, which would remove the superfluous intersecting parts.

Share this post


Link to post
Share on other sites
Thanks for the replies, I'm pretty confident I can wrap capsules or cylinders around each 'bone' was always a bit iffy about how I would connect them to make the mesh look seamless. I'll look into calculating the union of the objects.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!