Skybox Basic Details: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 1: Line 1:
The easiest way to use a skybox in The Dark Mod is to use the prefab ones which come in the resources.
The easiest way to use a skybox in The Dark Mod is to use the prefab ones which come in the resources.


The first thing to do is create a textured box around your level. This can be caulk or texture, the important thing is that it has a texture so that the level is sealed.  
The best way to get good performance out of the Dark Mod is to create corridors that are visportaled off from eachother.  


The most simple thing to do is to make a box around the level and use the hollow tool.
Therefore the outside area of your building should be a series of corridors around the building with the brushes designated skybox stretching from the outside wall or buildings forming the border of your level, to the highest point of the building you want to be visible, so the top of the roof.


[http://img226.imageshack.us/img226/4963/84078566bs0.jpg http://img226.imageshack.us/img226/4963/84078566bs0.th.jpg]
This enables the use of visportals stretching from the skybox to the ground at key corners so that when you are standing on the north side of the map you won't be rendering the south side at the same time.


[http://img59.imageshack.us/img59/6734/74703655hm7.jpg http://img59.imageshack.us/img59/6734/74703655hm7.th.jpg]
The outsides of the brushes which face outside the level have to textured with anything that is solid and a valid texture, people often use caulk, but as long as it's not No_draw you're fine.


Texture the inside facing sides with the textures/textures/smf/portal_sky texture, ensuring you only texture the inside facing sides, selecting them with control shift click.
Texture the inside facing sides with the ''textures/textures/smf/portal_sky'' texture, ensuring you only texture the inside facing sides, selecting them with control shift click.


[http://img120.imageshack.us/img120/3702/77003234sb4.jpg http://img120.imageshack.us/img120/3702/77003234sb4.th.jpg]
Go to the File menu, then “Load prefab” and navigate to the “prefabs” folder in “darkmod” folder and select “tdm_sky_starry1.pfb”.
 
[http://img59.imageshack.us/img59/2491/35449053rg0.jpg http://img59.imageshack.us/img59/2491/35449053rg0.th.jpg]
 
Go to the edit menu, then “Load prefab” and navigate to the “prefabs” folder in “darkmod” folder and select “tdm_sky_starry1.pfb”.
 
[http://img71.imageshack.us/img71/869/48886392io8.jpg http://img71.imageshack.us/img71/869/48886392io8.th.jpg]
 
[http://img59.imageshack.us/img59/8646/71894725lp0.jpg http://img59.imageshack.us/img59/8646/71894725lp0.th.jpg]
 
[http://img226.imageshack.us/img226/41/12625019uj3.jpg http://img226.imageshack.us/img226/41/12625019uj3.th.jpg]


Place this outside the main hollow box of your level. It is caulked on the outside and sealed so it will not leak.
Place this outside the main hollow box of your level. It is caulked on the outside and sealed so it will not leak.
[http://img71.imageshack.us/img71/9610/98009669xk2.jpg http://img71.imageshack.us/img71/9610/98009669xk2.th.jpg]


Finished. When you load your level you will have an attractive night sky with clouds moon and stars.
Finished. When you load your level you will have an attractive night sky with clouds moon and stars.
[http://img71.imageshack.us/img71/841/69658107tm5.jpg http://img71.imageshack.us/img71/841/69658107tm5.th.jpg]


[[Category:Editing]]
[[Category:Editing]]
[[Category:Tutorial]]
[[Category:Tutorial]]

Revision as of 11:06, 19 April 2007

The easiest way to use a skybox in The Dark Mod is to use the prefab ones which come in the resources.

The best way to get good performance out of the Dark Mod is to create corridors that are visportaled off from eachother.

Therefore the outside area of your building should be a series of corridors around the building with the brushes designated skybox stretching from the outside wall or buildings forming the border of your level, to the highest point of the building you want to be visible, so the top of the roof.

This enables the use of visportals stretching from the skybox to the ground at key corners so that when you are standing on the north side of the map you won't be rendering the south side at the same time.

The outsides of the brushes which face outside the level have to textured with anything that is solid and a valid texture, people often use caulk, but as long as it's not No_draw you're fine.

Texture the inside facing sides with the textures/textures/smf/portal_sky texture, ensuring you only texture the inside facing sides, selecting them with control shift click.

Go to the File menu, then “Load prefab” and navigate to the “prefabs” folder in “darkmod” folder and select “tdm_sky_starry1.pfb”.

Place this outside the main hollow box of your level. It is caulked on the outside and sealed so it will not leak.

Finished. When you load your level you will have an attractive night sky with clouds moon and stars.