On 08/12/2013 at 23:21, xxxxxxxx wrote:
Cinema 4D Version: R15
Platform: Windows ;
I have a HDR 32 bit texture layer and now I want to read the color values.
For normal 8 bit textures this is not a problem, but how to get the 32 bit color values.
Here is my attempt:
Float buffer; //one pixel is 1 float (4 bytes) * 3 (RGB) = 3 floats
//get one pixel to test
pLayerBmp->GetPixelCnt(0,0,1,(UChar* )buffer,COLORMODE_RGBf, PIXELCNT_0);
GePrint("Before pixel 0,0: " + String::FloatToString(buffer) \+ " - " +
String::FloatToString(buffer) + " - " +
On 09/12/2013 at 02:49, xxxxxxxx wrote:
Float buffer; should be Float32 buffer;
On 09/12/2013 at 03:16, xxxxxxxx wrote:
In the C4D C++ SDK, defined 'generic' types usually default to the 64-bit version (Float = Float64, Vector = LVector, etc.).
On 12/12/2013 at 08:28, xxxxxxxx wrote:
Ok, good to know.