I have a greyscale bitmap that has the values 0 to 20 at each pixel position.
These refer to one of 21 bitmaps (of same proportions) that contain the ‘sharp’ pixel to use at that position.
So, for each level I have a bitmap image of just the sharp pixels, the rest being black.
I can see that I have to render each image bitmap on a quad, from back to front with depth-testing enabled, at a certain distance corresponding to it’s depthmap value (or ‘slice number’).
What is the best way to do this ?
I will have to make the black transparent, can I copy the depthmap to z-buffer ?
David Sykes