using heightmap to simulate 3d in an isometric 2d game

Posted by VaTTeRGeR on Game Development See other posts from Game Development or by VaTTeRGeR
Published on 2013-07-17T19:49:01Z Indexed on 2013/10/18 22:19 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

I saw a video of an 2.5d engine that used heightmaps to do zbuffering. Is this hard to do? I have more or less no idea of Opengl(lwjgl) and that stuff.

I could imagine, that you compare each pixel and its depthmap to the depthmap of the already drawn background to determine if it gets drawn or not.

Are there any tutorials on how to do this, is this a common problem? It would already be awesome if somebody knows the names of the Opengl commands so that i can go through some general tutorials on that. greets!

Great 2.5d engine with the needed effect, pls go to the last 30 seconds

Edit, just realised, that my question wasn't quite clear expressed: How can i tell Opengl to compare the existing depthbuffer with an grayscale texure, to determine if a pixel should get drawn or not?

© Game Development or respective owner

Related posts about opengl

Related posts about java