Dear Users, wish you a nice holiday.
Does anyone know how I can retrieve true hdri pixel information out of a bitmap in Max8?
I use the following method to get the pixels, but this method gets me only the rgb values (8 Bit per color channel), but I need the floating point values (32bit per channel).
myBitmap = openBitmap("C:\\temp\\test_hdr.exr")
for i = 0 to (bm.height - 1) do (
pixelRow = getPixels bm [0,i] bm.width
for pixel in pixelRow do
(
..
)
)
Does anyone know how I can retrieve true hdri pixel information out of a bitmap in Max8?
I use the following method to get the pixels, but this method gets me only the rgb values (8 Bit per color channel), but I need the floating point values (32bit per channel).
myBitmap = openBitmap("C:\\temp\\test_hdr.exr")
for i = 0 to (bm.height - 1) do (
pixelRow = getPixels bm [0,i] bm.width
for pixel in pixelRow do
(
..
)
)
Comment