Instancing with emit rbd
1069 4 1- AndyW
- Member
- 336 posts
- Joined: 12月 2014
- Offline
Is there a way to instance geometry to RBD emit points? I'm using the new SOP bullet solver, using Emit RBD. I have a small amount of source geometry, but I'm at a loss on how to instance to cached points when the point count and name attribute changes as more geometry is emitted into the sim. Ideas? Thanks!
- npetit
- スタッフ
- 357 posts
- Joined: 2月 2008
- Offline
If you look at the RBD Bullet Solver SOP's help card, there is a RBDBulletSolverEmission example that shows how to prep assets for instanced emission.
As long as you pack the geometry before copying it onto the emission points, the geometry will be instanced. The RBD Bullet Solver will ensure names will be unique per instanced frame/step, but they do need to be unique between copied instances to start with.
Here is a simple hip file with 3 examples, going from simple to more complex. The last example packs each object (this could be fractured objects with constraints) using the RBD Configure SOP and then RBD Packs each one so it becomes a self-contained RBD asset that you can then copy onto emission points. The RBD Unpack SOP has an option to ensure names are unique for that very purpouse.
As long as you pack the geometry before copying it onto the emission points, the geometry will be instanced. The RBD Bullet Solver will ensure names will be unique per instanced frame/step, but they do need to be unique between copied instances to start with.
Here is a simple hip file with 3 examples, going from simple to more complex. The last example packs each object (this could be fractured objects with constraints) using the RBD Configure SOP and then RBD Packs each one so it becomes a self-contained RBD asset that you can then copy onto emission points. The RBD Unpack SOP has an option to ensure names are unique for that very purpouse.
- AndyW
- Member
- 336 posts
- Joined: 12月 2014
- Offline
Thanks for the response and the examples. I'm actually trying to find a workflow for instancing geometry to RBD emitted point post-simulation. I did manage to find a more efficient delayed-load method outputting caches to Arnold for rendering by writing out .ass files from an Arnold ROP and bringing those in with Arnold Procedurals
- npetit
- スタッフ
- 357 posts
- Joined: 2月 2008
- Offline
Sorry, I misunderstood your question.
The geometry output from the RBD Bullet Solver SOP is instanced already. However, if you plan on instancing your own geo on the points themselves you can do it using a Copy to Points SOP. You'll need a couple of things however.
You need the initial piece's intrinsic packedfulltransform and you'll have to modify the name attribute somewhat to retrieve the original piece's name.
The initial transform is necessary as the points' represent an offset from that initial transform.
The geometry output from the RBD Bullet Solver SOP is instanced already. However, if you plan on instancing your own geo on the points themselves you can do it using a Copy to Points SOP. You'll need a couple of things however.
You need the initial piece's intrinsic packedfulltransform and you'll have to modify the name attribute somewhat to retrieve the original piece's name.
The initial transform is necessary as the points' represent an offset from that initial transform.
- npetit
- スタッフ
- 357 posts
- Joined: 2月 2008
- Offline
-
- Quick Links