Jump to content

[Tutorial] Make your own skybox for CS:GO


Recommended Posts

Posted (edited)

Header.thumb.jpg.a1bac9c476e8f188242cef1

 

Hello! I've been mapping for a little over a month now... and I've chosen the worst possible engine to start my mapping career :|

I won't go into detail on how to make everything pretty in this guide. That's where you have to experiment on your own.
The purpose of this tutorial is mainly to give you the correct tools and settings to creating a fully functional skybox texture for CS:GO.

Programs used in this tutorial:

 

  • Terragen 3
  • Photoshop (Optional)
  • VTFEdit
  • Notepad++ (Optional)

 

Terragen_Icon.thumb.JPG.06ddb5b67392a89b Terragen

You can download Terragen here:
http://planetside.co.uk/products/download-tg3

Take note that it's not possible to render a 1024x1024 image and have it on max detail if you're using the free version.
But it's possible to render a 512x512 skybox with 60% Detail.

 

Open up Terragen. We will begin with removing the surface. It is not needed for our skybox since you'll not be able to see it in game anyway.
If you include it, it's just gonna make the rendering process take longer.

Click on Objects_Tab.thumb.JPG.9809e2679ecb7b6ea0
Click on "Planet 01" and uncheck "Render surface".

Objects_Tab_2.thumb.JPG.6ef44aadb7c72043

(Save often because Terragen has a tendency to crash sometimes).

 

Click on Cameras_Tab.thumb.JPG.791667761909359e86
Click on "/Render Camera" and rename it to "FT"

  • Set Position: 5000 / 10 / 5000 (It can be good to remember that the number in the middle will represent at what height your camera is set)
  • Set Rotation: 0 / 0 / 0
  • Use Perspective and type in 90 in the horizontal fov

Cameras_Tab_2.thumb.JPG.f16678142e7e7a7a

 

Click on Node_Network.thumb.JPG.afd665cdfa2dd39af

(You can zoom in with your scroll wheel and hold [Alt+Leftclick] to pan in the Node Network).

  • Click your camera named FT so it's highlighted.

Camera_Highlight.thumb.JPG.9a76986a1e065

  • Press [Ctrl+C] on your keyboard.
  • Press [Ctrl+V] on your keyboard.
  • Drag the new camera into your Cameras box.
  • Do this 4 more times, so you have 6 cameras in total.

6_Cameras.thumb.JPG.9e7098229b688c5476b7

 

Click on Cameras_Tab.thumb.JPG.791667761909359e86

  • Click on "FT_1", rename it to "LF" and change the rotation to "0 / 90 / 0"
  • Click on "FT_1_1", rename it to "BK" and change the rotation to "0 / 180 / 0"
  • Click on "FT_1_1_1", rename it to "RT" and change the rotation to "0 / -90 / 0"
  • Click on "FT_1_1_1_1", rename it to "UP" and change the rotation to "90 / -90 / 0"
  • Click on "FT_1_1_1_1_1", rename it to "DN" and change the rotation to "-90 / -90 / 0"

Double check that your cameras are set up like this: (This picture is not taken from Terragen).

Camera_Settings.thumb.JPG.afd053ea1dcb58

 

Click on Renderers_Tab.thumb.JPG.8da3d0a1c53210cd

  • Click on "/Render 01" and rename it to "Full Render"
  • Set Image width to 1024 (512 if you're using the free edition)
  • Set Image height to 1024 (512 if you're using the free edition)
  • Set Detail to 1 (0.6 if you're using the free edition)
  • Set Anti-aliasing to 4 (Don't need much more for atmosphere and clouds, I think it's mostly for terrain and objects)

Full_Render_Settings.thumb.JPG.86fbc3b21

This is very important to avoid any problems later on:

  • Click on GI Settings
  • Set GI cache detail to 0
  • Set GI sample quality to 0
  • Set GI blur radius to 0
  • Turn off GI surface details

GI_Settings.thumb.jpg.b738454cd85fcfd505

 

Click on Node_Network.thumb.JPG.afd665cdfa2dd39af

  • Copy & Paste the "Full Render" node in the "Renderers" box with [Ctrl+C] & [Ctrl+V].

 

Click on Renderers_Tab.thumb.JPG.8da3d0a1c53210cd

  • Rename your new renderer to "Quick Render".
  • Set Image width and height to 512 (Or even smaller).
  • Set Detail to 0.25.
  • Set Anti-aliasing to 0.


Quick_Render_Settings.thumb.JPG.f373dea5

 

Click on Node_Network.thumb.JPG.afd665cdfa2dd39af

  • Connect your camera called "FT" to the "Quick Render" node.

Quick_Render.thumb.JPG.51fab9bf354693478

 

protip.thumb.png.bc1a7e6730ab97785f2b44b

You should now go to "File -> Save As..." and save your project and name it something like: "Skybox Default Settings"
Put it somewhere so you always can open up that one everytime you want to create a new skybox
After this, make sure you do not save it over. Press "File -> Save As..." again and name it to whatever you like.

 

Click on Renderers_Tab.thumb.JPG.8da3d0a1c53210cd
Click on "/Quick Render"
Click on "Render Image" or press [Ctrl+R]

Do this everytime you've changed some settings and want a fast preview of how it looks.

 

Now to the fun part! :dance:

To change your atmosphere, you click on Atmosphere_Tab.thumb.JPG.adf98d2b1d66cc5

  • Click on "/Atmosphere 01"

Here you can change all kinds of different things for your atmosphere...

Keep in mind that raising any quality settings may increase your rendering time immensely and/or turn the skybox non-functional.

Some settings may also increase your rendering times like "Cloud density" and "Edge sharpness". The bigger and more complex your clouds are, more time will be spent computing the render. But just 1 layer of clouds won't make anyone drop the jaw. Good tweaking and layering in moderation is best to aim for.

  • Click "Add Cloud Layer" and choose something that might suit you. By clicking on your new cloud layer you can tweak its settings.
  • Click on Lighting_Tab.thumb.JPG.ae91c22d36e8a5849 to tweak your lighting settings.
  • If you want to add water, click on  Water_Tab.thumb.JPG.c4f0095545853298c0d7

It should all be fairly obvious how things work from now on. You may need to spend some time tweaking the settings and figure out things on your own or watch Terragen tutorials :)

 

When you feel satisfied with your skybox, move on and click Renderers_Tab.thumb.JPG.8da3d0a1c53210cd

  • Click on "/Full Render"

You can see which image will be rendered where it says Camera

Full_Render_Camera.thumb.JPG.b8ed0726932

  • Click on "Render Image" or press [Ctrl+R]. (This can take a while depending on your settings).
  • When it's done, click "Save...", name it "yourskynameft" if it was the FT camera and save it as .BMP
  • To render your next image, type in the name of your next camera in the camera section (see picture above) and then render your next image.

Repeat this process for all the 6 images and name them correctly.

 

Photoshop_Icon.thumb.JPG.3455d8f09c8d187 Photoshop

Now we're gonna use Photoshop to make sure our sky is seamless and looks good.

If the textures you rendered have a size of 1024x1024, make a new document with a width of 4096 pixels and a height of 3072 pixels
or just download this background and drag it into Photoshop:

Skybox_Formation_1024.thumb.jpg.08e83e2f


If the textures you rendered have a size of 512x512, make a new document with a width of 2048 pixels and a height of 1536 pixels
or just download this background and drag it into Photoshop:

Skybox_Formation_512.thumb.jpg.e508a94c8

 

  • Go into "Edit -> Preferences -> Guides, Grid & Slices"
  • Set "Gridline Every" to 256 Pixels
  • Set "Style" to Dots
  • Set "Subdivisions" to 1
  • Click OK
  • Go into "View" and make sure "Snap" is enabled and that "Snap To" have "Grid" included
  • Now drag all of your .BMP's to photoshop:


Drag_and_drop.thumb.gif.a201182c375af04c

  • Take notice of what the name of the layer is:

Photoshop.thumb.jpg.aaf5cc9c1ddd5f0c7bb0

  • Drag it to the correct location and press [Enter].

The next layer will pop up. Repeat this until you've placed them all at their correct locations:

Skybox_Cross.thumb.JPG.3d6a53bbd8dd10513

  • If it looks good with no visible seams or weird lighting, you can safely assume this is gonna work in game.
  • It it doesn't look good, you probably have some setting enabled in Terragen which causes problems.

Since I think mine looks ok, I can now exit out of Photoshop and move on to VTFEdit.

(Didn't spend any effort on this skybox. Just added a cloud and water layer and didn't tweak any settings).

 

VTFEdit_Icon.thumb.JPG.426ec46ee2a3c4a04 VTFEdit

  • Open up VTFEdit and click "Tools" and choose "Convert Folder"
  • Change the "Input Folder" to where you have your .BMP's (You should have your .BMP's in a map somewhere)
  • Change the "Output Folder" to "Steam\steamapps\common\Counter-Strike Global Offensive\csgo\materials\skybox"
  • Click "To VTF" and type in "*.bmp" in the box beside it
  • Make sure "Create VMT Files" are checked
  • Click "Convert"

After a little while you should have all your VTF's and VMT files in your "materials\skybox" folder.

Go to that folder and open up every .VMT file with Notepad++ or Notepad
Delete everything and replace it with:


Where it says xx, you have to type in which side it is. Look at the name of the .VMT you're currently editing.

Notepad.thumb.jpg.1c6f2f3d804161a49dc75c

When you're done, save them all...

Now open up one .VTF file at a time and check these boxes:

  • Clamp S
  • Clamp T
  • No Mipmap
  • No Level Of Detail

VTFEdit.thumb.JPG.d62d32a6ff39cd8b731f63

When you're done, click the save button...

  • Open up Hammer World Editor
  • Go into "Map -> Map Properties"
  • Change Skybox Texture Name to "yourskyname"

Compile your map and you're done :)

If you want other people to see your skybox in game, you have to pack everything correctly by using e.g. VIDE.

 

 

Edited by Psyrius
Posted

This is brilliant, thank you so much for taking the time to do this!

No problem! My first goal was to include a HDR tutorial as well. But I didn't find anything that worked. Spent so many hours trying. So I hope I will lengthen someone elses life with this tutorial, so you won't have to spend endless hours of trying without success like I did first ^^

  • 4 months later...
Posted (edited)

Should've used this tutorial before creating my skybox :D Still managed to make it work though. One thing could make your tutorial even better:

If you render the skybox at max resolution(free version) it's at 900x900px. Enough to upscale the renders to 1024x1024px afterwards for more details. I did this myself and it's looking good ingame imo.

I might try to create more skyboxes after finding this tutorial again :)

 

Edit:  One more thing: If you want to use env_sun in Hammer, disable the sun disk and maybe "Glow in atmosphere" in Terragen.

Edited by El_Exodus
  • 2 weeks later...
  • 6 months later...
Posted
On 2/26/2016 at 6:04 AM, kinggambit said:

Just what I needed! Thanks! Does anyone know if there's a free alternative to Terragen?  I'm testing out TG's trial and it seems great! Definitely will purchase in the future.

I actually don't know completely free alternative, sorry. But I just wanted to let you know that they just published new policy for student subscriptions. They give terragen 4 for free for students so in case you are one, you can get it for free.

http://terragen4.com/terragen-4-now-free-for-educational-use/

  • FMPONE featured this topic
Posted (edited)

I would highly advise using skydomes instead of editing/authoring skyboxes. Not only is it easier overall, but it also allows you to iterate changes to the sky in the event you need to do so. Being able to quickly paint in additional cloud highlights, sun glare, horizon fog, etc is great for rapid iteration. While it is not impossible with a traditional skybox layout/workflow, adding additional atmospheric layers can become tedious very fast, especially as you might find yourself re-exporting multiple textures, versus one.

Edited by MrTwoVideoCards
Posted
1 hour ago, MrTwoVideoCards said:

I would highly advise using skydomes instead of editing/authoring skyboxes. Not only is it easier overall, but it also allows you to iterate changes to the sky in the event you need to do so. Being able to quickly paint in additional cloud highlights, sun glare, horizon fog, etc is great for rapid iteration. While it is not impossible with a traditional skybox layout/workflow, adding additional atmospheric layers can become tedious very fast, especially as you might find yourself re-exporting multiple textures, versus one.

How would you go about doing that? Is it possible to export from a 3D application and still keep the lighting properties?

Posted
8 hours ago, MrTwoVideoCards said:

I would highly advise using skydomes instead of editing/authoring skyboxes. Not only is it easier overall, but it also allows you to iterate changes to the sky in the event you need to do so. Being able to quickly paint in additional cloud highlights, sun glare, horizon fog, etc is great for rapid iteration. While it is not impossible with a traditional skybox layout/workflow, adding additional atmospheric layers can become tedious very fast, especially as you might find yourself re-exporting multiple textures, versus one.

Hmm.. It's always great to hear how to do stuff more efficiently etc, but in this case I bet I'm not the only one who could use tutorial. If you know one, please share link. Thanks. :)

Posted
16 hours ago, Dosentti said:

Hmm.. It's always great to hear how to do stuff more efficiently etc, but in this case I bet I'm not the only one who could use tutorial. If you know one, please share link. Thanks. :)

There's a ton of stuff for authoring skydomes in UE3/UE4. It's more or less the same workflow.

22 hours ago, Bevielis said:

...Here's how it looks in Nuke:....

 

I was pretty surprised to see nuke using a skydome. 

Posted

I am familiar with using skydomes in applications like Maya or Nuke, but seeing as the skydome also provides lighting I am not sure exactly how that would work in this game if it was imported. Is it a BSP object? Guess I should check out the existing maps more.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...