Hi,
is there any way to modify the result of other render elements while rendering?
We want to do some color corrections for the render elements at rendertime (for preview things)... for example some color corrections at the reflectionLayer.
Right now I am doing this by just accessing and modifying the other elements from within my own renderElements' applyLookupCurve-method.
It's working, but.. the results are somehow strange... it seems as if the colors are modifyied by Vray after I change them.
If I set the color of the Lighting-element to 1.0/1.0/1.0 (white), the result element has a color of something about 1.6/1.2/1.6.... why?
Aya~
is there any way to modify the result of other render elements while rendering?
We want to do some color corrections for the render elements at rendertime (for preview things)... for example some color corrections at the reflectionLayer.
Right now I am doing this by just accessing and modifying the other elements from within my own renderElements' applyLookupCurve-method.
Code:
void ColorLookupRenderElement::applyLookupCurve(VUtils::Color inColor, VUtils::Color &outColor, VR::VRFragment *frag, VR::ColorMapper *colorMapper, VUtils::FragmentBlendMode blendMode, double x, double y, BOOL gammaCorrection) { [...] outColors[i] = (VUtils::Color*)frag->getChannelDataPtrByAlias(aliasList[i]); //Alias list is the list of renderElements [...] }
If I set the color of the Lighting-element to 1.0/1.0/1.0 (white), the result element has a color of something about 1.6/1.2/1.6.... why?
Aya~
Comment