Originally Posted by
Dino
What range of colors do you need for the depth? You mentioned black to white, so that's RGB(0,0,0) to RGB(255,255,255). Are you wanting only shades of gray? Obviously, there are more possible float values than there are color values, so you'll need to normalize the float values either way. Why can't you figure out the min and max float values ahead of time?
Or, is your problem the mapping of a float value between 0.0 and 1.0 to an RGB value that will make sense from a color spectrum depth perspective?