Instance Alembics/Geo by referencing/sublayering
3610 8 1- schiho
- Member
- 101 posts
- Joined: 12月 2012
- Offline
I have a pointcloud and bunch of alembic files on disc, which I'm instancing to write an usd file. However I'm using a "sopimport" node to get all the chunks and then feeding that to a instance node which has the pointcloud with all the positions.
How would I go with a more organized and "usd" way of things, by say importing the chunks as a reference? In my mind, that should be a feature already there, but I just didn't figure out how put it together
How would I go with a more organized and "usd" way of things, by say importing the chunks as a reference? In my mind, that should be a feature already there, but I just didn't figure out how put it together
- goldleaf
- スタッフ
- 4200 posts
- Joined: 9月 2007
- Offline
- schiho
- Member
- 101 posts
- Joined: 12月 2012
- Offline
- jsmack
- Member
- 8045 posts
- Joined: 9月 2011
- Offline
schiho
Hi goldleaf, but you are talking about dropping a reference lop to bring in one alembic. but I want to bring in a gazillion alembic files and assign it to instance points.
use a gazillion reference lops to bring in a gazillion alembics. If each alembic has one root and is referenced to a unique prim, then they can be used as prototypes with the instancer.
- AndreasWeidman
- Member
- 128 posts
- Joined: 2月 2021
- Offline
- schiho
- Member
- 101 posts
- Joined: 12月 2012
- Offline
@jsmack can you provide an example? If I place two times the same reference, it is going to store the two same alembics two times in memory right? But I would like to use the same reference just with multiple transforms (instancing).
@AndreasWeidman
Thanks for the StageManager tip! Do you mind sharing an example of how to go after the stagemanager? Like how would you pass that to an instancer node as prototypes? Wouldn't you need a name attribute?
Where I'm going with this, is similarly to the obj node "instancer" where you can specify an "@instancepath" attribute.
@AndreasWeidman
Thanks for the StageManager tip! Do you mind sharing an example of how to go after the stagemanager? Like how would you pass that to an instancer node as prototypes? Wouldn't you need a name attribute?
Where I'm going with this, is similarly to the obj node "instancer" where you can specify an "@instancepath" attribute.
- jsmack
- Member
- 8045 posts
- Joined: 9月 2011
- Offline
schiho
@jsmack can you provide an example? If I place two times the same reference, it is going to store the two same alembics two times in memory right? But I would like to use the same reference just with multiple transforms (instancing).
Like Andreas said, you do the instancing with an instancer. Only reference each alembic file once, either with a reference lop, or with the stage manager or other device. These are your prototypes. Feed them into the second input of the instancer LOP and set it to Instance primitives. The prototype can be selected randomly or from attributes on the instance points.
- schiho
- Member
- 101 posts
- Joined: 12月 2012
- Offline
- jsmack
- Member
- 8045 posts
- Joined: 9月 2011
- Offline
-
- Quick Links