C++ Learning Community Forum
August 01, 2010, 03:20:49 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Hello.
Home
Help
Search
Login
Register
C++ Learning Community Forum
>
Platform Specific Programming
>
OpenGL
>
Opengl transparency issues
Pages: [
1
]
« previous
next »
Print
Author
Topic: Opengl transparency issues (Read 762 times)
oscar_spencer
N00b!!1
Posts: 4
Opengl transparency issues
«
on:
September 08, 2007, 08:06:34 AM »
it seems to me that when i use opengl to draw transparent textures,
the ordering is important to the final outcome.
apparently i must reverse order the drawing of all of my transparent
textures so that the pixels already drawn behind them are the correct ones.
is there any way to change this, so that i dont need to order my drawing?
im using an alpha testing function as follows:
glEnable(GL_ALPHA_TEST);
glAlphaFunc(GL_GREATER, 0);
im also using a depth test:
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);
any help is good! thanks.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General C++ Programming
-----------------------------
=> C++ Help
===> C Programming
=> C++ Tips
=> C++ in General
=> 3rd Party Libraries Programming
-----------------------------
Platform Specific Programming
-----------------------------
=> Windows
=> Linux
=> DirectX
=> OpenGL
-----------------------------
C++ Creations
-----------------------------
=> Finished Products
=> Work in Progress
-----------------------------
Resources
-----------------------------
=> Recommended Resources
=> Bookworm's Corner
===> Accelerated C++: Practical Programming by Example
===> Code Complete
-----------------------------
Other than C++....
-----------------------------
=> Off Topic
=> Other Programing Languages
===> ASM Programming
=> Computer Lab
=> The Community
Loading...