how varying materials with renderman

   4320   14   1
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
Hi how i can vary the materials with renderman inside solaris? pxrvary dont' work in houdini 18.5.
Thanks in advance for the help
User Avatar
Staff
4566 posts
Joined: July 2005
Offline
Please attach a hip file to show what you tried.
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
i attached theexample file

Attachments:
pxrVary_example.hiplc (205.3 KB)

User Avatar
Staff
4566 posts
Joined: July 2005
Offline
So I've now realized that I don't know what “pxrvary” is supposed to do, so I'm really not sure what it is you're trying to accomplish. But before I realized that I created this modified version of your files using the pxrprimvar VOPs to use a couple of primvars to drive the material (varying per point on the spheres, and also varying per-instance with a primvar on the point instancer itself). If this doesn't cover what you're looking for, then please clarify what you're trying to do. Or maybe someone more knowledgeable about renderman can jump in and save me…

Attachments:
primvar_example.hiplc (229.1 KB)

User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
37/5000
I'm sorry I didn't explain myself well, if for istance i have some instance trees and i want to make some color variation. I hope with this attachment it's more clearly
Edited by Piledriver - Nov. 30, 2020 04:32:31

Attachments:
screenshot.jpg (386.0 KB)

User Avatar
Staff
4566 posts
Joined: July 2005
Offline
Is 37/5000 my grade? That's a pretty epic fail

Then I think what I've included there shows the USD way of doing this… Using a pxrprimvar VOP and setting a primvar on the point instancer, with one value per instance. Again, not sure how this relates to pxrvary, so I may still be missing something, but I don't know anything about how pxrvary might show up in USD or how one would drive it…
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
i don't know why don't work inside houdini and instance node pxr vary work like in the last screenshot, i remember also that in houdini 18.0 worked… i'm not sure if a renderman bugs but i can try woith other methods
User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
i don't know why don't work inside houdini and instance node pxr vary work like in the last screenshot, i remember also that in houdini 18.0 worked… so fo that i have to create a material after instancer lop right?
User Avatar
Staff
597 posts
Joined: June 2020
Offline
Here's a slightly-modified version of your scene that will hopefully work for you. I changed the material network to use a PxrVary node, keyed off a “varySeed” primvar added in the instancer (similar to how you were adding “mix”). There's nothing special about the name “varySeed”, but it's important to note the wide range of values (as opposed to the 0-1 range you have with “mix”).

Let me know if you still have trouble with this!
Edited by robp_sidefx - Dec. 8, 2020 06:18:47

Attachments:
pxrvary.png (1.0 MB)
primvar_example_robp.hiplc (222.8 KB)

User Avatar
Member
99 posts
Joined: Nov. 2018
Offline
yes it's work thanks for your time
User Avatar
Member
3 posts
Joined: Feb. 2018
Offline
when 'identifier Name' selected as vary source, i get unique instances. but changes on each frame of animation. please, whats the reason for this
?

Attachments:
ezgif.com-gif-maker.gif (442.2 KB)

User Avatar
Staff
597 posts
Joined: June 2020
Offline
Can you share your .hip file?
User Avatar
Member
3 posts
Joined: Feb. 2018
Offline
sure

Attachments:
pxrvary test.hiplc (535.0 KB)

User Avatar
Staff
597 posts
Joined: June 2020
Offline
Thanks. I had a quick look and I see the same result. I'm afraid this might be one you'll need to ask the RenderMan For Houdini team about.
User Avatar
Member
20 posts
Joined: April 2016
Offline
This is working
  • Quick Links