On 23/01/2016 at 13:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R17
Platform: Mac ; Mac OSX ;
Language(s) : C++ ;
---------
I'm struggling to understand why I paint colors with ExecutePixel() on my VideoPost and they do not come out as expected. I understand this method should give me full control on the final pixels, but it doesn't.
I made a simple test. On a new project, only my plugin added to the scene, no other posts. I paint everything with 50% white, using the code below...
void MyVP::ExecutePixel(BaseVideoPost* node, PixelPost* pp, Int32 x, Int32 subx, Int32 suby)
{
Float32 *col = pp->col;
col[0] = col[1] = col[2] = 0.5f;
}
The result is around 73% white, not 50%.
Even stranger, it varies between 73% and 74%!
What's altering the result???