Q3Shader surfaceparm trans

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
achpile
Posts: 5
Joined: Mon Oct 27, 2014 7:21 am

Q3Shader surfaceparm trans

Post by achpile »

Good day, everyone! I've found a problem with "surfaceparm trans". When it's set, the getRenderState doesn't return ESNRP_TRANSPARENT_EFFECT. There's even no checks on "surfaceparm trans".

I've found, it was removed about 5 years ago at "Changes in version 1.6, TA" commit:

Code: Select all

 
-       if ( group->isDefined( "surfaceparm", "trans" ) )
+       else
+*/
+       if (    strstr ( Shader->name.c_str(), "flame" )
+               )
+       {
+               ret = ESNRP_TRANSPARENT_EFFECT;
+       }
+       else
+       if ( group->isDefined( "surfaceparm", "water" ) )
        {
-               ret = true;
+               ret = ESNRP_TRANSPARENT_EFFECT;
        }
        else
 
Why it was removed? To achieve "trans" effect I have to use "surfaceparm water".
CuteAlien
Admin
Posts: 9652
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Q3Shader surfaceparm trans

Post by CuteAlien »

No idea really - I'll ask burningwater, maybe he still remembers.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
burningreggae
Posts: 66
Joined: Wed Oct 04, 2006 2:07 pm

Re: Q3Shader surfaceparm trans

Post by burningreggae »

use blendfunc blend
burningreggae
Post Reply