Call of Duty 5: Skybox: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
[[Image:Noobs.png|200px|right]]
== Introduction ==
== Introduction ==
[[Image:Noobs.png|200px|right]]
Every map must be enclosed in a skybox, which is a set of structural brushes which enclose the map separating it from the endless void outside. If you don’t have a skybox, or if it doesn’t completely surround your map you will get leak errors when you try to compile your map.
Every map must be enclosed in a skybox, which is a set of structural brushes which enclose the map separating it from the endless void outside. If you don’t have a skybox, or if it doesn’t completely surround your map you will get leak errors when you try to compile your map.


Line 57: Line 57:
== Available Skybox models ==
== Available Skybox models ==


The following skybox models are included with the tools;
The following skybox models are included with the tools:


[[Image:skybox_ber1.jpg]]  
[[Image:skybox_ber1.jpg]]  


skybox_ber1
skybox_ber1


[[Image:skybox_ber2.jpg]]  
[[Image:skybox_ber2.jpg]]  


skybox_ber2
skybox_ber2


[[Image:skybox_ber3.jpg]]  
[[Image:skybox_ber3.jpg]]  


skybox_ber3
skybox_ber3


[[Image:skybox_fly.jpg]]  
[[Image:skybox_fly.jpg]]  


skybox_fly
skybox_fly


[[Image:skybox_hol1.jpg]]  
[[Image:skybox_hol1.jpg]]  


skybox_hol1
skybox_hol1


[[Image:skybox_hol2.jpg]]  
[[Image:skybox_hol2.jpg]]  


skybox_hol2
skybox_hol2


[[Image:skybox_hol3.jpg]]  
[[Image:skybox_hol3.jpg]]  


skybox_hol3
skybox_hol3


[[Image:skybox_mak1.jpg]]  
[[Image:skybox_mak1.jpg]]  


skybox_mak1
skybox_mak1


[[Image:skybox_mp_court.jpg]]  
[[Image:skybox_mp_court.jpg]]  


skybox_mp_court
skybox_mp_court


[[Image:skybox_mp_knee.jpg]]  
[[Image:skybox_mp_knee.jpg]]  


skybox_mp_knee
skybox_mp_knee


[[Image:skybox_oki1.jpg]]  
[[Image:skybox_oki1.jpg]]  


skybox_oki1
skybox_oki1


[[Image:skybox_oki2.jpg]]  
[[Image:skybox_oki2.jpg]]  


skybox_oki2
skybox_oki2


[[Image:skybox_oki3.jpg]]  
[[Image:skybox_oki3.jpg]]  


skybox_oki3
skybox_oki3


[[Image:skybox_pel1.jpg]]  
[[Image:skybox_pel1.jpg]]  


skybox_pel1
skybox_pel1


[[Image:skybox_pel1b.jpg]]  
[[Image:skybox_pel1b.jpg]]  


skybox_pel1b
skybox_pel1b


[[Image:skybox_prologue.jpg]]  
[[Image:skybox_prologue.jpg]]  


skybox_prologue
skybox_prologue


[[Image:skybox_rhi1.jpg]]  
[[Image:skybox_rhi1.jpg]]  


skybox_rhi1
skybox_rhi1


[[Image:skybox_rhi2.jpg]]  
[[Image:skybox_rhi2.jpg]]  


skybox_rhi2
skybox_rhi2


[[Image:skybox_rhi3.jpg]]  
[[Image:skybox_rhi3.jpg]]  


skybox_rhi3
skybox_rhi3


[[Image:skybox_see1.jpg]]  
[[Image:skybox_see1.jpg]]  


skybox_see1
skybox_see1


[[Image:skybox_see2.jpg]]  
[[Image:skybox_see2.jpg]]  


skybox_see2
skybox_see2


[[Image:skybox_sniper.jpg]]  
[[Image:skybox_sniper.jpg]]  


skybox_sniper
skybox_sniper


[[Image:skybox_test.jpg]]  
[[Image:skybox_test.jpg]]  


skybox_test
skybox_test


[[Image:skybox_zombie.jpg]]  
[[Image:skybox_zombie.jpg]]  


skybox_zombie
skybox_zombie


--[[User:Dethpikabel|Dethpikabel]] 15:36, 21 November 2008 (UTC)
--[[User:Dethpikabel|Dethpikabel]] 15:36, 21 November 2008 (UTC)

Latest revision as of 18:35, 25 July 2009

Introduction

Every map must be enclosed in a skybox, which is a set of structural brushes which enclose the map separating it from the endless void outside. If you don’t have a skybox, or if it doesn’t completely surround your map you will get leak errors when you try to compile your map.


The Skybox

The simplest way to create these brushes is to create a single solid brush that encompasses your map then use the hollow tool to turn it into a box. To do this start by creating a new brush that covers the entire playable area of your map. It’s a good idea to add a gap from the edge of your map - 1000 units from the edge is a reasonable amount. You can see in the image below how my brush looks (the map occupies the 4 blocks in the center)

And from a side view you can see I’ve extended the brush to cover the area roughly 2000 units above the highest point on my map and a little area below.

With your new brush selected click the hollow tool on the toolbar and Radiant will automatically transform your solid brush into a six sided box. Don’t deselect the box yet!

Now we’re going to add a sky texture to our skybox. With all six sides of your box selected go to the Textures -> Usage menu and select Sky and click on one of the resulting Sky textures from the texture window. Make a note of the one you selected.


The Skybox Model

You may notice that the skybox looks blurry – don’t panic! – while we need the skybox to enclose our map CoD:WW uses a 3D model for the actual sky which we’ll add next.

Deselect your skybox (and everything else) by pressing Escape a couple of times then bring up the entity window (default: ‘N’) and you should be looking at the ‘Worldspawn’ entity. We need to add a new key/value pair to identify which sky model we’re going to use. The key to use is skyboxmodel and the value should be the name of the skybox model you want to use.

While the texture we chose earlier for the skybox doesn't appear to have any influence on the sky once we add the model (the texture effectively becomes invisible) it's probably a good idea to keep the two in sync.

Almost done, we just need to add the skybox model to our zone files so it'll be included in our fast file. To do this open 'zone_source/[your_map].csv' and add the line;

xmodel,[your_skybox_model] 

Where [your_skybox_model] corresponds to the skybox model you've selected i.e. skybox_ber1

Example from mp_shrine.csv (look last line):

ignore,code_post_gfx_mp
ignore,localized_code_post_gfx_mp
ignore,common_mp
ignore,localized_common_mp

col_map_mp,maps/mp/mp_shrine.d3dbsp

sound,mp_shrine,mp_shrine,all_mp
material,compass_map_mp_shrine
material,compass_overlay_map_shrine
include,water

xmodel,skybox_oki2

Available Skybox models

The following skybox models are included with the tools:

skybox_ber1


skybox_ber2


skybox_ber3


skybox_fly


skybox_hol1


skybox_hol2


skybox_hol3


skybox_mak1


skybox_mp_court


skybox_mp_knee


skybox_oki1


skybox_oki2


skybox_oki3


skybox_pel1


skybox_pel1b


skybox_prologue


skybox_rhi1


skybox_rhi2


skybox_rhi3


skybox_see1


skybox_see2


skybox_sniper


skybox_test


skybox_zombie


--Dethpikabel 15:36, 21 November 2008 (UTC)