how could I import Cd attributes into shop net ?

   595   1   0
User Avatar
Member
31 posts
Joined: 2月 2011
Offline
I made a simple scene and want to put the Cd attribute into shop net and rendering right.but,it was not working .i want to know what is going on? thx



Image Not Found

Attachments:
1.png (2.0 MB)
2.png (159.9 KB)
3.png (852.8 KB)
randcolor.hiplc (459.9 KB)

User Avatar
Member
194 posts
Joined: 8月 2011
Offline
Image Not Found


hey, it's really easy to do, but maybe not obvious if nobody told you before!

in your VOP you gotta use a "bind" node. This node lets you bind attributes from your sop level into the material you are building for it.

So, in this case, tab "bind", and change the "Name" to Cd, and change it to 3 Floats (Vector), and then you can use it just like you would expect. So, for what i think you were trying to do, just plug the vector from your Bind into your basecolor, and you're good.

(Cf is not the same thing as Cd, as you have noticed)

Pretty sure the "Cd_bound" value is a boolean, so you can check to see if Cd was correctly bound or not. If it didn't work for some reason, you can set up a default value, whatever you want. (i haven't tried it, but i'm 99% sure that's what it's for)


Have fun!


~Maitland

Attachments:
bind_Cd.png (563.1 KB)
randcolor--bind_Cd.hipnc (462.9 KB)

  • Quick Links