Well after not being able to find sky textures in the texture folder I decided to go hunting for them. This is what I found.
Thanks to Shoot for the work put into this tutorial.
Well after not being able to find sky textures in the texture folder I decided to go hunting for them. This is what I found
(This is all assuming you have extracted a every pk3 file in the main folder into a seperate folder somewhere just to view and tear apart) Sky Shader
- 1: sky.shader in the script folder
- 2: sky tga texture files in the env folder
- 3: Sunfile in the script folder
The sky.shader is in the script folder and in there is all the sky information, seems they left the qer_editorimage for each one out of the texture file. I personally think that this is better because you dont load all the sides of the sky - this caused a lot of confusion in sof2 and I spent a lot of time helping ppl work through this. I will not go into what is in the sky shader here, there is a post about the sky shaders in the sof2 forum somewhere, just do a search.
In the sky shader there are single player and multiplayer skies. Here is a list of the skies that are there: Singleplayer Maps
non-conventional named Skies
--------------------------- Using the sky in the map
You can view the individual tga panels of the skies in the [u]env folder[/u], this will give you an idea of what your are picking, you could go run each map and check them out - you decide.
Once you have choosen the sky you want - go into your map.
Select the brushes you want to be the sky...select them all.....press s for the Surface Inspector tool.
You will see the texture field - type common/caulk
in that field.
Click apply and then OK.
Now you need to select just the faces of the sky brushes that will be seen from inside your map.
1. Press and hold the control and shift keys
and click on the 1st face you want to be sky.
2. Do this for each face - be sure to press both keys for the face - if not you may select the entire brush.
3. once the sky faces are all selected, press S for the surface inspector.
4. In the texture field - type sky/skyofyourchoice
for example: sky/mp_rocket
5. The sky faces should all turn red - you will not see your actual sky texture in the editor - you have to compile for that. Why Caulk?
Well the caulk is a tool that tells the editor to ignore the brush faces or brushes that are textured with caulk. This reduces the amount of triangles that are drawn in the game when you play as well as reduces the number of faces that need to be lit by the compiler - it will speed up your game and your compile time. Caulk is a very powerful thing and I urge you to use it and search the forum here for how to use it.
------------------------------ Sunfile - what is that?
I am hazzarding a guess on the sunfile here but I think that it is a set of settings for what the sun if any will look like and how its light is affects the map. The funny thing is all the sunfiles are not there in the script folder - not sure why - anyway just for sake of information I have included the shader entry and sun file for the mp_dawnville map as examples - I won't go into what each line means at this time, have to figure some of them out myself actually. Shader for mp_dawnville sky
Sunfile for mp_dawnville.sun
skyParms env/hedgerow 512 -
Well thats a start on sky's and how to use them, I am sure this topic will develop more as we go along.