On Thursday 01 September 2005 06:03, Sergey Plis wrote: > Is it possible? Any examples?
Sure. Look at the flying dragon example. This contains code to enable
transparency:
GL_BLEND glEnable
GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glBlendFunc
Change the background color of the dragon e.g. to
Create .white !&.7 f>fs , !&.7 f>fs , !&.7 f>fs , !&.5 f>fs ,
and you get a half-transparent dragon. You can also use PNGs with alpha
channel, same effect. Note that for transparency, you need to draw from
back to front, since z-buffering assumes opaque surfaces.
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/
pgpqhfnrpGvfR.pgp
Description: PGP signature
