magneto Posted December 19, 2014 Share Posted December 19, 2014 Hi, Shouldn't this be a float type? I see for example the default uniform volume shader uses float for opacity but has to output to vector Of. Is this normal? Don't know how to visualize a vector opacity in practice. Thanks Quote Link to comment Share on other sites More sharing options...
rayman Posted December 19, 2014 Share Posted December 19, 2014 Isn`t this supposed to mean that opacity has color? 1 Quote Link to comment Share on other sites More sharing options...
magneto Posted December 19, 2014 Author Share Posted December 19, 2014 In this case how is a color opacity interpreted? By grayscale or luminance? Also the same can easily be achieved by using the surface color and then multiply with float opacity, right? So I thought having colors at both places is confusing. But I am not an expert Shading TD like Symek Quote Link to comment Share on other sites More sharing options...
Georgie Posted December 22, 2014 Share Posted December 22, 2014 (edited) https://www.sidefx.com/docs/houdini13.0/vex/contexts/shading_contexts Click the Opacity vs Alpha link. Explains it pretty good. Got to admit it was a really cool question. I never actually thought about that so first thing I did was fire up Houdini and play with a couple of clay shaders on a box and a sphere. Results were really weird and could figure out why 'till I found that info. Cheers and thanks for the good question. Of vectorThe final opacity for the surface. A value of {1,1,0} will be opaque in red/green, but let through blue light from behind. Seeopacity vs. alpha. Edited December 22, 2014 by Georgie 1 Quote Link to comment Share on other sites More sharing options...
fathom Posted December 23, 2014 Share Posted December 23, 2014 figure that color represented as RGB is really just 3 floats. RGB opacity just means 3 different opacity settings for each component being calculated. if you think of the RGB components being computed separately, it might make more sense conceptually. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.