Grasshopper

algorithmic modeling for Rhino

Hallo,


I'm the first time here and ask me, is Kangaroo the right tool for placing tablecloth over a table or a sheet over a bad? I need this for photoreal still rendering. I tried several example files, but nothing works. Would it be difficult to work with Kangaroo on scenes like this?


++

Micha

Views: 8547

Replies to This Discussion

It depends on the level of realism you want, but yes, draping over objects is possible.

For the cloth you need springs to resist stretching and shear, then hinges between each triangle to resist bending. (the video above shows the result of varying the bending strength)

Also, bear in mind the collision detection in Kangaroo is fairly basic - it works on points/solids only, so some edges may penetrate the volume, and it can be quite slow compared to other functions. There is also no self-collision, so cloth cannot pile up on itself.

Here's an example definition

Attachments:

An example file - great, thank you. 

Sorry, I'm a total beginner. First GH show me this message at startup. Is it a problem?At the example is see this

If I create a mesh plane, how to connect it to the code and how to start the code? Double click on the task symbol? Sorry, so much questions.

Hi Micha,

Did you already install the Kangaroo plugin ?

(download and installation instructions here http://www.food4rhino.com/project/kangaroo)

and some links to instructional videos here http://www.grasshopper3d.com/group/kangaroo

also, there are some more great intro videos here:

http://designreform.net/tag/Kangaroo

Yes, I installed Kangaroo, but I found v 0.0.8.0 only. You used 0.0.8.2 - is it a problem? 

I looked the videos. I connect a mesh plane to the mesh input and double click on the task symbol, but nothing happens.

Anything looks here so:

It's now 2015 and you've thankfully done many wonderful updates to this. Would you mind updating the above definition to work with the latest Kangaroo? It reports it doesn't know the "hinges" component, which I assume means you've rewritten it quite a bit.

Thanks in advance.

Hi Duncan,

Here is an updated definition.

I also now included the "SphereCollide" component for self-collision to prevent to cloth passing through itself

Attachments:

Thanks so much Daniel.

Unfortunately though, the mesh just scans through my solid without any effect. It's a bit more complicated polysurface. When I try it with a Rhino primitive, it seems to work. I double checked for naked edges on my polysurface and it has none.

What could be the problem?

The definition is actually now using the CollideMesh component, as I've found this is generally much faster than CollideSurf.

So although the table is being input as a Brep, the component is converting it to a mesh. Probably when you are giving it a more complex polysurface, this meshing is going wrong.

Try converting it to a mesh in Rhino first, and making sure that the mesh is a closed solid.

Hi Daniel.

I am trying to follow along with the table cloth definition but no luck so far. It seems that the Kangaroo drape operation doesn't run - the surface remains still - and not sure how to set it motion. I've tried various scripts online and tried both CollideMesh and Collide Surf. Not sure what I'm doing wrong. I'm new to Kangaroo so apologize if I'm missing something obvious. My script attached.

Thanks.

Attachments:

Here is an updated version of this example using Kangaroo2. Let me know if you have any issues.

Daniel

Attachments:

Hellow Daniel, I just tried to use the DrapeExamplek2 that you kindly uploaded some time ago... it shows the following error

Do you have an actualized version? Thank you very much!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service