Jump to content

change opacity based on world in vex


majikal

Recommended Posts

Hello!

How should i modify clay material so, that opacity on sruface would change according to world position...

z=0 opacity 0

z=>1 opacity 1

I tried this but it doesnt work:

thank you....

post-4442-1242064123_thumb.png

Edited by majikal
Link to comment
Share on other sites

i would take your "z" value from your vectofloat1 VOP and wire it into the bias of a "mix VOP". Wire your Zero constant vop in to the first input, and 1 into the second input of the mix. That should work. I havent tested it yet, but you may need to wire your "z" value into a clamp before wiring it into the mix bias.

Link to comment
Share on other sites

i would take your "z" value from your vectofloat1 VOP and wire it into the bias of a "mix VOP". Wire your Zero constant vop in to the first input, and 1 into the second input of the mix. That should work. I havent tested it yet, but you may need to wire your "z" value into a clamp before wiring it into the mix bias.

Yes this work!!!!! Thank you very much!!!!

I justy dont get why i need to use mix, why not directly position!!

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