Sign in to follow this  
wforl

OpenGL problems with alpha in planes

Recommended Posts

Hi, ive just started this project, and as you can see im having trouble with the alpha on my images, on the left of the trees its ok, but on the right it does some weird blocking thing. Ive enclosed the project if any of you wouldn't mind looking at it, at the moment its very rough code, and needs to be cleaned up and worked on, but i dont know why this is happening. the folder is only 3mb, thanks Photo Sharing and Video Hosting at Photobucket OpenGL Coursework.zip

Share this post


Link to post
Share on other sites
each pixel in the depth buffer can only store one value (usually the closest)

thus u need to either not write into the depthbuffer
eg glDepthMask(GL_FALSE);
or better yet prolly in this case
enable alphatest with GL_GREATER 0.0

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