sinsky | 2006-07-08 18:25
Skyboxes

Although probably not as fun as level design, making skyboxes can add a lot to the experience of creating a map, as well as the atmosphere and gameplay of a level. Skyboxes can be loaded with the "loadsky" command, followed by the path to the files. The "loadsky socksky/desert" command for example will load the desert skybox located in the folder packages\socksky. You can browse to this folder and view the six images that compose the panorama you see in game. This guide will focus on the process of creating a skybox with several software rendering packages.


Many of the Cube and Sauer skyboxes were created with Terragen. You can find a detailed step-by-step tutorial by googling for "Terragen skybox" and "Lloyd M". In Terragen, as well as in the other packages we're about to use, there are a few basic rendering parameters that need to be set for each of the six images so they can blend seamlessly. In Terragen v0.9 (the version used here), all of the parameters can be accessed from the Rendering settings window. Images need to be square, so first click on Image size and set both height and width to 128, 256, 512, 1024, etc. Click Camera settings and set Zoom / Magnification to 1. Below is the camera orientation, which you can set individually for each image before rendering:

skybox_LF -- pitch = 0, head = 0
skybox_RT -- pitch = 0, head = 180
skybox_BK -- pitch = 0, head = 90
skybox_FT -- pitch = 0, head = 270
skybox_DN -- pitch = -90, head = 0
skybox_UP -- pitch = 90, head = 0

All images must be saved in jpeg format, the last two images (filename_up and filename_dn) must be flipped horizontally and vertically. So after rendering you should edit the images in image processing software like Adobe Photoshop, The Gimp, etc. and make the needed changes. You could also add stuff and use a smudge tool or other tools to make additional corrections.

Terragen also allows to make a simple six-frame animation script to turn the camera and render the files automatically as opposed to editing parameters every time you render. Here's an example script (can be saved in a text file and then loaded in Terragen from the Terragen->Execute script menu):

InitAnim "c:\folder\filename", 1
CamP 0
CamH 0
FRend

CamH 180
FRend

CamH 90
FRend

CamH 270
FRend

CamH 0
CamP -90
FRend

CamP 90
FRend

If you are not comfortable with editing each image individually, a batch file could be used to convert the images produced by the above script automatically. Windows batch files are text files that have the .bat extension and can be used to execute several commands. You can place the batch file in the folder where the images reside. When you double-click the file (filename.bat), the sequence of commands it contains is started (and hopefully, will end in a few seconds). If you have ImageMagick installed these commands can be, for example:

convert filename0001.bmp skybox_lf.jpg
convert filename0002.bmp skybox_rt.jpg
convert filename0003.bmp skybox_bk.jpg
convert filename0004.bmp skybox_ft.jpg
convert -flip -flop filename0005.bmp skybox_dn.jpg
convert -flip -flop filename0006.bmp skybox_up.jpg

This tutorial is not finished. Two more sections are planned, with info on using Blender and POV-Ray.

User login
Users on Quadropolis
1 guest & no users online
30
points ]
 (3 votes)
Created 2019-05-17 21:51
5 years 27 weeks ago
30
points ]
 (3 votes)
Created 2020-06-13 21:05
4 years 23 weeks ago
20
points ]
 (2 votes)
Created 2021-05-24 00:01
3 years 26 weeks ago
8
points ]
 (1 vote)
Created 2024-06-02 14:26
24 weeks 4 days ago
8
points ]
 (1 vote)
Created 2024-06-02 22:13
24 weeks 3 days ago
vampirefrog
Created 2024-04-11 22:25
31 weeks 6 days ago
vampirefrog
29
points ]
 (4 votes)
Created 2010-05-30 10:00
14 years 25 weeks ago
Gangler
36
points ]
 (4 votes)
Created 2020-10-22 00:50
4 years 4 weeks ago
Zoocata
10
points ]
 (1 vote)
Created 2024-02-11 21:20
40 weeks 3 days ago
vampirefrog
10
points ]
 (1 vote)
Created 2023-07-23 20:02
1 year 17 weeks ago
36
points ]
 (4 votes)
Created 2020-12-10 12:49
3 years 49 weeks ago
Created 2023-12-12 23:34
49 weeks 1 day ago
Zoocata
Created 2023-11-27 23:00
51 weeks 2 days ago
20
points ]
 (2 votes)
Created 2023-10-01 15:21
1 year 7 weeks ago
9
points ]
 (1 vote)
Created 2023-06-13 17:54
1 year 23 weeks ago
Zoocata
27
points ]
 (3 votes)
Created 2023-05-05 20:58
1 year 28 weeks ago
Zoocata
18
points ]
 (2 votes)
Created 2023-03-02 01:40
1 year 37 weeks ago
Getridou
Created 2023-01-29 23:27
1 year 42 weeks ago
Created 2023-01-19 19:36
1 year 43 weeks ago
Getridou
Created 2023-01-10 17:10
1 year 45 weeks ago
Who's new
  • ColdIV
  • Aidan
  • Hunk
  • letic86
  • BATMAN