Sign in to follow this  

3D on 2D Plane (Z-Fighting)

Recommended Posts

I'm currently working on a 3D in 2D project using 3D graphics to draw a 2D game. I'm trying to get weapons fire working on the 2D plane but I'm having trouble with the Z-Buffer. I'm rendering all of the weapons as quads on the 2D plane at the same depth and blending them. With backgroud objects this works fine beacuse it is drawn in the correct order for blending, but in terms of overlapping weapons fire I have problems getting the last drawn weapon (The correctly blended one) to render on top of an earlier drawn weapon. I've looked at a couple of the solutions people have address such as polygon offset and stenciling but I'm not sure which is best for my current problem. Any help/advice would be greatly appreciated.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this