04-19-2004, 07:06 AM
I'm currently using MS DirectX to draw terrain maps, but it has a big problem and I'm thinking of changing to OpenGL.
I'm using AlphaTest to remove background pixels from a bitmap, but I need the removed pixels to not update the Z-buffer.
Is the OpenGL AlphaTest able to do that?
In DirectX, removed pixels appear to update the Z-buffer, which requires objects to be sorted in Z-order, which I can't do. Is OpenGL any better at this? DirectX and OpenGL appear identical, I'm hoping they're not in this instance.
I see a post from a few days ago asks a similar question, but I'd like a more definitive answer.
Mike Henry
I'm using AlphaTest to remove background pixels from a bitmap, but I need the removed pixels to not update the Z-buffer.
Is the OpenGL AlphaTest able to do that?
In DirectX, removed pixels appear to update the Z-buffer, which requires objects to be sorted in Z-order, which I can't do. Is OpenGL any better at this? DirectX and OpenGL appear identical, I'm hoping they're not in this instance.
I see a post from a few days ago asks a similar question, but I'd like a more definitive answer.
Mike Henry