]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - docs/manual/Q3Rad_Manual/ch09/pg9_1.htm
error check and bail if permission denied during gamepack install
[xonotic/netradiant.git] / docs / manual / Q3Rad_Manual / ch09 / pg9_1.htm
1 <html>\r
2 <head>\r
3 <title>Q3Radiant Editor Manual: Page 9.1</title>\r
4 <link rel = "stylesheet" type = "text/css" href = "../styles/q3rad.css">\r
5 </head>\r
6 <body>\r
7 <h1 class = "MsoTitle">Q3Radiant Editor Manual</h1>\r
8 <hr>\r
9 <h1><a name = "tools6">Tools 6: Lights &amp; Lighting</a></h1>\r
10 \r
11 Lighting a map is both an art and a science. For <i>Quake III\r
12 Arena,</i> the id designers worked to create instances of dramatic\r
13 lighting, while attempting to maintain a relatively consistent\r
14 intensity of light throughout the maps. Other designers worked to\r
15 create dark realms, full of shadows in which lurking assassins\r
16 could hide.\r
17 \r
18 <p>Whatever style of lighting you strive for, remember one key\r
19 rule: The bots don't use light information. In a pitch-black room,\r
20 they would still see an opponent. Keep that in mind when designing\r
21 your maps.\r
22 \r
23 <p><div class = "subheading">Entity Lights</div>\r
24 \r
25 There are several ways to create light emitting objects.&nbsp;\r
26 The simplest is to place a light entity into your map.&nbsp; If you\r
27 do nothing, it has a default value of 300 and emits white light. If\r
28 you think of the light value as the wattage for an incandescent\r
29 light bulb, you are not far off target. The section on the Light\r
30 entity in the Entities Description Appendix contains specific\r
31 information on using light entities.\r
32 \r
33 <p><div class = "subheading">Texture Lights</div>\r
34 \r
35 Textures can be made to emit light. The amount of light that\r
36 they give off is determined by two factors: the size of the texture\r
37 and the value given for its q3map_surfacelight parameter.\r
38 \r
39 <p>If you only plan on using id textures in your maps, simply use\r
40 the textures surrounded by a white box in the texture window. Many\r
41 of them have their light values as part of their names: Example:\r
42 ceil22a_5k.&nbsp; This would be a small, square light with a light\r
43 value of 5000.&nbsp; There is not a direct correspondence between\r
44 the light value of a texture light and an entity light.\r
45 \r
46 <p>If you want to make your own lights, either with new, custom\r
47 textures, or changing the light and/or color values of the emitted\r
48 light in existing id textures, plan on learning your way around the\r
49 shader files.&nbsp; The Shader Manual explains the light commands.\r
50 Place the new lights in unique directories. Example:\r
51 Mymapname_light\skull_light_2k.&nbsp; Use the q3map_editorimage key\r
52 to make multiple light intensity versions of your new lights.\r
53 \r
54 <p>Generally speaking, very small lights need to have very large\r
55 values to look right (a 32x32 pixel light could easily have a\r
56 surfacelight value of 10,000 or more).&nbsp; As the surface area of\r
57 the light becomes larger, the amount of light needs to be\r
58 substantially reduced for it to look right in the world.&nbsp; A\r
59 word of warning, though. Very large glowing surfaces (other than\r
60 skies) can look odd in the game world, especially if they are made\r
61 from a repeating texture.&nbsp; The light source will appear to be\r
62 generated from the center of the brush with the glowing\r
63 texture.\r
64 \r
65 <p><div class = "subheading">"Sky" Lights</div>\r
66 \r
67 <i>Quake III Arena</i> was designed so that sky textures could\r
68 appear to emit light in a natural way. The q3map_sun parameter\r
69 creates a single light source in the sky. The mapper can control\r
70 the brightness, color, and position in the sky of this light\r
71 source.&nbsp; Furthermore, the designer can add a\r
72 q3map_surfacelight value to the sky, giving it an overall lighting\r
73 value.\r
74 \r
75 <p><div class = "subheading">Ambient Light</div>\r
76 \r
77 Ambient light is a property of the map's worldspawn entity. By\r
78 assigning a number value to the ambient key, the overall lighting\r
79 level of the map is raised. This has the tendency to flatten the\r
80 difference between light and shadow. The color of the light can\r
81 also be modified. This technique is considered a "hack." It does\r
82 not come recommended. You will find instructions that are more\r
83 complete later in this manual under the worldspawn entity heading\r
84 in the Entities Appendix.\r
85 <p align = "center"><a href = "../ch08/pg8_1.htm">Back</a> | <a href = "../index.htm">Home</a> | <a href = "../ch10/pg10_1.htm">Next</a>\r
86 </body>\r
87 </html>