cod2-sdk/docs/lighting/worldspawn.htm

96 lines
3.5 KiB
HTML

<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>World Spawn</title>
</head>
<body>
<h1>World Spawn</h1>
<hr noshade="noshade" size="1">
<p>This is where you set the overall look for your map lighting. </p>
<p>There are two ways to edit worldspawn settings. After opening a map in
radiant, press the ā€œnā€ key. You can access the worldspawn settings and input
values into the <b>key</b> and <b>value</b> boxes. </p>
<p>The other (preferred by me) way is to open the map in a text editor and
change the values that you find at the top of the page. </p>
<p>By default, the lighting settings are empty. You can input them manually or
just copy and paste from another map to get started. </p>
<hr size="1">
<h2>Direct Light</h2>
<p>Direct light is basically anything that is in a direct sunlight. This is
where most of the normal and specualar values can be seen. </p>
<p><b>sunlight</b> </p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ol type="a">
<ol type="a">
<ol type="a">
<li><b>Sundirection # # #</b>: The axis are based on world space not local
to the light. The first number is the north south axis. The second number
is the up down axis. The third is the axis through the light and therefore
usless.
<ul>
<ul>
<ul>
<ul>
<li>0 0 0 --- light comes from the right</li>
</ul>
<ul>
<li>90 0 0 --- light comes from the bottom</li>
</ul>
<ul>
<li>-90 0 0 --- light comes from the top</li>
</ul>
<ul>
<li>0 90 0 --- light comes from the top</li>
</ul>
<ul>
<li>0 180 0 --- light comes from the right</li>
</ul>
</ul>
</ul>
</ul>
</li>
<li><b>sunlight #</b>: The brightness of the sun light. Values over 1 will
be overbright.</li>
<li><b>suncolor # # #</b>: there are 3 values to set for suncolor. Radiant
uses a range from 0-1 instead of 0-255. <br>
you can pick the rgb values you want and then divide that number by 255 to
get the value that fits in the 0-1 range. </li>
</ol>
</ol>
</ol>
<p>&nbsp;</p>
<h2>Indirect Light</h2>
<p>Indirect light is anything that is not in direct sunlight. Bump and spec
values are about 30% intensity. </p>
<p><b>Shadows and Shade</b> </p>
<p>&nbsp;</p>
<ol type="a">
<ol type="a">
<ol type="a">
<li><b>ambient #</b>: This is the amount of ambient light added to the
scene. I usually use ambient to set what I want the darkest dark to be. If
you go too high the map tends to look flat.</li>
<li><b>_color # # #</b>: This is the ambient color value.(Isnt it
obvious?) Use the same method for _color as for the suncolor to get the
ambient color. This value also mixes with the sun color.</li>
<li><b>diffusefraction #</b>: This is the brightness of the indirect light
source. If you use a value of 1, sunlight is not visible.</li>
<li><b>sundiffusecolor # # #</b>: THis is the color of the indirect light
source..</li>
<li><b>bouncefracion #</b>: This is the intensity of the GI calculation.
Higher numbers result in flatter shading where light is present.</li>
</ol>
</ol>
</ol>
<hr noshade="noshade" size="1">
</body>
</html>