Linear Color ( or not? )
Linear Color ( or not? )
Hi all,
I apologize if the following has been addressed and I missed it. If so, just slap me and please point me in the appropriate direction.
I have just begun updating several of fxplugs from 1.2. Many of them are based on data encoded into the images. I understand that colorspaces are now used and I need to request linear color outputs.
In properties I am returning "[NSNumber numberWithInteger:kFxImageColorInfo_RGB_LINEAR], kFxPropertyKey_DesiredProcessingColorInfo," in the dicitonary.
When I query the output image for the color space it returns "kFxImageColorInfo_RGB_LINEAR". I understand this to map the image colors from 0.0 to 1.0.
(FxImage*)outputImage.colorInfo equals kFxImageColorInfo_RGB_LINEAR
The issue occurs when rendering to the output image ( or read from the input image ). The following code outputs a much brighter luminance value than 0.5.
glClearColor( 0.5, 0.5, 0.5, 1.0 );
glClear( GL_COLOR_BUFFER_BIT );
Is there somewhere else I need to request linear color? Am I not understanding linear color correctly?
Regards,
David Patrick Farmer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden