Forum

Transparent brush

Discuss programming topics for the various GPL'd game engine sources.

Moderator: InsideQC Admins

Postby MDave » Wed Apr 16, 2008 11:39 pm

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.
User avatar
MDave
 
Posts: 76
Joined: Mon Dec 17, 2007 7:08 pm

Postby Spirit » Thu Apr 17, 2008 7:08 am

Not necessarily.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Spirit
 
Posts: 1031
Joined: Sat Nov 20, 2004 9:00 pm

Previous

Return to Engine Programming

Who is online

Users browsing this forum: No registered users and 1 guest