it seems that copyHDRBuffer(float *buffer) will only work if copyBuffer(indUChar8 *buffer) was called before. otherwise it will result in an access violation.
can someone confirm, or is it even intended?
edit: also, this function is not documented
copyHDRBuffer(float *buffer) malfunction(?) in sdk 11
I have a question about the image buffer too. Don't want to make a new thread about it so i ask it here (i hope you don't mind).
What are the max and min values of the pixel color channel when I use:
copyBuffer(buffer);
r = (float)((const char*)buffer)[(y*w + x)*3];
I mean what's the possible lowest and what's the highest value of r?
I'm experimenting with some image filters here and I'm offten geting very funky colors. So i'm thinking i have to clamp my color values, but i'm not sure what are the legal max and min for r,g,b inside the buffer. Cause it seems, that they are not 0-255. Or are they?
What are the max and min values of the pixel color channel when I use:
copyBuffer(buffer);
r = (float)((const char*)buffer)[(y*w + x)*3];
I mean what's the possible lowest and what's the highest value of r?
I'm experimenting with some image filters here and I'm offten geting very funky colors. So i'm thinking i have to clamp my color values, but i'm not sure what are the legal max and min for r,g,b inside the buffer. Cause it seems, that they are not 0-255. Or are they?
Who is online
Users browsing this forum: No registered users and 2 guests