Jump to content

Sop material override with per particle colors


FXslogger

Recommended Posts

Hey, this may not be possible, but I have a material override applied to an object that I am instancing the. The material override is applied at the sop level of the object. That way I can assign per primitive materials, settings.

I want to vary the color of my instance passing the point color through the instance node. I can't seem to do this and assume its because my material override is applied at the sop level. 

I've tried adding the following to my material's base color and material override's base color. No luck.

point("/obj/instance1/OUT", instancepoint(), "Cd", 0)

If I remove the sop level material override and place the material on either the instance object at object level or my instance node, the color comes through. Is there some kind of work around I could implement?

Much thanks!
 

color.instanc.1.hip

Edited by FXslogger
Link to comment
Share on other sites

you can just a apply a color node and set it to random.

If you want to make it with a material you need to open your material. Right click >  "allow edit of contents"

But it will be a lot easier setting up in Sops 

Edited by Sepu
Link to comment
Share on other sites

I've attached a simple test scene. I don't want a random color, I want to pass specific point colors to the instance material override. With a material override specified at the sop level of my instance geom (a box), it doesn't appear to pick up the instancepoint() call. Prob because instance works only at the object level. I'm looking for a work around to keep the material override and allow point colors to pass through.

 

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...