Jump to content

How do you add all 6 parts of a skybox?


Recommended Posts

So I successfully added a skybox but as you can see it looks awful because the images are right up against each other. I need to know how to make it 6 sided. Also what size should I use? 256x128 or 1024x200? Thanks.

.zdoom Screenshot 2021.08.16 - 06.34.46.35.png

Edited by ArchRevival

Share this post


Link to post

For DOOM or BOOM you can use the following sizes

  • 4 256 x 128 spanning 90° each
  • 2 512 x 128 spanning 180° each
  • 1 1024 x 128 spanning 360°

For the sky the top colour of the image is applied and for the ground the image repeats. For examples of such sky textures see Post your Doom textures!.

In all cases the sky texture must tile horizontally.

 

GZDOOM, and probably other advanced sourceports, can handle sky textures which are much larger but should, ideally, follow power of 2 sizes. Again, in all cases the sky texture must tile horizontally.

 

6 sided sky textures are used for a skybox, 4 textures one for each cardinal direction (east, south, west, north) and 2 textures one each for top (sky) and bottom (ground). For examples see Kothic skies. In this case the sky textures must tile horizontally and vertically.

 

 

Edited by DOOM mapping enthusiast

Share this post


Link to post

I don't know what source port you use; I suppose this only works in GZDoom, but this is how I do it:

You have to know which pics belong next to each other of course - and then you name the lumps <name>_<side>. The letters are the directions like north and east and T and B mean top and bottom respectively. Then you just define the skybox in GLDEFS like below. In MAPINFO you then just put the skybox name as a string to sky1.

 

Regarding the size - the bigger, the sharper. I usually use 512*512.

 

Some more info on other ways to make them: 

 

https://zdoom.org/wiki/Skybox

 

image.png.79e2d96ac522a1c1769e477f807202b8.png 

   

 

Share this post


Link to post

I haven't released that yet, but here's the map definition from MAPINFO. The skybox in GLDEFS is below.

 

EDIT: skybox name is different, because I took the first picture from an old build, I changed the skybox later.

 

map MAP08 "Skyfathom Nook"
{
levelnum = 8
next = "MAP09"
sky1 = "DUSK", 0.0
NoIntermission
FallingDamage
Music = "D_MAP08"
Cluster = 1
}

 

skybox DUSK fliptop
{
    DUSK_N
    DUSK_E
    DUSK_S
    DUSK_W
    DUSK_T
    DUSK_B
}

Edited by Rifleman

Share this post


Link to post
4 hours ago, ArchRevival said:

Can I download whatever map that is so I can look at it's MAPINFO? I'm confused here.

 

Just to clarify. What you show in the OP is a simple sky texture, not a sky box.

 

A while back I made a tutorial, which includes a map, explaining how to construct a skybox for GZDOOM.

 

Specify the sky name and the sky images in GLDEFS.

Then use the sky name in MAPINFO.

Edited by DOOM mapping enthusiast

Share this post


Link to post
  • 1 year later...

Hi!

 

I found this topic through google, so apologies if i bump this for no reason.

 

I have a little problem. I am planning to do outdoor areas, but making sky is bit problematic. I made "room" sector, what is supposed to be courtyard. When i put sky -texture to ceiling, sky is made from 258x258 (if i remember size correctly) squares. How do i make that sky even, so it is just one piece and not squares?

 

I am using DB2. "Platform" for level is Doom 2 and i have D2 and GZdoom as resources.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...