Out of curiosity, does anyone know how the luminance function calculates its' values?
I sometimes use this function to drive other attributes I've created, with the input usually being a vector.
I use luminance in this way when I want an average value of the all the vector components and I don't need them to be exactly average, instead of this e.g.:
f@New_Attribute = (V.x + V.y + V.z) / 3.0;
It just saves me a bit of typing, but…
I was doing a search on luminance and saw a wiki showing a derivative formula.
https://en.wikipedia.org/wiki/Luminance [en.wikipedia.org]
In doing a test and comparing an actual average and the return of the luminance function, there are differences but not big enough to change my use of it for convenience.
Just curious if anyone happens to know what the actual implementation of the luminance function is.
Is it just a specification unique to Houdini or is there some kind of ‘Industry Standard’?
Edit: I don't know Calculus…but the wiki is talking about using surface areas. This makes sense because it's akin to say a photographer wanting to know what the overall ‘luminance’ is of the subjects surface. But when I use the luminance function I'm only giving it a vector. I guess it's taking those 3 components of the vector as geo positions and creating a planar surface from that information, then calculate the area of that as part of its' computations?