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 & 1 user online
afroninja
26
points ]
 (3 votes)
Created 2020-01-15 07:47
10 weeks 3 days ago
7YearBitch
20
points ]
 (2 votes)
Created 2020-03-16 20:09
1 week 4 days ago
70
points ]
 (7 votes)
Created 2020-01-24 22:26
9 weeks 13 hours ago
40
points ]
 (4 votes)
Created 2020-01-23 12:57
9 weeks 1 day ago
30
points ]
 (4 votes)
Created 2020-01-26 14:10
8 weeks 5 days ago
170
points ]
 (17 votes)
Created 2011-09-05 14:13
8 years 29 weeks ago
Sauce
71
points ]
 (8 votes)
Created 2018-08-22 19:15
1 year 31 weeks ago
Lord Kv
160
points ]
 (16 votes)
Created 2015-03-12 14:45
5 years 2 weeks ago
45
points ]
 (6 votes)
Created 2009-08-15 13:37
10 years 32 weeks ago
MisanthropX
74
points ]
 (8 votes)
Created 2019-12-05 20:57
16 weeks 1 day ago
Redon
105
points ]
 (11 votes)
Created 2019-10-24 21:41
22 weeks 1 day ago
10
points ]
 (1 vote)
Created 2019-10-26 11:09
22 weeks 31 min ago
25
points ]
 (3 votes)
Created 2019-10-11 23:29
24 weeks 12 hours ago
10
points ]
 (1 vote)
Created 2019-10-16 01:26
23 weeks 3 days ago
Gangler
37
points ]
 (4 votes)
Created 2019-10-10 16:26
24 weeks 1 day ago
34
points ]
 (4 votes)
Created 2019-10-08 02:25
24 weeks 4 days ago
5
points ]
 (1 vote)
Created 2019-10-08 13:32
24 weeks 3 days ago
Gangler
42
points ]
 (5 votes)
Created 2019-09-23 23:48
26 weeks 4 days ago
Fatality
39
points ]
 (4 votes)
Created 2019-09-28 02:57
26 weeks 8 hours ago
Fatality
39
points ]
 (5 votes)
Created 2019-08-13 23:33
32 weeks 3 days ago
Who's new
  • Antknee55
  • gmiz
  • impala97
  • Fixxxer
  • Gangler