3D Issues with depth order and alpha [SOLVED]


Hi. I have a terrain model(d3d) and a water model(d3d_floor). The problem is that If I draw the terrain before, and the water after that, the water model is drawn onto the terrain though it's z value is lower than the terrain. It looks like this:

If I draw the terrain first, and draw the water after, it looks like this as the terrain is drawn onto water.

I tried d3d_set_depth, it doesn't work.

SOLVED : If you encounter similar problem, do not use floor, use d3d_block instead.
Last edited: