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.
-
-
- Posts: 17936
- Joined: Fri Jul 06, 2007 3:22 pm
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.
You do not have the required permissions to view the files attached to this post.
-
-
- Posts: 4150
- Joined: Thu Jul 17, 2003 12:19 am
- Graphics Processor: nVidia (Legacy GZDoom)
- Location: British Columbia, Canada
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
-
-
- Posts: 17936
- Joined: Fri Jul 06, 2007 3:22 pm
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.
-
- Posts: 188
- Joined: Sun Jun 10, 2018 7:01 pm
Re: 3D Floor as water - any color ambiance?
Groovy!
You do not have the required permissions to view the files attached to this post.