Decals and -bounce

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
jal_
Posts: 223
Joined: Mon Mar 24, 2008 4:13 pm

Decals and -bounce

Post by jal_ »

I found out q3map2 has a bug at -bounce when using decals. The thing is, transparent surfaces are bouncing light as normal surfaces, so a decal placed on a floor/wall is bouncing light, but the wall is also bouncing it. This makes walls with the decals emit huge amounts of light, almost like a light shader.

I discovered it in this small map section which had walls with decals very close and looking to each other. There's no light entity in there, all the light you see is from bouncing the sky light in the decals.

[lvlshot]http://www.foopics.com/showfull/5234f263dca52fc8f972808250e49992[/lvlshot]

[lvlshot]http://www.foopics.com/showfull/3d63c4c54becb1d5f3c251b432c1b40b[/lvlshot]

I fixed it my copy of q3map2 (by skipping all surfaceparm trans surfaces when bouncing), and also sent the fix to netradiant, but, I think you can avoid it in current q3map2 builds by setting a very low bounce value in the decal shader.
User avatar
Hipshot
Posts: 1548
Joined: Sun Jan 20, 2002 8:00 am

Re: Decals and -bounce

Post by Hipshot »

q3map_bounceScale...
Q3Map2 2516 -> http://www.zfight.com/misc/files/q3/q3map_2.5.16_win32_x86.zip
Q3Map2 FS_20g -> http://www.zfight.com/misc/files/q3/q3map2_fs_20g.rar
GtkRadiant 140 -> http://www.zfight.com/misc/files/q3/GtkRadiantSetup-1.4.0-Q3RTCWET.exe
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Decals and -bounce

Post by obsidian »

^ This.

But good to know that you need to set this for decals.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
jal_
Posts: 223
Joined: Mon Mar 24, 2008 4:13 pm

Re: Decals and -bounce

Post by jal_ »

Hipshot wrote:q3map_bounceScale...
jal_ wrote:by setting a very low bounce value in the decal shader.
obsidian wrote:But good to know that you need to set this for decals.
Decals are the worst case, but you should set it to everything transparent. Specially if you are one of those guys who choose to fill in white the alphamasked part of the textures (that part will be bounced too). I try to think in cases where the transparent surface should be bounced and they are all too forced to really happen. The cases that would make more sense would actually be decal cases where the decal is mostly opaque, but not if the wall is also bounced. :)
User avatar
monaster
Posts: 532
Joined: Mon Apr 28, 2008 1:52 pm

Re: Decals and -bounce

Post by monaster »

jal_ wrote: Decals are the worst case, but you should set it to everything transparent. Specially if you are one of those guys who choose to fill in white the alphamasked part of the textures (that part will be bounced too). I try to think in cases where the transparent surface should be bounced and they are all too forced to really happen. The cases that would make more sense would actually be decal cases where the decal is mostly opaque, but not if the wall is also bounced. :)
Thanks for letting everybody know, that solved one very old problem I've had in the past.
If you are caught on a golf course during a storm and are afraid of lightning, hold up a 1-iron. Not even God can hit a 1-iron.
-Lee Trevino, golfer who actually has been struck by lightning.
Post Reply