Sector translucency?

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
Rex Claussen
Developer
Developer
Posts: 2659
Joined: Tue Jul 11, 2006 18:36
Contact:

Sector translucency?

Post by Rex Claussen »

I have done some searching, and have come up with nothing for setting sector translucency. Is there any such thing? (I mean other than the fog effect.)

I want to create a particular color (turquoise) for underwater sectors. Please see the thread on the ZDooM forums for more information.

Thanks.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Can you describe your setup a bit more detailed? I have no idea what precisely you try to do so I can't give any advice.
User avatar
Rex Claussen
Developer
Developer
Posts: 2659
Joined: Tue Jul 11, 2006 18:36
Contact:

Post by Rex Claussen »

Graf Zahl wrote:Can you describe your setup a bit more detailed? I have no idea what precisely you try to do so I can't give any advice.
I have a deep water sector that is translucent when observed from above the water's surface. [Look at the foreground in this screenshot to see the water sectors.] The water flat has a turquoise color that is very evident in this screenshot. The closest match to an underwater color I have found is represented by the value 80008080, when it is assigned to the lower texture in ZDooM's Transfer_Height special. I want to be able to get that same color in my GZDooM deep water sector.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

You mean to a 3D-liquid floor? In that case you set the color value to the lower texture of the 3D-floor's control linedef.
User avatar
Rex Claussen
Developer
Developer
Posts: 2659
Joined: Tue Jul 11, 2006 18:36
Contact:

Post by Rex Claussen »

Graf Zahl wrote:You mean to a 3D-liquid floor? In that case you set the color value to the lower texture of the 3D-floor's control linedef.
That was the first thing I had tried. It doesn't seem to work. Here are the particulars:

GZDooM version 1.1.4 (R110)
ZDooM version 2.2.0 (R993)

Control linedef has the following special & attributes:

Sector_Set3DFloor (182, 2, 0, 160)
Main texture = Gray5
Lower Texture = 80008080
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Hmmm... I can't seem to get it to work by putting that value on the lower side of a control sector either. When I jump into the swimable 3D water, it is not coloured below the surface. That's with a very simple test map.

I normally colour 3D water using a script to colour the control sector. Is that any use to you.
User avatar
Rex Claussen
Developer
Developer
Posts: 2659
Joined: Tue Jul 11, 2006 18:36
Contact:

Post by Rex Claussen »

Enjay wrote:I normally colour 3D water using a script to colour the control sector. Is that any use to you.
I have tried that too, and managed to get a semblance of a turquoise-colored underwater area, but it's not quite the same as with the Lower Texture = 80008080.

But yes, please post your script. Thanks.
Locked

Return to “GZDoom”