2 Skys in one map?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

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.
Post Reply
User avatar
ToxicBlade_2505
Posts: 10
Joined: Thu Oct 28, 2021 6:46 am
Location: France

2 Skys in one map?

Post by ToxicBlade_2505 »

Hello. I'm working on a WAD, with an area that is supposed to have a different skybox. I have used Sky2 in MAPINFO, tho i set the action special for the sector yet nothing seemed to work. Any help would be greatly appreciated.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: 2 Skys in one map?

Post by Graf Zahl »

Post your map. If something went wrong we need to be able to investigate.
User avatar
ToxicBlade_2505
Posts: 10
Joined: Thu Oct 28, 2021 6:46 am
Location: France

Re: 2 Skys in one map?

Post by ToxicBlade_2505 »

Graf Zahl wrote:Post your map. If something went wrong we need to be able to investigate.
https://www.mediafire.com/file/04jxc01q ... e.wad/file
User avatar
Kappes Buur
 
 
Posts: 4120
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: 2 Skys in one map?

Post by Kappes Buur »

Yes, you could use a different texture as in your example Demosbase (Sky5), but then the sky will be a flat image, which would not be a convincing sky.

A better solution would be to use a linespecial 190 for DiHF or UDMF (use the sky image between TX_ markers, or a linespecial 271 for Boom or MBF (use the sky image in Texture1 and PNAMES). This way you could have a different sky for each tagged sector.

Here I use 5 different skies
Spoiler:
Link to map

Whichever format you want to use, the sky image must be tiled properly and be of the correct size, default is 256 x 128 to repeat 4 times for 360°. Or 512 x 128 to repeat twice for 360° or 1024 x128 for 360° as in Plutonia.wad.
User avatar
ToxicBlade_2505
Posts: 10
Joined: Thu Oct 28, 2021 6:46 am
Location: France

Re: 2 Skys in one map?

Post by ToxicBlade_2505 »

Kappes Buur wrote:Yes, you could use a different texture as in your example Demosbase (Sky5), but then the sky will be a flat image, which would not be a convincing sky.

A better solution would be to use a linespecial 190 for DiHF or UDMF (use the sky image between TX_ markers, or a linespecial 271 for Boom or MBF (use the sky image in Texture1 and PNAMES). This way you could have a different sky for each tagged sector.

Here I use 5 different skies
Spoiler:
Link to map

Whichever format you want to use, the sky image must be tiled properly and be of the correct size, default is 256 x 128 to repeat 4 times for 360°. Or 512 x 128 to repeat twice for 360° or 1024 x128 for 360° as in Plutonia.wad.
Thanks :D I used the linedef action 190 and it worked just fine.
Post Reply

Return to “Mapping”