User Tools

Site Tools


hpl2:tutorials:level_editor:tutorial_3

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:tutorials:level_editor:tutorial_3 [2011/08/31 12:29]
yourcomputer
hpl2:tutorials:level_editor:tutorial_3 [2011/08/31 12:38] (current)
yourcomputer
Line 8: Line 8:
  
  
-\\  The Skybox \\  \\  Perhaps the most important thing in distinguishing an area as being  outdoors is the skybox. Fortunately,​ this is a pretty easy thing to add,  but hard to get completely right.\\ ​ \\  {{http://​img685.imageshack.us/​img685/​7468/​82603570.jpg?​direct&​}}\\ ​ Open Level Settings. Skybox should be the first menu already selected, ​ so no need to go anywhere else. First, click "​Active."​ This will color  the sky whatever the default color is. That doesn'​t look very good,  however, so we need to actually include a giant CubeMap (.dds) texture ​ to serve as the actual skybox. A .dds file is essentially a JPEG (or  whatever other format) that is cut into different sections, that when  folded together, makes a cube.\\ ​ \\  {{http://​img189.imageshack.us/​img189/​6979/​34623632.jpg?​direct&​}}\\ ​ \\  To make a .dds format file, you will need a Photo editing program. Adobe  Photoshop is preferred, but the free "​GIMP"​ can be used as well. For  either program, you will need a special program that can convert normal ​ pictures to .dds files.\\ ​ \\  [[http://​developer.nvidia.com/​nvidia-texture-tools-adobe-photoshop|Photoshop .dds Plugin]] \\  [[http://​code.google.com/​p/​gimp-dds/​|GIMP .dds Plugin]] \\  \\  Advanced modders can now create their own skyboxes by cutting an image  into the appropriate shapes and saving it as a .dds. For those less  experienced,​ you can download a  LOT of Skybox textures at [[http://​www.cgtextures.com/​|http://​www.cgtextures.com]].\\ ​ \\  [[http://​www.cgtextures.com/​textures.php?​t=browse&​q=23740|Here]] is a link to pre-made sky CubeMaps. Pick any sky you would like to see in-game.\\ ​ \\  {{http://​img535.imageshack.us/​img535/​244/​88434815.jpg?​direct&​}}\\ ​ \\  Be sure to select the CubeMap file and not the normal .JPEG . Select the  largest size you can download for highest resolution. Next, open the  CubeMap .jpg you just downloaded in Photoshop or GIMP. Change the image  size so that both Height and Width are multiples of 2. ( 8192×1024 is a good size. Don't worry that the quality shrinks when you enlarge ​ it, it will be shrunk back down in game). Next, save the file as .dds.  Pictured is the Photoshop plugin .dds exporter. ​I personally have never  used GIMP, so consult ​the documentation of that specific ​.dds exporter  ​for more help on this part.+\\  The Skybox \\  \\  Perhaps the most important thing in distinguishing an area as being  outdoors is the skybox. Fortunately,​ this is a pretty easy thing to add,  but hard to get completely right.\\ ​ \\  {{http://​img685.imageshack.us/​img685/​7468/​82603570.jpg?​direct&​}}\\ ​ Open Level Settings. Skybox should be the first menu already selected, ​ so no need to go anywhere else. First, click "​Active."​ This will color  the sky whatever the default color is. That doesn'​t look very good,  however, so we need to actually include a giant CubeMap (.dds) texture ​ to serve as the actual skybox. A .dds file is essentially a JPEG (or  whatever other format) that is cut into different sections, that when  folded together, makes a cube.\\ ​ \\  {{http://​img189.imageshack.us/​img189/​6979/​34623632.jpg?​direct&​}}\\ ​ \\  To make a .dds format file, you will need a Photo editing program. Adobe  Photoshop is preferred, but the free "​GIMP"​ can be used as well. For  either program, you will need a special program that can convert normal ​ pictures to .dds files.\\ ​ \\  [[http://​developer.nvidia.com/​nvidia-texture-tools-adobe-photoshop|Photoshop .dds Plugin]] \\  [[http://​code.google.com/​p/​gimp-dds/​|GIMP .dds Plugin]] \\  \\  Advanced modders can now create their own skyboxes by cutting an image  into the appropriate shapes and saving it as a .dds. For those less  experienced,​ you can download a  LOT of Skybox textures at [[http://​www.cgtextures.com/​|http://​www.cgtextures.com]].\\ ​ \\  [[http://​www.cgtextures.com/​textures.php?​t=browse&​q=23740|Here]] is a link to pre-made sky CubeMaps. Pick any sky you would like to see in-game.\\ ​ \\  {{http://​img535.imageshack.us/​img535/​244/​88434815.jpg?​direct&​}}\\ ​ \\  Be sure to select the CubeMap file and not the normal .JPEG . Select the  largest size you can download for highest resolution. Next, open the  CubeMap .jpg you just downloaded in Photoshop or GIMP. Change the image  size so that both Height and Width are multiples of 2. ( 8192×1024 is a good size. Don't worry that the quality shrinks when you enlarge ​ it, it will be shrunk back down in game). Next, save the file as .dds.  Pictured is the Photoshop plugin .dds exporter. ​For the GIMP you can view this [[http://​www.youtube.com/​watch?​v=9uKBYVEyw1s|video tutorial]] to learn what needs to be done to save to a .dds file compatible with Amnesia. For convenience you can use the [[http://​www.frictionalgames.com/​forum/​thread-10037.html|cubemap layers generator]] script ​for the GIMP to do most of the work for you.
  
  
hpl2/tutorials/level_editor/tutorial_3.1314793783.txt.gz · Last modified: 2011/08/31 12:29 (external edit)