Hi, I'm using a 3D floor as an swimming pool. It works perfect, but it does not look right when submersed. Is there any way to give it a blue tint look, like in Duke 3D?
https://youtu.be/_IuQMOIS_vw?t=26s
3D Floor as water - any color ambiance?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Re: 3D Floor as water - any color ambiance?
Yes of course.
The simplest is to set use the fog color property of the 3D floor's control sector. Then use its light level to control how thick the fog is. Here's an example.
The simplest is to set use the fog color property of the 3D floor's control sector. Then use its light level to control how thick the fog is. Here's an example.
- Attachments
-
- pool3d.zip
- (3.18 KiB) Downloaded 72 times
- Kappes Buur
-
- Posts: 4122
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
- Contact:
Re: 3D Floor as water - any color ambiance?
Or, for exact color settings
1. Use ACS scripting
1. Use ACS scripting
Code: Select all
#include "zcommon.acs" script 200 open { // 213:Sector_SetFade (tag, r, g, b); Sector_SetFade (2, 5, 5, 125); // and/or // 212:Sector_SetColor (tag, r, g, b, desat); Sector_SetColor (2, 5, 5, 175, 0); // other stuff if needed }
- 9039 FadeSetter
and/or
9038 ColorSetter
Re: 3D Floor as water - any color ambiance?
I believe SetFade corresponds to the fog, and SetColor to the light color, so you can set those with sector properties in UDMF (like I did in my example map) instead of ACS or setting things. I think the fade/fog makes more sense for a liquid than light, too; though I guess light could apply for a glowy liquid like nukage or lava.