Transparent brush

Discuss programming topics for the various GPL'd game engine sources.
MDave
Posts: 76
Joined: Mon Dec 17, 2007 7:08 pm

Post by MDave »

Not standard glquake, no. Darkplaces, Nehahra and a few others support it though.

I made a very simple version for glquake that simply checks if the texture is called glass, then use the neccesasry calls to turn blending on, set the blending mode, call the actual DrawGLPoly function then reset the blend modes back to normal. Works alright for me, although some times entities don't show up on other sides of the glass brush (which the brush itself is an entity something like a func_wall) unless it's made static. But then you can walk through it and shoot through it :P I only use it for small details though so it isn't much of a problem for my uses.
Spirit
Posts: 1067
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Post by Spirit »

Not necessarily.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Post Reply