Lops Instancers : Random start frame offset animated cache

   2474   2   0
User Avatar
Member
42 posts
Joined: Aug. 2016
Offline
Hi

I have geo alembic animation cache.

Sop import into Lops. Did instancer scatter them in lops. what's the best way of having random start frames on them so animation doesn't look the same.

And what's the best way to have texture variation on them ? that override existing texture parameters in shader ?

Thanks in advance.
Edited by cgmagic.sunhe - July 6, 2020 08:56:48
User Avatar
Staff
4435 posts
Joined: July 2005
Offline
The Retime Instances LOP is the easiest way to provide a random starting frame for animations, but you'll want to use a Reference LOP pointed directly at your Alembic file rather than SOP Importing Alembic geometry loaded into SOPs. The added level of indirection makes retiming more challenging (or impossible), as well as being less efficient.

Texture variation can be added using a primvar on the point instancer, along with a shader that exposes the texture parameter through a primvar reader. The easiest way to set a per-instance primvar is in the point instancer LOP, add a SOP point attribute with the name you want to give the primvar, then on the Point Instancer LOP, specify this Point Attribute to Import.
User Avatar
Member
42 posts
Joined: Aug. 2016
Offline
mtucker
The Retime Instances LOP is the easiest way to provide a random starting frame for animations, but you'll want to use a Reference LOP pointed directly at your Alembic file rather than SOP Importing Alembic geometry loaded into SOPs. The added level of indirection makes retiming more challenging (or impossible), as well as being less efficient.

Texture variation can be added using a primvar on the point instancer, along with a shader that exposes the texture parameter through a primvar reader. The easiest way to set a per-instance primvar is in the point instancer LOP, add a SOP point attribute with the name you want to give the primvar, then on the Point Instancer LOP, specify this Point Attribute to Import.


Thanks you very much. Would it be possible for you to provide a little Hip file example ? Thanks a lot.
  • Quick Links