Jump to content

  • Log In with Google      Sign In   
  • Create Account


Wrapping a mesh around a skeleton structure


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 rocklobster   Members   -  Reputation: 415

Like
0Likes
Like

Posted 22 August 2012 - 12:21 AM

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.

Posted Image
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)?

Posted Image

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

Thanks for any help

- rocklobster

Sponsor:

#2 Nik02   Crossbones+   -  Reputation: 2648

Like
1Likes
Like

Posted 22 August 2012 - 04:32 AM

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.

Niko Suni


#3 Hodgman   Moderators   -  Reputation: 27879

Like
1Likes
Like

Posted 22 August 2012 - 05:38 AM

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.

#4 rocklobster   Members   -  Reputation: 415

Like
0Likes
Like

Posted 22 August 2012 - 08:55 AM

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS