Jump to content

RBD Point Object Problem!!!!!!


Anton

Recommended Posts

Hi! I created a cloud of points, and trying to create simulated object on each point. I have a sequence of 30 individual geo objects loaded from disk: geo_0001.bgeo, geo_0002.bgeo, geo_0003.bgeo and etc in file sop. How can i randomly load all this objects from different frames into RBD Point Object. As i understand i have to create an attribute for source points in SOPs and use this attribute in RBD Point Objects node. I little bit confused how to do it?

Edited by Anton
Link to comment
Share on other sites

i would take your points

1) copy stamp the geometry from the file sop

2) throw down an assemble node after the copy which will create a name attribute for you that varies per geometry.

3) use a rbdfractureobject instead of rbdpointobject and point it to your copy stamped geo.

good luck!

Link to comment
Share on other sites

yeah... i honestly don't think its too different, you could always use the different bullet types ( box, capsule to speed up the simulation), but if you wanted to used the rbdpointobject still... you could probably attached a scale or pscale attribute to your points that would ideally match the shape of the geometry and then pass those points into the the rbdpoint object for the simulation instead of the geometry but then after the dopimport on your points you would do the same copy sop to stamp on the simmed points to get the geometry back onto it.

out of curiosity what is the blend solver being used for?

Link to comment
Share on other sites

thats a cool example, but it has the problem that you have to have all of your instances loaded first and live separated at the object level and often enough they live on disk and you have varying numbers of them.

It would be cool if this workflow worked with the instancefile attribute which allows the Point Instance Procedural to delay load them at render time in mantra. Having the same approach for simulation would give a lot of flexibility.

Link to comment
Share on other sites

thats a cool example, but it has the problem that you have to have all of your instances loaded first and live separated at the object level and often enough they live on disk and you have varying numbers of them.

It would be cool if this workflow worked with the instancefile attribute which allows the Point Instance Procedural to delay load them at render time in mantra. Having the same approach for simulation would give a lot of flexibility.

Well, if you think about it, they would have to be loaded anyway before the simulation would run. Unless you're running the sim from hbatch, or your sim geo is expensive to cook, I don't see a real advantage to running a sim with geo loaded directly from disk (unless, of course, the geo only exists on disk). This case is a completely different scenario than delayed-load rendering which cuts time and memory consumption by skipping geometry description in the IFD generation.

Cheers

Edited by rafaelfs
Link to comment
Share on other sites

yup, you have to load the geo either way, this is just a different way, one which if you do so would make it easier to render with that procedural. I didn't intend to suggest that the simulation would be delay load, sorry! I like being able to load geo from disk b/c geometry tends to already live there to begin with and then you can vary the number of geometry you use in your simulation much more easily.

its how i would do it, but to there are many ways to do anything, so to each their own!

cheers,

j.

Link to comment
Share on other sites

here is simple example:

i changed point rbd object dop a bit so that it loads different geo based on the point attribute for every point. Colored in red all modified nodes.

Just save frags first (use "frags" geo node), then alter the path to those files in point rbd object (i used the sop path parameter for it).

3ak_random_point_RBD_shape.hipnc

Edited by bloomendale
  • Like 1
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.

×
×
  • Create New...