Debian Codegraph @

doc/manual.html

raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <meta name="generator" content="Asciidoctor 2.0.10">
8 <title>DarkRadiant User Guide</title>
9 <style>
10 /* Asciidoctor default stylesheet | MIT License | http://asciidoctor.org */
11 @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";
12 article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}
13 audio,canvas,video{display:inline-block}
14 audio:not([controls]){display:none;height:0}
15 [hidden],template{display:none}
16 script{display:none!important}
17 html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}
18 body{margin:0}
19 a{background:transparent}
20 a:focus{outline:thin dotted}
21 a:active,a:hover{outline:0}
22 h1{font-size:2em;margin:.67em 0}
23 abbr[title]{border-bottom:1px dotted}
24 b,strong{font-weight:bold}
25 dfn{font-style:italic}
26 hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}
27 mark{background:#ff0;color:#000}
28 code,kbd,pre,samp{font-family:monospace;font-size:1em}
29 pre{white-space:pre-wrap}
30 q{quotes:"\201C" "\201D" "\2018" "\2019"}
31 small{font-size:80%}
32 sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
33 sup{top:-.5em}
34 sub{bottom:-.25em}
35 img{border:0}
36 svg:not(:root){overflow:hidden}
37 figure{margin:0}
38 fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}
39 legend{border:0;padding:0}
40 button,input,select,textarea{font-family:inherit;font-size:100%;margin:0}
41 button,input{line-height:normal}
42 button,select{text-transform:none}
43 button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer}
44 button[disabled],html input[disabled]{cursor:default}
45 input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}
46 input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}
47 input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}
48 button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}
49 textarea{overflow:auto;vertical-align:top}
50 table{border-collapse:collapse;border-spacing:0}
51 *,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}
52 html,body{font-size:110%}
53 body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:auto}
54 a:hover{cursor:pointer}
55 img,object,embed{max-width:100%;height:auto}
56 object,embed{height:100%}
57 img{-ms-interpolation-mode:bicubic}
58 .left{float:left!important}
59 .right{float:right!important}
60 .text-left{text-align:left!important}
61 .text-right{text-align:right!important}
62 .text-center{text-align:center!important}
63 .text-justify{text-align:justify!important}
64 .hide{display:none}
65 body{-webkit-font-smoothing:antialiased}
66 img,object,svg{display:inline-block;vertical-align:middle}
67 textarea{height:auto;min-height:50px}
68 select{width:100%}
69 .center{margin-left:auto;margin-right:auto}
70 .spread{width:100%}
71 p.lead,.paragraph.lead>p,#preamble>.sectionbody>.paragraph:first-of-type p{font-size:1.21875em;line-height:1.6}
72 .subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
73 div,dl,dt,dd,ul,ol,li,h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0;direction:ltr}
74 a{color:#2156a5;text-decoration:underline;line-height:inherit}
75 a:hover,a:focus{color:#1d4b8f}
76 a img{border:none}
77 p{font-family:inherit;font-weight:400;font-size:1em;line-height:1.6;margin-bottom:1.25em;text-rendering:optimizeLegibility}
78 p aside{font-size:.875em;line-height:1.35;font-style:italic}
79 h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:bold;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.0125em}
80 h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{font-size:60%;color:#e99b8f;line-height:0}
81 h1{font-size:2.125em}
82 h2{font-size:1.6875em}
83 h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
84 h4,h5{font-size:1.125em}
85 h6{font-size:1em}
86 hr{border:solid #ddddd8;border-width:1px 0 0;clear:both;margin:1.25em 0 1.1875em;height:0}
87 em,i{font-style:italic;line-height:inherit}
88 strong,b{color:#7a2518;font-weight:bold;line-height:inherit}
89 small{font-size:60%;line-height:inherit}
90 code{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;color:rgba(0,0,0,.9)}
91 ul,ol,dl{font-size:1em;line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
92 ul,ol,ul.no-bullet,ol.no-bullet{margin-left:1.5em}
93 ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0;font-size:1em}
94 ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}
95 ul.square{list-style-type:square}
96 ul.circle{list-style-type:circle}
97 ul.disc{list-style-type:disc}
98 ul.no-bullet{list-style:none}
99 ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
100 dl dt{margin-bottom:.3125em;font-weight:bold}
101 dl dd{margin-bottom:1.25em}
102 abbr,acronym{text-transform:uppercase;font-size:90%;color:rgba(0,0,0,.8);border-bottom:1px dotted #ddd;cursor:help}
103 abbr{text-transform:none}
104 blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
105 blockquote cite{display:block;font-size:.9375em;color:rgba(0,0,0,.6)}
106 blockquote cite:before{content:"\2014 \0020"}
107 blockquote cite a,blockquote cite a:visited{color:rgba(0,0,0,.6)}
108 blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
109 @media only screen and (min-width:768px){h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2}
110 h1{font-size:2.75em}
111 h2{font-size:2.3125em}
112 h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
113 h4{font-size:1.4375em}}
114 table{background:#fff;margin-bottom:1.25em;border:solid 1px #dedede}
115 table thead,table tfoot{background:#f7f8f7;font-weight:bold}
116 table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
117 table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
118 table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{display:table-cell;line-height:1.6}
119 body{tab-size:4}
120 h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{line-height:1.2;word-spacing:-.05em}
121 h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
122 .clearfix:before,.clearfix:after,.float-group:before,.float-group:after{content:" ";display:table}
123 .clearfix:after,.float-group:after{clear:both}
124 *:not(pre)>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background-color:#f7f7f8;-webkit-border-radius:4px;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed}
125 pre,pre>code{line-height:1.45;color:rgba(0,0,0,.9);font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-weight:400;text-rendering:optimizeSpeed}
126 .keyseq{color:rgba(51,51,51,.8)}
127 kbd{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background-color:#f7f7f7;border:1px solid #ccc;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em white inset;box-shadow:0 1px 0 rgba(0,0,0,.2),0 0 0 .1em #fff inset;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
128 .keyseq kbd:first-child{margin-left:0}
129 .keyseq kbd:last-child{margin-right:0}
130 .menuseq,.menu{color:rgba(0,0,0,.8)}
131 b.button:before,b.button:after{position:relative;top:-1px;font-weight:400}
132 b.button:before{content:"[";padding:0 3px 0 2px}
133 b.button:after{content:"]";padding:0 2px 0 3px}
134 p a>code:hover{color:rgba(0,0,0,.9)}
135 #header,#content,#footnotes,#footer{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5em;*zoom:1;position:relative;padding-left:.9375em;padding-right:.9375em}
136 #header:before,#header:after,#content:before,#content:after,#footnotes:before,#footnotes:after,#footer:before,#footer:after{content:" ";display:table}
137 #header:after,#content:after,#footnotes:after,#footer:after{clear:both}
138 #content{margin-top:1.25em}
139 #content:before{content:none}
140 #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
141 #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #ddddd8}
142 #header>h1:only-child,body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #ddddd8;padding-bottom:8px}
143 #header .details{border-bottom:1px solid #ddddd8;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:-ms-flexbox;display:-webkit-flex;display:flex;-ms-flex-flow:row wrap;-webkit-flex-flow:row wrap;flex-flow:row wrap}
144 #header .details span:first-child{margin-left:-.125em}
145 #header .details span.email a{color:rgba(0,0,0,.85)}
146 #header .details br{display:none}
147 #header .details br+span:before{content:"\00a0\2013\00a0"}
148 #header .details br+span.author:before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
149 #header .details br+span#revremark:before{content:"\00a0|\00a0"}
150 #header #revnumber{text-transform:capitalize}
151 #header #revnumber:after{content:"\00a0"}
152 #content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #ddddd8;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
153 #toc{border-bottom:1px solid #efefed;padding-bottom:.5em}
154 #toc>ul{margin-left:.125em}
155 #toc ul.sectlevel0>li>a{font-style:italic}
156 #toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
157 #toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
158 #toc li{line-height:1.3334;margin-top:.3334em}
159 #toc a{text-decoration:none}
160 #toc a:active{text-decoration:underline}
161 #toctitle{color:#7a2518;font-size:1.2em}
162 @media only screen and (min-width:768px){#toctitle{font-size:1.375em}
163 body.toc2{padding-left:15em;padding-right:0}
164 #toc.toc2{margin-top:0!important;background-color:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #efefed;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
165 #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
166 #toc.toc2>ul{font-size:.9em;margin-bottom:0}
167 #toc.toc2 ul ul{margin-left:0;padding-left:1em}
168 #toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
169 body.toc2.toc-right{padding-left:0;padding-right:15em}
170 body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #efefed;left:auto;right:0}}
171 @media only screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
172 #toc.toc2{width:20em}
173 #toc.toc2 #toctitle{font-size:1.375em}
174 #toc.toc2>ul{font-size:.95em}
175 #toc.toc2 ul ul{padding-left:1.25em}
176 body.toc2.toc-right{padding-left:0;padding-right:20em}}
177 #content #toc{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
178 #content #toc>:first-child{margin-top:0}
179 #content #toc>:last-child{margin-bottom:0}
180 #footer{max-width:100%;background-color:rgba(0,0,0,.8);padding:1.25em}
181 #footer-text{color:rgba(255,255,255,.8);line-height:1.44}
182 .sect1{padding-bottom:.625em}
183 @media only screen and (min-width:768px){.sect1{padding-bottom:1.25em}}
184 .sect1+.sect1{border-top:1px solid #efefed}
185 #content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:left;font-weight:400}
186 #content h1>a.anchor:before,h2>a.anchor:before,h3>a.anchor:before,#toctitle>a.anchor:before,.sidebarblock>.content>.title>a.anchor:before,h4>a.anchor:before,h5>a.anchor:before,h6>a.anchor:before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
187 #content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
188 #content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
189 #content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
190 .audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
191 .admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
192 table.tableblock>caption.title{white-space:nowrap;overflow:visible;max-width:0}
193 .paragraph.lead>p,#preamble>.sectionbody>.paragraph:first-of-type p{color:rgba(0,0,0,.85)}
194 table.tableblock #preamble>.sectionbody>.paragraph:first-of-type p{font-size:inherit}
195 .admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
196 .admonitionblock>table td.icon{text-align:center;width:80px}
197 .admonitionblock>table td.icon img{max-width:none}
198 .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
199 .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #ddddd8;color:rgba(0,0,0,.6)}
200 .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
201 .exampleblock>.content{border-style:solid;border-width:1px;border-color:#e6e6e6;margin-bottom:1.25em;padding:1.25em;background:#fff;-webkit-border-radius:4px;border-radius:4px}
202 .exampleblock>.content>:first-child{margin-top:0}
203 .exampleblock>.content>:last-child{margin-bottom:0}
204 .sidebarblock{border-style:solid;border-width:1px;border-color:#e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;-webkit-border-radius:4px;border-radius:4px}
205 .sidebarblock>:first-child{margin-top:0}
206 .sidebarblock>:last-child{margin-bottom:0}
207 .sidebarblock>.content>.title{color:#7a2518;margin-top:0;margin-bottom:1em;text-align:left;font-size:1.1em;font-weight:bold;}
208 .exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
209 .literalblock pre,.listingblock pre:not(.highlight),.listingblock pre[class="highlight"],.listingblock pre[class^="highlight "],.listingblock pre.CodeRay,.listingblock pre.prettyprint{background:#f7f7f8}
210 .sidebarblock .literalblock pre,.sidebarblock .listingblock pre:not(.highlight),.sidebarblock .listingblock pre[class="highlight"],.sidebarblock .listingblock pre[class^="highlight "],.sidebarblock .listingblock pre.CodeRay,.sidebarblock .listingblock pre.prettyprint{background:#f2f1f1}
211 .literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{-webkit-border-radius:4px;border-radius:4px;word-wrap:break-word;padding:1em;font-size:.8125em}
212 .literalblock pre.nowrap,.literalblock pre[class].nowrap,.listingblock pre.nowrap,.listingblock pre[class].nowrap{overflow-x:auto;white-space:pre;word-wrap:normal}
213 @media only screen and (min-width:768px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:.90625em}}
214 @media only screen and (min-width:1280px){.literalblock pre,.literalblock pre[class],.listingblock pre,.listingblock pre[class]{font-size:1em}}
215 .literalblock.output pre{color:#f7f7f8;background-color:rgba(0,0,0,.9)}
216 .listingblock pre.highlightjs{padding:0}
217 .listingblock pre.highlightjs>code{padding:1em;-webkit-border-radius:4px;border-radius:4px}
218 .listingblock pre.prettyprint{border-width:0}
219 .listingblock>.content{position:relative}
220 .listingblock code[data-lang]:before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:#999}
221 .listingblock:hover code[data-lang]:before{display:block}
222 .listingblock.terminal pre .command:before{content:attr(data-prompt);padding-right:.5em;color:#999}
223 .listingblock.terminal pre .command:not([data-prompt]):before{content:"$"}
224 table.pyhltable{border-collapse:separate;border:0;margin-bottom:0;background:none}
225 table.pyhltable td{vertical-align:top;padding-top:0;padding-bottom:0;line-height:1.45}
226 table.pyhltable td.code{padding-left:.75em;padding-right:0}
227 pre.pygments .lineno,table.pyhltable td:not(.code){color:#999;padding-left:0;padding-right:.5em;border-right:1px solid #ddddd8}
228 pre.pygments .lineno{display:inline-block;margin-right:.25em}
229 table.pyhltable .linenodiv{background:none!important;padding-right:0!important}
230 .quoteblock{margin:0 1em 1.25em 1.5em;display:table}
231 .quoteblock>.title{margin-left:-1.5em;margin-bottom:.75em}
232 .quoteblock blockquote,.quoteblock blockquote p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
233 .quoteblock blockquote{margin:0;padding:0;border:0}
234 .quoteblock blockquote:before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
235 .quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
236 .quoteblock .attribution{margin-top:.5em;margin-right:.5ex;text-align:right}
237 .quoteblock .quoteblock{margin-left:0;margin-right:0;padding:.5em 0;border-left:3px solid rgba(0,0,0,.6)}
238 .quoteblock .quoteblock blockquote{padding:0 0 0 .75em}
239 .quoteblock .quoteblock blockquote:before{display:none}
240 .verseblock{margin:0 1em 1.25em 1em}
241 .verseblock pre{font-family:"Open Sans","DejaVu Sans",sans;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
242 .verseblock pre strong{font-weight:400}
243 .verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
244 .quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
245 .quoteblock .attribution br,.verseblock .attribution br{display:none}
246 .quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
247 .quoteblock.abstract{margin:0 0 1.25em 0;display:block}
248 .quoteblock.abstract blockquote,.quoteblock.abstract blockquote p{text-align:left;word-spacing:0}
249 .quoteblock.abstract blockquote:before,.quoteblock.abstract blockquote p:first-of-type:before{display:none}
250 table.tableblock{max-width:100%;border-collapse:separate}
251 table.tableblock td>.paragraph:last-child p>p:last-child,table.tableblock th>p:last-child,table.tableblock td>p:last-child{margin-bottom:0}
252 table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
253 table.grid-all th.tableblock,table.grid-all td.tableblock{border-width:0 1px 1px 0}
254 table.grid-all tfoot>tr>th.tableblock,table.grid-all tfoot>tr>td.tableblock{border-width:1px 1px 0 0}
255 table.grid-cols th.tableblock,table.grid-cols td.tableblock{border-width:0 1px 0 0}
256 table.grid-all *>tr>.tableblock:last-child,table.grid-cols *>tr>.tableblock:last-child{border-right-width:0}
257 table.grid-rows th.tableblock,table.grid-rows td.tableblock{border-width:0 0 1px 0}
258 table.grid-all tbody>tr:last-child>th.tableblock,table.grid-all tbody>tr:last-child>td.tableblock,table.grid-all thead:last-child>tr>th.tableblock,table.grid-rows tbody>tr:last-child>th.tableblock,table.grid-rows tbody>tr:last-child>td.tableblock,table.grid-rows thead:last-child>tr>th.tableblock{border-bottom-width:0}
259 table.grid-rows tfoot>tr>th.tableblock,table.grid-rows tfoot>tr>td.tableblock{border-width:1px 0 0 0}
260 table.frame-all{border-width:1px}
261 table.frame-sides{border-width:0 1px}
262 table.frame-topbot{border-width:1px 0}
263 th.halign-left,td.halign-left{text-align:left}
264 th.halign-right,td.halign-right{text-align:right}
265 th.halign-center,td.halign-center{text-align:center}
266 th.valign-top,td.valign-top{vertical-align:top}
267 th.valign-bottom,td.valign-bottom{vertical-align:bottom}
268 th.valign-middle,td.valign-middle{vertical-align:middle}
269 table thead th,table tfoot th{font-weight:bold}
270 tbody tr th{display:table-cell;line-height:1.6;background:#f7f8f7}
271 tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:#7a2518;font-weight:bold}
272 p.tableblock>code:only-child{background:none;padding:0}
273 p.tableblock{font-size:1em}
274 td>div.verse{white-space:pre}
275 ol{margin-left:1.75em}
276 ul li ol{margin-left:1.5em}
277 dl dd{margin-left:1.125em}
278 dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
279 ol>li p,ul>li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
280 ul.unstyled,ol.unnumbered,ul.checklist,ul.none{list-style-type:none}
281 ul.unstyled,ol.unnumbered,ul.checklist{margin-left:.625em}
282 ul.checklist li>p:first-child>.fa-square-o:first-child,ul.checklist li>p:first-child>.fa-check-square-o:first-child{width:1em;font-size:.85em}
283 ul.checklist li>p:first-child>input[type="checkbox"]:first-child{width:1em;position:relative;top:1px}
284 ul.inline{margin:0 auto .625em auto;margin-left:-1.375em;margin-right:0;padding:0;list-style:none;overflow:hidden}
285 ul.inline>li{list-style:none;float:left;margin-left:1.375em;display:block}
286 ul.inline>li>*{display:block}
287 .unstyled dl dt{font-weight:400;font-style:normal}
288 ol.arabic{list-style-type:decimal}
289 ol.decimal{list-style-type:decimal-leading-zero}
290 ol.loweralpha{list-style-type:lower-alpha}
291 ol.upperalpha{list-style-type:upper-alpha}
292 ol.lowerroman{list-style-type:lower-roman}
293 ol.upperroman{list-style-type:upper-roman}
294 ol.lowergreek{list-style-type:lower-greek}
295 .hdlist>table,.colist>table{border:0;background:none}
296 .hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
297 td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
298 td.hdlist1{font-weight:bold;padding-bottom:1.25em}
299 .literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
300 .colist>table tr>td:first-of-type{padding:0 .75em;line-height:1}
301 .colist>table tr>td:last-of-type{padding:.25em 0}
302 .thumb,.th{line-height:0;display:inline-block;border:solid 4px #fff;-webkit-box-shadow:0 0 0 1px #ddd;box-shadow:0 0 0 1px #ddd}
303 .imageblock.left,.imageblock[style*="float: left"]{margin:.25em .625em 1.25em 0}
304 .imageblock.right,.imageblock[style*="float: right"]{margin:.25em 0 1.25em .625em}
305
306 .imageblock>.title
307 {
308 font-family:"Open Sans",sans-serif;
309 margin-bottom:0;
310 text-align:center;
311 }
312
313 .imageblock.thumb,.imageblock.th{border-width:6px}
314 .imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
315 .image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
316 .image.left{margin-right:.625em}
317 .image.right{margin-left:.625em}
318 a.image{text-decoration:none;display:inline-block}
319 a.image object{pointer-events:none}
320 sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
321 sup.footnote a,sup.footnoteref a{text-decoration:none}
322 sup.footnote a:active,sup.footnoteref a:active{text-decoration:underline}
323 #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
324 #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em 0;border-width:1px 0 0 0}
325 #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;text-indent:-1.05em;margin-bottom:.2em}
326 #footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none}
327 #footnotes .footnote:last-of-type{margin-bottom:0}
328 #content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
329 .gist .file-data>table{border:0;background:#fff;width:100%;margin-bottom:0}
330 .gist .file-data>table td.line-data{width:99%}
331 div.unbreakable{page-break-inside:avoid}
332 .big{font-size:larger}
333 .small{font-size:smaller}
334 .underline{text-decoration:underline}
335 .overline{text-decoration:overline}
336 .line-through{text-decoration:line-through}
337 .aqua{color:#00bfbf}
338 .aqua-background{background-color:#00fafa}
339 .black{color:#000}
340 .black-background{background-color:#000}
341 .blue{color:#0000bf}
342 .blue-background{background-color:#0000fa}
343 .fuchsia{color:#bf00bf}
344 .fuchsia-background{background-color:#fa00fa}
345 .gray{color:#606060}
346 .gray-background{background-color:#7d7d7d}
347 .green{color:#006000}
348 .green-background{background-color:#007d00}
349 .lime{color:#00bf00}
350 .lime-background{background-color:#00fa00}
351 .maroon{color:#600000}
352 .maroon-background{background-color:#7d0000}
353 .navy{color:#000060}
354 .navy-background{background-color:#00007d}
355 .olive{color:#606000}
356 .olive-background{background-color:#7d7d00}
357 .purple{color:#600060}
358 .purple-background{background-color:#7d007d}
359 .red{color:#bf0000}
360 .red-background{background-color:#fa0000}
361 .silver{color:#909090}
362 .silver-background{background-color:#bcbcbc}
363 .teal{color:#006060}
364 .teal-background{background-color:#007d7d}
365 .white{color:#bfbfbf}
366 .white-background{background-color:#fafafa}
367 .yellow{color:#bfbf00}
368 .yellow-background{background-color:#fafa00}
369 span.icon>.fa{cursor:default}
370 .admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
371 .admonitionblock td.icon .icon-note:before{content:"\f05a";color:#19407c}
372 .admonitionblock td.icon .icon-tip:before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
373 .admonitionblock td.icon .icon-warning:before{content:"\f071";color:#bf6900}
374 .admonitionblock td.icon .icon-caution:before{content:"\f06d";color:#bf3400}
375 .admonitionblock td.icon .icon-important:before{content:"\f06a";color:#bf0000}
376 .conum[data-value]{display:inline-block;color:#fff!important;background-color:rgba(0,0,0,.8);-webkit-border-radius:100px;border-radius:100px;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
377 .conum[data-value] *{color:#fff!important}
378 .conum[data-value]+b{display:none}
379 .conum[data-value]:after{content:attr(data-value)}
380 pre .conum[data-value]{position:relative;top:-.125em}
381 b.conum *{color:inherit!important}
382 .conum:not([data-value]):empty{display:none}
383 dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
384 h1,h2,p,td.content,span.alt{letter-spacing:-.01em}
385 p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
386 p{margin-bottom:1.25rem}
387 .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
388 .exampleblock>.content{background-color:#fffef7;border-color:#e0e0dc;-webkit-box-shadow:0 1px 4px #e0e0dc;box-shadow:0 1px 4px #e0e0dc}
389 .print-only{display:none!important}
390 @media print{@page{margin:1.25cm .75cm}
391 *{-webkit-box-shadow:none!important;box-shadow:none!important;text-shadow:none!important}
392 a{color:inherit!important;text-decoration:underline!important}
393 a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
394 a[href^="http:"]:not(.bare):after,a[href^="https:"]:not(.bare):after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
395 abbr[title]:after{content:" (" attr(title) ")"}
396 pre,blockquote,tr,img,object,svg{page-break-inside:avoid}
397 thead{display:table-header-group}
398 svg{max-width:100%}
399 p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
400 h2,h3,#toctitle,.sidebarblock>.content>.title{page-break-after:avoid}
401 #toc,.sidebarblock,.exampleblock>.content{background:none!important}
402 #toc{border-bottom:1px solid #ddddd8!important;padding-bottom:0!important}
403 .sect1{padding-bottom:0!important}
404 .sect1+.sect1{border:0!important}
405 #header>h1:first-child{margin-top:1.25rem}
406 body.book #header{text-align:center}
407 body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em 0}
408 body.book #header .details{border:0!important;display:block;padding:0!important}
409 body.book #header .details span:first-child{margin-left:0!important}
410 body.book #header .details br{display:block}
411 body.book #header .details br+span:before{content:none!important}
412 body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
413 body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-break-before:always}
414 .listingblock code[data-lang]:before{display:block}
415 #footer{background:none!important;padding:0 .9375em}
416 #footer-text{color:rgba(0,0,0,.6)!important;font-size:.9em}
417 .hide-on-print{display:none!important}
418 .print-only{display:block!important}
419 .hide-for-print{display:none!important}
420 .show-for-print{display:inherit!important}}
421
422 </style>
423 </head>
424 <body class="article toc2 toc-left">
425 <div id="header">
426 <h1>DarkRadiant User Guide</h1>
427 <div id="toc" class="toc2">
428 <div id="toctitle">Table of Contents</div>
429 <ul class="sectlevel1">
430 <li><a href="#_introduction">Introduction</a>
431 <ul class="sectlevel2">
432 <li><a href="#_editing_workflow">Editing workflow</a></li>
433 <li><a href="#_whats_in_a_map">What&#8217;s in a MAP?</a></li>
434 </ul>
435 </li>
436 <li><a href="#_initial_configuration">Initial configuration</a>
437 <ul class="sectlevel2">
438 <li><a href="#GameSetup">Choosing a game type</a></li>
439 <li><a href="#_interface_layout">Interface layout</a></li>
440 <li><a href="#_colour_schemes">Colour schemes</a></li>
441 </ul>
442 </li>
443 <li><a href="#_basic_editing">Basic editing</a>
444 <ul class="sectlevel2">
445 <li><a href="#_navigating_the_2d_view">Navigating the 2D view</a></li>
446 <li><a href="#_adjusting_the_grid">Adjusting the grid</a></li>
447 <li><a href="#Using3DCameraView">Using the 3D camera view</a></li>
448 <li><a href="#_manipulating_objects">Manipulating objects</a>
449 <ul class="sectlevel3">
450 <li><a href="#_flipping_and_rotating">Flipping and rotating</a></li>
451 <li><a href="#ManipulatorModes">Manipulator modes</a></li>
452 </ul>
453 </li>
454 <li><a href="#_working_with_brushes">Working with brushes</a>
455 <ul class="sectlevel3">
456 <li><a href="#CreatingABrush">Creating a brush</a></li>
457 <li><a href="#_more_complex_brush_shapes">More complex brush shapes</a></li>
458 <li><a href="#_creating_a_room">Creating a room</a></li>
459 <li><a href="#SplittingBrushes">Splitting brushes</a></li>
460 <li><a href="#_reshaping_brush_edges">Reshaping brush edges</a></li>
461 <li><a href="#BrushBasedSelection">Brush-based selection</a></li>
462 </ul>
463 </li>
464 <li><a href="#_working_with_patches">Working with patches</a>
465 <ul class="sectlevel3">
466 <li><a href="#_creating_a_simple_patch">Creating a simple patch</a></li>
467 <li><a href="#_manipulating_control_points">Manipulating control points</a></li>
468 <li><a href="#_more_complex_patch_shapes">More complex patch shapes</a></li>
469 <li><a href="#_controlling_patch_subdivision">Controlling patch subdivision</a></li>
470 </ul>
471 </li>
472 <li><a href="#_applying_textures">Applying textures</a>
473 <ul class="sectlevel3">
474 <li><a href="#MediaTab">The Media tab</a></li>
475 <li><a href="#TexturesTab">The Textures tab</a></li>
476 <li><a href="#SurfaceInspector">Using the Surface Inspector</a></li>
477 <li><a href="#_using_the_shader_clipboard">Using the shader clipboard</a></li>
478 </ul>
479 </li>
480 <li><a href="#_working_with_entities">Working with entities</a>
481 <ul class="sectlevel3">
482 <li><a href="#CreatingLights">Creating lights</a></li>
483 <li><a href="#CreatingModels">Creating models</a></li>
484 <li><a href="#_creating_a_player_start_marker">Creating a player start marker</a></li>
485 <li><a href="#_creating_other_entity_types">Creating other entity types</a></li>
486 <li><a href="#EntityInspector">Editing entity properties</a></li>
487 </ul>
488 </li>
489 <li><a href="#_reparenting_primitives">Reparenting primitives</a>
490 <ul class="sectlevel3">
491 <li><a href="#_converting_primitives_into_func_static">Converting primitives into func_static</a></li>
492 <li><a href="#_selecting_individual_child_primitives">Selecting individual child primitives</a></li>
493 <li><a href="#_adding_or_removing_primitives">Adding or removing primitives</a></li>
494 </ul>
495 </li>
496 <li><a href="#_compiling_a_map">Compiling a map</a>
497 <ul class="sectlevel3">
498 <li><a href="#_preventing_leaks">Preventing leaks</a></li>
499 <li><a href="#PointFile">Locating leaks with a pointfile</a></li>
500 </ul>
501 </li>
502 </ul>
503 </li>
504 <li><a href="#_organising_a_map">Organising a map</a>
505 <ul class="sectlevel2">
506 <li><a href="#Group">Grouping objects</a></li>
507 <li><a href="#WorkingWithPrefabs">Working with prefabs</a>
508 <ul class="sectlevel3">
509 <li><a href="#_exporting_to_a_prefab">Exporting to a prefab</a></li>
510 <li><a href="#ImportPrefab">Importing a prefab</a></li>
511 </ul>
512 </li>
513 <li><a href="#_exporting_models">Exporting models</a></li>
514 <li><a href="#_using_layers">Using layers</a>
515 <ul class="sectlevel3">
516 <li><a href="#_the_layers_window">The Layers window</a></li>
517 <li><a href="#_moving_objects_into_layers">Moving objects into layers</a></li>
518 </ul>
519 </li>
520 <li><a href="#_filtering_map_elements">Filtering map elements</a>
521 <ul class="sectlevel3">
522 <li><a href="#_built_in_filters">Built-in filters</a></li>
523 <li><a href="#_customising_filters">Customising filters</a></li>
524 </ul>
525 </li>
526 <li><a href="#_the_entity_list">The entity list</a></li>
527 </ul>
528 </li>
529 <li><a href="#_dark_mod_features">Dark Mod features</a>
530 <ul class="sectlevel2">
531 <li><a href="#_the_difficulty_editor">The Difficulty editor</a></li>
532 <li><a href="#_game_connection">Game Connection</a>
533 <ul class="sectlevel3">
534 <li><a href="#_activating_the_connection">Activating the connection</a></li>
535 <li><a href="#_synchronising_camera_position">Synchronising camera position</a></li>
536 </ul>
537 </li>
538 </ul>
539 </li>
540 <li><a href="#_command_reference">Command reference</a>
541 <ul class="sectlevel2">
542 <li><a href="#_file_menu">File menu</a></li>
543 <li><a href="#_edit_menu">Edit menu</a></li>
544 </ul>
545 </li>
546 <li><a href="#_configuring_darkradiant">Configuring DarkRadiant</a>
547 <ul class="sectlevel2">
548 <li><a href="#_the_preferences_dialog">The Preferences dialog</a>
549 <ul class="sectlevel3">
550 <li><a href="#_camera_settings">Camera settings</a></li>
551 <li><a href="#_orthoview_settings">Orthoview settings</a></li>
552 <li><a href="#_multi_monitor_settings">Multi Monitor settings</a></li>
553 <li><a href="#_autosave_settings">Autosave settings</a></li>
554 <li><a href="#_clipper_settings">Clipper settings</a></li>
555 <li><a href="#_grid_settings">Grid settings</a></li>
556 <li><a href="#_selection_settings">Selection settings</a></li>
557 <li><a href="#_undo_settings">Undo settings</a></li>
558 <li><a href="#_primitives_settings">Primitives settings</a></li>
559 <li><a href="#_texture_browser_settings">Texture Browser settings</a></li>
560 <li><a href="#_map_files_settings">Map files settings</a></li>
561 </ul>
562 </li>
563 </ul>
564 </li>
565 <li><a href="#_features_for_game_distributors">Features for game distributors</a>
566 <ul class="sectlevel2">
567 <li><a href="#_controlling_asset_visibility">Controlling asset visibility</a>
568 <ul class="sectlevel3">
569 <li><a href="#_creating_an_assets_lst_file">Creating an assets.lst file</a></li>
570 </ul>
571 </li>
572 </ul>
573 </li>
574 </ul>
575 </div>
576 </div>
577 <div id="content">
578 <div class="sect1">
579 <h2 id="_introduction">Introduction</h2>
580 <div class="sectionbody">
581 <div class="paragraph">
582 <p>DarkRadiant is a level editor for Doom 3 and The Dark Mod, developed by The Dark
583 Mod team. It may also be used for editing levels for similar <strong>id Software</strong> games
584 such as Quake 4.</p>
585 </div>
586 <div class="paragraph">
587 <p>This User Guide describes the features and functionality of DarkRadiant, however
588 it is not intended as a guide to mapping techniques. Level design is a complex
589 topic, and is covered by various other learning resources, some of which are
590 listed below.</p>
591 </div>
592 <div class="dlist">
593 <dl>
594 <dt class="hdlist1"><a href="http://wiki.thedarkmod.com/index.php?title=Main_Page">The Dark Mod Wiki</a></dt>
595 <dd>
596 <p>The
597 starting point for most Dark Mod documentation and tutorials, including
598 gameplay, configuration and editing.</p>
599 </dd>
600 <dt class="hdlist1"><a href="https://modwiki.xnet.fi">ModWiki</a></dt>
601 <dd>
602 <p>Online wiki covering editing topics for
603 vanilla Doom 3 and similar engines.</p>
604 </dd>
605 <dt class="hdlist1"><a href="http://forums.thedarkmod.com">The Dark Mod forums</a></dt>
606 <dd>
607 <p>Online community for
608 discussion of the Dark Mod, including various ad-hoc mapping tutorial threads
609 posted by individual users.</p>
610 </dd>
611 </dl>
612 </div>
613 <div class="sect2">
614 <h3 id="_editing_workflow">Editing workflow</h3>
615 <div class="imageblock text-center">
616 <div class="content">
617 <img src="img/DarkRadiantWorkflow.png" alt="DarkRadiantWorkflow">
618 </div>
619 </div>
620 <div class="paragraph">
621 <p>The level editing process starts off with basic assets: models, textures,
622 sounds, entity definitions, skins, animations and so on. Many of these assets
623 will be packaged with a particular game installation, but a level designer may
624 also choose to create custom assets for a specific mission. These assets are
625 installed into a directory tree which is accessible both by DarkRadiant (for
626 editing) and the game engine itself (for playing the mission).</p>
627 </div>
628 <div class="paragraph">
629 <p>Once assets have been arranged in DarkRadiant according to the wishes of the
630 level designer, a <code>.map</code> file is saved to disk. This is a text file in a format
631 understood by the game engine, and includes both level geometry and references
632 to the assets used in the map. Since the <code>.map</code> file is simply text, and does
633 not actually embed the binary asset data, it tends to be fairly small.</p>
634 </div>
635 <div class="paragraph">
636 <p>The game engine includes functionality to <em>compile</em> the <code>.map</code> file into a
637 <code>.proc</code> file containing low-level vertex geometry derived from the brushes and
638 patches within the <code>.map</code> file. The game engine can then render the mission in
639 realtime, making use of the same assets that were accessed by DarkRadiant during
640 editing.</p>
641 </div>
642 <div class="paragraph">
643 <p>DarkRadiant also maintains its own separate file containing various editing
644 information, such as object layers used within a map. This <code>.darkradiant</code> file
645 is never used by the game engine, and is non-critical&#8201;&#8212;&#8201;a <code>.map</code> file with no
646 accompanying <code>.darkradiant</code> file can still be edited with DarkRadiant, although
647 certain DarkRadiant-specific state may be lost.</p>
648 </div>
649 </div>
650 <div class="sect2">
651 <h3 id="_whats_in_a_map">What&#8217;s in a MAP?</h3>
652 <div class="paragraph">
653 <p>There are three main types of object contained within a <code>.map</code> file: entities,
654 brushes and patches.</p>
655 </div>
656 <div class="paragraph">
657 <p><strong>Entities</strong> are the top-level objects in a map&#8201;&#8212;&#8201;essentially, a map file is just a
658 list of entities. Every entity has an <strong>entity class</strong> which determines the type
659 of entity it is: static mesh, AI, sound emitter, particle emitter, light etc.
660 Entities also store a list of string key/value pairs, known as <strong>spawnargs</strong> or
661 <strong>properties</strong>. Some entities also contain brushes and patches as children.</p>
662 </div>
663 <div class="paragraph">
664 <p><strong>Brushes</strong> are convex solids used to define basic map geometry: walls, floors,
665 ceilings, steps and other medium to large items. Brushes are often rectangular
666 in shape, although a brush can actually have any number of faces provided that
667 it is convex (it is impossible to have a brush in an L or a U shape, for
668 example). Brushes are not smooth-shaded by the game engine, which generally
669 makes them unsuitable for representing curved surfaces.</p>
670 </div>
671 <div class="paragraph">
672 <p><strong>Patches</strong> are smooth one-sided surfaces used to represent curved objects such as
673 vaulted ceilings, pillars or cave interiors. A patch is defined by a number of
674 Bezier control points, and offers control over the level of detail used when
675 subdividing the patch into triangles for rendering: more triangles will produce
676 a smoother surface but may lower rendering performance.</p>
677 </div>
678 <div class="paragraph">
679 <p>Brushes and patches together are also referred to as <strong>primitives</strong> (since they
680 define the basic geometry of the map), and are typically described as such in
681 situations where the distinction between brush and patch is not important.</p>
682 </div>
683 <div class="paragraph">
684 <p>The entities, brushes and patches in a map are arranged in a hierarchy: not
685 every entity has children, but every primitive must have an entity as a parent.
686 Each map therefore starts with a single default entity called the <strong>worldspawn</strong>,
687 which acts as the parent for new brushes and patches created in DarkRadiant.</p>
688 </div>
689 </div>
690 </div>
691 </div>
692 <div class="sect1">
693 <h2 id="_initial_configuration">Initial configuration</h2>
694 <div class="sectionbody">
695 <div class="sect2">
696 <h3 id="GameSetup">Choosing a game type</h3>
697 <div class="paragraph">
698 <p>When running DarkRadiant for the first time, the <strong>Game Setup</strong> dialog will be
699 shown. This is where you configure the path to the game installation from which
700 DarkRadiant will load assets, such as textures, models and entity definitions.</p>
701 </div>
702 <div class="imageblock text-center">
703 <div class="content">
704 <img src="img/GameSetupDialog.png" alt="GameSetupDialog">
705 </div>
706 </div>
707 <div class="paragraph">
708 <p>The <strong>Game Setup</strong> dialog contains the following options:</p>
709 </div>
710 <div class="dlist">
711 <dl>
712 <dt class="hdlist1"><strong>Game Type</strong></dt>
713 <dd>
714 <p>DarkRadiant ships with support for several different game engines,
715 each of which is contained within a <code>.game</code> file. For editing Dark Mod
716 missions, the default choice of <code>The Dark Mod 2.0 (Standalone)</code> is the one to
717 use, but it is also possible to edit stock Doom 3 or Quake 4 missions.</p>
718 </dd>
719 <dt class="hdlist1"><strong>DarkMod Path</strong> / <strong>Engine Path</strong></dt>
720 <dd>
721 <p>This is the path to the game installation on
722 the system. The label text will change depending on whether the selected game
723 is <code>The Dark Mod</code> or another engine.</p>
724 </dd>
725 <dt class="hdlist1"><strong>Mission</strong></dt>
726 <dd>
727 <p>Optional path to a subdirectory containing assets specific to a
728 particular mission which is being worked on. For game types other than <code>The
729 Dark Mod</code>, this will be displayed as <strong>Mod (fs_game)</strong>, and should be set to the
730 path of a subdirectory containing a particular game mod, if one is being used.</p>
731 </dd>
732 <dt class="hdlist1"><strong>Mod Base (fs_game_base)</strong></dt>
733 <dd>
734 <p>This field only appears for non-DarkMod game types.
735 It allows a two-level mod structure, where the <strong>Mod Base</strong> can point to a major
736 game mod, possibly downloaded from elsewhere, while <strong>Mod</strong> can be set to point
737 to an entirely local "sub-mod" which contains local changes and overrides.
738 Before the release of Dark Mod standalone, this field would have been set to
739 <code>darkmod</code> while the <strong>Mod</strong> field would have been set to the local mission,
740 however this is no longer necessary when <code>The Dark Mod 2.0 (Standalone)</code> is
741 being used.</p>
742 </dd>
743 </dl>
744 </div>
745 <div class="paragraph">
746 <p>Once the game paths are set up, click the <strong>Save</strong> button to proceed to the main
747 DarkRadiant interface.</p>
748 </div>
749 <div class="admonitionblock note">
750 <table>
751 <tr>
752 <td class="icon">
753 <img src="img/note.png" alt="Note">
754 </td>
755 <td class="content">
756 It is possible to <strong>Cancel</strong> the <strong>Game Setup</strong> dialog and proceed to the main
757 window without configuring a game installation, in which case DarkRadiant will
758 show a warning and ask if you wish to proceed. If you do, DarkRadiant will run
759 but there will be no available textures, models, entities or other game assets.
760 </td>
761 </tr>
762 </table>
763 </div>
764 </div>
765 <div class="sect2">
766 <h3 id="_interface_layout">Interface layout</h3>
767 <div class="paragraph">
768 <p>DarkRadiant ships with a number of different user interface layouts, which
769 control the position, visibility and window type of the major interface
770 elements. The current layout can be changed from the <code>View &#8594; Window Layout</code>
771 menu, and will require DarkRadiant to be restarted.</p>
772 </div>
773 <div class="paragraph">
774 <p>There is currently no support for custom layouts, however all of the provided
775 layouts allow window sizes and splitter positions to be changed, and the changes
776 will persist through multiple editing sessions.</p>
777 </div>
778 <div class="dlist">
779 <dl>
780 <dt class="hdlist1"><strong>Embedded</strong></dt>
781 <dd>
782 <p>A large 2D window is shown on the right, while the left-hand side
783 is divided vertically into the 3D camera window and a tab widget containing the
784 main editing panels. There are no floating subwindows in this layout.</p>
785 </dd>
786 <dt class="hdlist1"><strong>Regular</strong></dt>
787 <dd>
788 <p>A legacy GtkRadiant layout which places the 2D window on the left,
789 the 3D camera view on the top right, and a 2D scrolling textures panel on the
790 bottom right. Other tabs in the editing panel are shown in a floating window.</p>
791 </dd>
792 <dt class="hdlist1"><strong>RegularLeft</strong></dt>
793 <dd>
794 <p>The same as <strong>Regular</strong> except the full-height 2D window is on the
795 right and the 3D window and texture panels are on the left.</p>
796 </dd>
797 <dt class="hdlist1"><strong>Floating</strong></dt>
798 <dd>
799 <p>The 2D window, 3D window and editing tab widget are all shown in
800 separate floating windows which always appear above the main DarkRadiant
801 window. The main window itself is empty apart from the toolbars and status bar.
802 This is the most flexible layout, since each subwindow can be sized or
803 positioned as desired, but the multiple subwindows may be cumbersome to manage.</p>
804 </dd>
805 <dt class="hdlist1"><strong>SplitPane</strong></dt>
806 <dd>
807 <p>Three separate 2D windows, showing each of the major axes, are
808 shown alongside the 3D camera view in a 2x2 layout similar to traditional 3D
809 modelling applications. The editing tab widget is in a floating window.</p>
810 </dd>
811 </dl>
812 </div>
813 </div>
814 <div class="sect2">
815 <h3 id="_colour_schemes">Colour schemes</h3>
816 <div class="paragraph">
817 <p>DarkRadiant defaults to a black-on-white colour scheme in the 2D windows, but
818 ships with four other colour schemes, which can be accessed under <code>View &#8594;
819 Colours&#8230;&#8203;</code>. If you prefer a dark theme, the <code>Black &amp; Green</code> scheme might be
820 suitable, whereas the <code>Maya/Max/Lightwave Emulation</code> and <code>Super Mal</code> themes
821 provide a more neutral, low-contrast look.</p>
822 </div>
823 <table class="tableblock frame-all grid-none stretch">
824 <colgroup>
825 <col style="width: 33.3333%;">
826 <col style="width: 33.3333%;">
827 <col style="width: 33.3334%;">
828 </colgroup>
829 <tbody>
830 <tr>
831 <td class="tableblock halign-center valign-top"><div class="content"><div class="paragraph">
832 <p><span class="image"><img src="img/DarkRadiantDefaultTheme.png" alt="DarkRadiantDefaultTheme"></span><br>
833 <strong>DarkRadiant Default</strong></p>
834 </div></div></td>
835 <td class="tableblock halign-center valign-top"><div class="content"><div class="paragraph">
836 <p><span class="image"><img src="img/BlackGreenTheme.png" alt="BlackGreenTheme"></span><br>
837 <strong>Black and Green</strong></p>
838 </div></div></td>
839 <td class="tableblock halign-center valign-top"><div class="content"><div class="paragraph">
840 <p><span class="image"><img src="img/Q3RadiantTheme.png" alt="Q3RadiantTheme"></span><br>
841 <strong>QE3Radiant Original</strong></p>
842 </div></div></td>
843 </tr>
844 <tr>
845 <td class="tableblock halign-center valign-top"><div class="content"><div class="paragraph">
846 <p><span class="image"><img src="img/SuperMalTheme.png" alt="SuperMalTheme"></span><br>
847 <strong>Super Mal</strong></p>
848 </div></div></td>
849 <td class="tableblock halign-center valign-top"><div class="content"><div class="paragraph">
850 <p><span class="image"><img src="img/MayaEmulationTheme.png" alt="MayaEmulationTheme"></span><br>
851 <strong>Maya/Max/Lightwave Emulation</strong></p>
852 </div></div></td>
853 <td class="tableblock halign-center valign-top"><div class="content"></div></td>
854 </tr>
855 </tbody>
856 </table>
857 <div class="paragraph">
858 <p>Each of the colour schemes can be edited using the colour selector buttons in
859 the <strong>Colours</strong> dialog, and it is also possible to copy one of the default schemes
860 into a custom scheme with a new name.</p>
861 </div>
862 <div class="admonitionblock note">
863 <table>
864 <tr>
865 <td class="icon">
866 <img src="img/note.png" alt="Note">
867 </td>
868 <td class="content">
869 The game installation may specify the colour of certain entity types, in
870 which case it will not be possible to change the colour of these entities via
871 the <strong>Colours</strong> dialog.
872 </td>
873 </tr>
874 </table>
875 </div>
876 </div>
877 </div>
878 </div>
879 <div class="sect1">
880 <h2 id="_basic_editing">Basic editing</h2>
881 <div class="sectionbody">
882 <div class="sect2">
883 <h3 id="_navigating_the_2d_view">Navigating the 2D view</h3>
884 <div class="paragraph">
885 <p>The game world is a three-dimensional vector space with a central origin,
886 rendered in the 2D editing window as a grid. The unit of measurement is an
887 arbitrary game unit which does not directly correspond to any real-world
888 measurement system&#8201;&#8212;&#8201;in The Dark Mod, a typical human stands around 80 - 90
889 game units high, making a game unit about 2 cm.</p>
890 </div>
891 <div class="paragraph">
892 <p>Each 2D window shows which axes it is representing with an icon in the top-left
893 corner, as well as an identical icon at the <code>&lt;0,0,0&gt;</code> origin position, if
894 visible within the view.</p>
895 </div>
896 <div class="imageblock text-center">
897 <div class="content">
898 <img src="img/2DViewMarkedUp.png" alt="2DViewMarkedUp">
899 </div>
900 <div class="title">Figure 1. Components of the 2D view</div>
901 </div>
902 <div class="paragraph">
903 <p>The 2D view also shows the current position of the camera (used for rendering
904 the separate 3D camera view window), and its view direction.</p>
905 </div>
906 <div class="paragraph">
907 <p>The following commands are available within the 2D view:</p>
908 </div>
909 <table class="tableblock frame-all grid-all stretch">
910 <colgroup>
911 <col style="width: 25%;">
912 <col style="width: 75%;">
913 </colgroup>
914 <tbody>
915 <tr>
916 <th class="tableblock halign-left valign-top"><p class="tableblock">Right drag</p></th>
917 <td class="tableblock halign-left valign-top"><p class="tableblock">Scroll the view horizontally or vertically</p></td>
918 </tr>
919 <tr>
920 <th class="tableblock halign-left valign-top"><p class="tableblock">Mouse wheel</p></th>
921 <td class="tableblock halign-left valign-top"><p class="tableblock">Zoom the view</p></td>
922 </tr>
923 <tr>
924 <th class="tableblock halign-left valign-top"><p class="tableblock">Shift + Right drag</p></th>
925 <td class="tableblock halign-left valign-top"><p class="tableblock">Zoom the view (alternative binding)</p></td>
926 </tr>
927 <tr>
928 <th class="tableblock halign-left valign-top"><p class="tableblock">Ctrl + Middle click</p></th>
929 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the camera directly to the clicked position</p></td>
930 </tr>
931 <tr>
932 <th class="tableblock halign-left valign-top"><p class="tableblock">Middle click</p></th>
933 <td class="tableblock halign-left valign-top"><p class="tableblock">Rotate the camera to look directly at the clicked point</p></td>
934 </tr>
935 <tr>
936 <th class="tableblock halign-left valign-top"><p class="tableblock">Ctrl + TAB</p></th>
937 <td class="tableblock halign-left valign-top"><p class="tableblock">Change view axis (XY, XZ, YZ)</p></td>
938 </tr>
939 <tr>
940 <th class="tableblock halign-left valign-top"><p class="tableblock">Ctrl + Shift + TAB</p></th>
941 <td class="tableblock halign-left valign-top"><p class="tableblock">Center 2D view on current camera position</p></td>
942 </tr>
943 </tbody>
944 </table>
945 </div>
946 <div class="sect2">
947 <h3 id="_adjusting_the_grid">Adjusting the grid</h3>
948 <div class="paragraph">
949 <p>The grid shown in the 2D view is used to snap the position and size of brushes
950 and patches, as well as the centerpoints of entities. The size of the grid can
951 be configured, in powers of 2, from 0.125 up to 256, using the <strong>1-9</strong> keys on the
952 main keyboard (not the numeric keypad), or the equivalent options in the <strong>Grid</strong>
953 menu.</p>
954 </div>
955 <div class="paragraph">
956 <p>The <strong>0</strong> key on the main keyboard can be used to toggle the display of the grid.
957 Note that objects will still be snapped to the grid even if the grid is not
958 visible; this is purely a visual toggle.</p>
959 </div>
960 <div class="admonitionblock important">
961 <table>
962 <tr>
963 <td class="icon">
964 <img src="img/important.png" alt="Important">
965 </td>
966 <td class="content">
967 Level geometry built from brushes and patches should <em>always</em> be
968 snapped to the grid to avoid problems such as rendering glitches and map leaks.
969 Static meshes and animated AI can be positioned more freely, however grid
970 snapping is a useful tool for ensuring that models are appropriately aligned
971 with the level geometry.
972 </td>
973 </tr>
974 </table>
975 </div>
976 </div>
977 <div class="sect2">
978 <h3 id="Using3DCameraView">Using the 3D camera view</h3>
979 <div class="paragraph">
980 <p>The 3D camera view provides an approximate rendering of the map in three
981 dimensions, in several different render modes: wireframe, flat shaded, textured,
982 and fully lit by in-game light sources. While the 2D view is the main interface
983 for creating and aligning level geometry, the 3D view is a vital tool for tasks
984 such as texturing, or configuring light parameters.</p>
985 </div>
986 <div class="admonitionblock important">
987 <table>
988 <tr>
989 <td class="icon">
990 <img src="img/important.png" alt="Important">
991 </td>
992 <td class="content">
993 The fully lit rendering mode in DarkRadiant is very limited, and only
994 offers a partial view of what the game engine will ultimately render. In
995 particular, there are no shadows or foglights.
996 </td>
997 </tr>
998 </table>
999 </div>
1000 <div class="paragraph">
1001 <p>The 3D camera view provides its own toolbar which can be used to configure
1002 various display settings.</p>
1003 </div>
1004 <table class="tableblock frame-all grid-all stretch">
1005 <colgroup>
1006 <col style="width: 7.1428%;">
1007 <col style="width: 21.4285%;">
1008 <col style="width: 71.4287%;">
1009 </colgroup>
1010 <tbody>
1011 <tr>
1012 <th class="tableblock halign-center valign-top" colspan="3"><p class="tableblock">Render modes</p></th>
1013 </tr>
1014 <tr>
1015 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/wireframeMode16.png" alt="wireframeMode16" width="24"></span></p></th>
1016 <th class="tableblock halign-left valign-top"><p class="tableblock">Render in wireframe mode</p></th>
1017 <td class="tableblock halign-left valign-top"><p class="tableblock">Render objects as wire meshes.</p></td>
1018 </tr>
1019 <tr>
1020 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/solidMode16.png" alt="solidMode16" width="24"></span></p></th>
1021 <th class="tableblock halign-left valign-top"><p class="tableblock">Render in flat-shaded mode</p></th>
1022 <td class="tableblock halign-left valign-top"><p class="tableblock">Render objects as coloured solids, without textures or lighting.</p></td>
1023 </tr>
1024 <tr>
1025 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/textureMode16.png" alt="textureMode16" width="24"></span></p></th>
1026 <th class="tableblock halign-left valign-top"><p class="tableblock">Render in fullbright textured mode</p></th>
1027 <td class="tableblock halign-left valign-top"><p class="tableblock">Render objects as preview textures, with no lighting or material effects such as
1028 transparency.</p></td>
1029 </tr>
1030 <tr>
1031 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/lightingMode.png" alt="lightingMode" width="24"></span></p></th>
1032 <th class="tableblock halign-left valign-top"><p class="tableblock">Render in lighting preview mode</p></th>
1033 <td class="tableblock halign-left valign-top"><p class="tableblock">Render all available lighting and texture effects.</p></td>
1034 </tr>
1035 <tr>
1036 <th class="tableblock halign-center valign-top" colspan="3"><p class="tableblock">Animation rendering</p></th>
1037 </tr>
1038 <tr>
1039 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/StartPlayback.png" alt="StartPlayback" width="24"></span></p></th>
1040 <th class="tableblock halign-left valign-top"><p class="tableblock">Start render time</p></th>
1041 <td class="tableblock halign-left valign-top"><p class="tableblock">Begin rendering animated effects.</p></td>
1042 </tr>
1043 <tr>
1044 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/StopPlayback.png" alt="StopPlayback" width="24"></span></p></th>
1045 <th class="tableblock halign-left valign-top"><p class="tableblock">Stop render time</p></th>
1046 <td class="tableblock halign-left valign-top"><p class="tableblock">Stop rendering animated effects.</p></td>
1047 </tr>
1048 <tr>
1049 <th class="tableblock halign-center valign-top" colspan="3"><p class="tableblock">Far clip options</p></th>
1050 </tr>
1051 <tr>
1052 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/toggleFarClip.png" alt="toggleFarClip" width="24"></span></p></th>
1053 <th class="tableblock halign-left valign-top"><p class="tableblock">Toggle far clip</p></th>
1054 <td class="tableblock halign-left valign-top"><p class="tableblock">Enable or disable the far clip plane.</p>
1055 <p class="tableblock">The far clip plane is a performance optimisation which avoids rendering geometry
1056 more than a certain distance away from the camera.</p></td>
1057 </tr>
1058 <tr>
1059 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/farClipIn.png" alt="farClipIn" width="24"></span></p></th>
1060 <th class="tableblock halign-left valign-top"><p class="tableblock">Clip plane in</p></th>
1061 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the far clip plane closer to the camera.</p></td>
1062 </tr>
1063 <tr>
1064 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/farClipOut.png" alt="farClipOut" width="24"></span></p></th>
1065 <th class="tableblock halign-left valign-top"><p class="tableblock">Clip plane out</p></th>
1066 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the far clip plane further away from the camera.</p></td>
1067 </tr>
1068 </tbody>
1069 </table>
1070 <div class="paragraph">
1071 <p>The 3D view always renders the scene from a particular camera position, which is
1072 shown in the 2D view as a blue diamond. This camera position can be set directly
1073 from the 2D view with <strong>Ctrl + Middle click</strong>, and the camera view direction can
1074 be set with <strong>Middle click</strong>. There are also various options within the 3D view
1075 itself to adjust the camera position.</p>
1076 </div>
1077 <table class="tableblock frame-all grid-all stretch">
1078 <colgroup>
1079 <col style="width: 25%;">
1080 <col style="width: 75%;">
1081 </colgroup>
1082 <tbody>
1083 <tr>
1084 <th class="tableblock halign-left valign-top"><p class="tableblock">Right click</p></th>
1085 <td class="tableblock halign-left valign-top"><p class="tableblock">Enter or leave free camera mode. In this mode, moving the mouse
1086 around updates the camera view direction in real-time, and moving the mouse
1087 around while holding <strong>Ctrl</strong> causes the camera to move up/down/left/right
1088 according to the camera motion.</p></td>
1089 </tr>
1090 <tr>
1091 <th class="tableblock halign-center valign-top" colspan="2"><p class="tableblock">Default mode (not free camera)</p></th>
1092 </tr>
1093 <tr>
1094 <th class="tableblock halign-left valign-top"><p class="tableblock">Left/Right arrow</p></th>
1095 <td class="tableblock halign-left valign-top"><p class="tableblock">Pan the camera left or right</p></td>
1096 </tr>
1097 <tr>
1098 <th class="tableblock halign-left valign-top"><p class="tableblock">Up/Down arrow</p></th>
1099 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the camera forwards or backwards on the horizontal plane,
1100 without changing its height on the Z axis.</p></td>
1101 </tr>
1102 <tr>
1103 <th class="tableblock halign-center valign-top" colspan="2"><p class="tableblock">Free camera mode</p></th>
1104 </tr>
1105 <tr>
1106 <th class="tableblock halign-left valign-top"><p class="tableblock">Left/Right arrow</p></th>
1107 <td class="tableblock halign-left valign-top"><p class="tableblock">Move ("truck") camera left or right, leaving view direction
1108 the same.</p></td>
1109 </tr>
1110 <tr>
1111 <th class="tableblock halign-left valign-top"><p class="tableblock">Up/Down arrow</p></th>
1112 <td class="tableblock halign-left valign-top"><p class="tableblock">Move ("dolly") the camera forwards or backwards along its view
1113 axis</p></td>
1114 </tr>
1115 </tbody>
1116 </table>
1117 </div>
1118 <div class="sect2">
1119 <h3 id="_manipulating_objects">Manipulating objects</h3>
1120 <div class="paragraph">
1121 <p>Every object in a map can be selected and moved within the 2D view. Some objects&#8201;&#8212;&#8201;including brushes, patches and lights&#8201;&#8212;&#8201;can also be resized.</p>
1122 </div>
1123 <div class="paragraph">
1124 <p>For more advanced ways to select objects, see
1125 <a href="#BrushBasedSelection">brush-based selection</a>.</p>
1126 </div>
1127 <table class="tableblock frame-all grid-all stretch">
1128 <colgroup>
1129 <col style="width: 25%;">
1130 <col style="width: 75%;">
1131 </colgroup>
1132 <tbody>
1133 <tr>
1134 <th class="tableblock halign-left valign-top"><p class="tableblock">Shift + Left click</p></th>
1135 <td class="tableblock halign-left valign-top"><p class="tableblock">Select or deselect the object at the clicked position. Any
1136 existing selected objects will remain selected. If the clicked position
1137 overlaps more than one object, the closest one (according to the current 2D
1138 view axis) will be affected.</p></td>
1139 </tr>
1140 <tr>
1141 <th class="tableblock halign-left valign-top"><p class="tableblock">Alt + Shift + Left click</p></th>
1142 <td class="tableblock halign-left valign-top"><p class="tableblock">Select the object at the clicked position, and
1143 deselect any existing selected objects. If the clicked position overlaps more
1144 than one object, each click will cycle through the overlapping objects.</p></td>
1145 </tr>
1146 <tr>
1147 <th class="tableblock halign-left valign-top"><p class="tableblock">Shift + Left drag</p></th>
1148 <td class="tableblock halign-left valign-top"><p class="tableblock">Draw a selection rectangle, which will select any objects
1149 contained (fully or partially) within it.</p></td>
1150 </tr>
1151 <tr>
1152 <th class="tableblock halign-left valign-top"><p class="tableblock">ESC</p></th>
1153 <td class="tableblock halign-left valign-top"><p class="tableblock">Deselect all objects</p></td>
1154 </tr>
1155 <tr>
1156 <th class="tableblock halign-left valign-top"><p class="tableblock">Left drag (<em>inside</em> object)</p></th>
1157 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the selected object(s)</p></td>
1158 </tr>
1159 <tr>
1160 <th class="tableblock halign-left valign-top"><p class="tableblock">Left drag (<em>outside</em> object)</p></th>
1161 <td class="tableblock halign-left valign-top"><p class="tableblock">Resize the selected object(s) (if available)</p></td>
1162 </tr>
1163 <tr>
1164 <th class="tableblock halign-left valign-top"><p class="tableblock">Space</p></th>
1165 <td class="tableblock halign-left valign-top"><p class="tableblock">Duplicate the selected object(s)</p></td>
1166 </tr>
1167 <tr>
1168 <th class="tableblock halign-left valign-top"><p class="tableblock">Backspace</p></th>
1169 <td class="tableblock halign-left valign-top"><p class="tableblock">Delete the selected object(s)</p></td>
1170 </tr>
1171 </tbody>
1172 </table>
1173 <div class="admonitionblock tip">
1174 <table>
1175 <tr>
1176 <td class="icon">
1177 <img src="img/tip.png" alt="Tip">
1178 </td>
1179 <td class="content">
1180 Like other editors in the Radiant family, DarkRadiant offers a rather
1181 unusual system for resizing objects. Rather than clicking exactly on the edge,
1182 or on a dedicated resizing handle, you can click and drag anywhere outside an
1183 edge to move that edge inwards or outwards. Dragging outside a corner allows you
1184 to move two edges at once.
1185 </td>
1186 </tr>
1187 </table>
1188 </div>
1189 <div class="sect3">
1190 <h4 id="_flipping_and_rotating">Flipping and rotating</h4>
1191 <div class="paragraph">
1192 <p>DarkRadiant provides six buttons to quickly flip or rotate objects (in 90 degree
1193 increments) around each of the three world axes. These are available on the
1194 left-hand vertical toolbar.</p>
1195 </div>
1196 <table class="tableblock frame-all grid-all stretch">
1197 <colgroup>
1198 <col style="width: 9.0909%;">
1199 <col style="width: 90.9091%;">
1200 </colgroup>
1201 <tbody>
1202 <tr>
1203 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_flipx.png" alt="brush flipx" width="24"></span></p></th>
1204 <td class="tableblock halign-left valign-top"><p class="tableblock">Flip along the X axis</p></td>
1205 </tr>
1206 <tr>
1207 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_rotatex.png" alt="brush rotatex" width="24"></span></p></th>
1208 <td class="tableblock halign-left valign-top"><p class="tableblock">Rotate around the X axis</p></td>
1209 </tr>
1210 <tr>
1211 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_flipy.png" alt="brush flipy" width="24"></span></p></th>
1212 <td class="tableblock halign-left valign-top"><p class="tableblock">Flip along the Y axis</p></td>
1213 </tr>
1214 <tr>
1215 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_rotatey.png" alt="brush rotatey" width="24"></span></p></th>
1216 <td class="tableblock halign-left valign-top"><p class="tableblock">Rotate around the Y axis</p></td>
1217 </tr>
1218 <tr>
1219 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_flipz.png" alt="brush flipz" width="24"></span></p></th>
1220 <td class="tableblock halign-left valign-top"><p class="tableblock">Flip along the Z axis</p></td>
1221 </tr>
1222 <tr>
1223 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/brush_rotatez.png" alt="brush rotatez" width="24"></span></p></th>
1224 <td class="tableblock halign-left valign-top"><p class="tableblock">Rotate around the Z axis</p></td>
1225 </tr>
1226 </tbody>
1227 </table>
1228 </div>
1229 <div class="sect3">
1230 <h4 id="ManipulatorModes">Manipulator modes</h4>
1231 <div class="paragraph">
1232 <p>For more precise control over object motion, there are three manipulator modes
1233 which can be selected with buttons on the left-hand vertical toolbar.</p>
1234 </div>
1235 <table class="tableblock frame-all grid-all stretch">
1236 <colgroup>
1237 <col style="width: 7.1428%;">
1238 <col style="width: 21.4285%;">
1239 <col style="width: 71.4287%;">
1240 </colgroup>
1241 <tbody>
1242 <tr>
1243 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/select_mousetranslate.png" alt="select mousetranslate" width="24"></span></p></th>
1244 <th class="tableblock halign-left valign-top"><p class="tableblock">Translate mode</p></th>
1245 <td class="tableblock halign-left valign-top"><p class="tableblock">A manipulator widget with axis-aligned arrows will be displayed at the selected
1246 object&#8217;s center. Click and drag one of the arrows to move the object along that
1247 axis, or drag inside the manipulator box to move the object in two dimensions.
1248 This mode may be useful for moving brushes around without accidentally resizing
1249 them.</p></td>
1250 </tr>
1251 <tr>
1252 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/select_mouserotate.png" alt="select mouserotate" width="24"></span></p></th>
1253 <th class="tableblock halign-left valign-top"><p class="tableblock">Rotate mode</p></th>
1254 <td class="tableblock halign-left valign-top"><p class="tableblock">A widget with three axis-aligned rings will be displayed at the selected
1255 object&#8217;s center. Drag a ring to rotate the object by any arbitrary amount around
1256 that ring&#8217;s axis.</p></td>
1257 </tr>
1258 <tr>
1259 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/select_mouseresize.png" alt="select mouseresize" width="24"></span></p></th>
1260 <th class="tableblock halign-left valign-top"><p class="tableblock">Resize mode</p></th>
1261 <td class="tableblock halign-left valign-top"><p class="tableblock">This is the default Radiant drag mode (hence the "QE" icon referring to the
1262 original QERadiant) which allows you to move objects by dragging inside them and
1263 resize by dragging outside the boundary edges.</p></td>
1264 </tr>
1265 </tbody>
1266 </table>
1267 </div>
1268 </div>
1269 <div class="sect2">
1270 <h3 id="_working_with_brushes">Working with brushes</h3>
1271 <div class="paragraph">
1272 <p>Brushes are the basic building blocks of all maps. Typically they are used for
1273 coarse-grained level geometry such as walls, ceiling and floors. Brushes also
1274 have a vital role in sealing a map from the void: even a map built entirely from
1275 patches and static meshes must still be surrounded by brushes in order to avoid
1276 leaking.</p>
1277 </div>
1278 <div class="sidebarblock">
1279 <div class="content">
1280 <div class="title">Additive versus subtractive geometry</div>
1281 <div class="paragraph">
1282 <p>If you are used to mapping for the legacy Thief games using Dromed or T3Edit,
1283 the system used by DarkRadiant may seem somewhat back-to-front. In previous
1284 games, the world starts out as an infinite solid, in which you "carve out" rooms
1285 using subtractive brushes. In DarkRadiant, the world starts out as an infinite
1286 void, and all brushes are solid. The space in which the mission happens must be
1287 fully enclosed by solid brushes, otherwise the map will "leak" and fail to
1288 compile.</p>
1289 </div>
1290 <div class="paragraph">
1291 <p>The need to deal with map leaks may at first seem like a burden, however the
1292 exclusive use of solid brushes frees the engine from needing to worry about
1293 "brush ordering", and allows an important performance optimisation: by "flood
1294 filling" the map interior, the map compiler can efficiently discard geometry
1295 that never needs to be rendered.</p>
1296 </div>
1297 </div>
1298 </div>
1299 <div class="sect3">
1300 <h4 id="CreatingABrush">Creating a brush</h4>
1301 <div class="paragraph">
1302 <p>To create a simple rectangular brush, ensure that nothing is selected (<strong>ESC</strong>),
1303 then <strong>Left drag</strong> in the 2D view. A new brush will be created and sized according
1304 to the dragged area, with its dimensions snapped to the current grid level. To
1305 adjust the third dimension of the brush (perpendicular to the view direction),
1306 used <strong>Ctrl + TAB</strong> to switch the 2D view axis, and <strong>Left drag</strong> outside the brush
1307 boundary to adjust the size.</p>
1308 </div>
1309 <div class="admonitionblock tip">
1310 <table>
1311 <tr>
1312 <td class="icon">
1313 <img src="img/tip.png" alt="Tip">
1314 </td>
1315 <td class="content">
1316 Whenever you drag to create a new brush, the third dimension will match the
1317 size of the <em>most recently selected</em> brush. This makes it easy to draw a series
1318 of brushes with the same height, such as when you need to create a series of
1319 floors or walls in succession. To match the height of an existing brush, simply
1320 select (<strong>Shift + Left click</strong>) and deselect it (<strong>ESC</strong>) before drawing the new
1321 brush.
1322 </td>
1323 </tr>
1324 </table>
1325 </div>
1326 </div>
1327 <div class="sect3">
1328 <h4 id="_more_complex_brush_shapes">More complex brush shapes</h4>
1329 <div class="paragraph">
1330 <p>Although each brush starts out as a six-sided cuboid, it doesn&#8217;t have to stay
1331 that way. DarkRadiant offers several options for creating multi-sided brushes in
1332 more complex shapes. To create one of these shapes, first define a regular
1333 cuboid brush covering the volume you want the new shape to occupy, then choose
1334 the appropriate option from the <strong>Brush</strong> menu:</p>
1335 </div>
1336 <table class="tableblock frame-all grid-all fit-content">
1337 <colgroup>
1338 <col>
1339 <col>
1340 </colgroup>
1341 <tbody>
1342 <tr>
1343 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/6Prism.png" alt="6Prism"></span></p></td>
1344 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Prism</strong></p>
1345 <p class="tableblock">An n-sided approximation of a cylinder, with the axis of the cylinder
1346 aligned with the current 2D view.</p></td>
1347 </tr>
1348 <tr>
1349 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/6Cone.png" alt="6Cone"></span></p></td>
1350 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Cone</strong></p>
1351 <p class="tableblock">A tapered n-sided cone, which always points upwards regardless of the
1352 2D view axis.</p></td>
1353 </tr>
1354 <tr>
1355 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/6Sphere.png" alt="6Sphere"></span></p></td>
1356 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Sphere</strong></p>
1357 <p class="tableblock">A rotationally symmetric n-sided approximation of a sphere, with the
1358 axis of rotation pointing upwards.</p></td>
1359 </tr>
1360 </tbody>
1361 </table>
1362 <div class="paragraph">
1363 <p>While these shapes can be useful for certain architectural modelling, remember
1364 that brushes are always flat-shaded and are not generally a good substitute for
1365 spheres or cones created with patches or static meshes.</p>
1366 </div>
1367 </div>
1368 <div class="sect3">
1369 <h4 id="_creating_a_room">Creating a room</h4>
1370 <div class="paragraph">
1371 <p>Although it is not too difficult to create a hollow room by creating floor,
1372 ceiling and wall brushes manually, this is a common enough operation that
1373 DarkRadiant provides a couple of shortcuts. These options can be found on the
1374 vertical toolbar at the far left of the main window.</p>
1375 </div>
1376 <table class="tableblock frame-all grid-all stretch">
1377 <colgroup>
1378 <col style="width: 20%;">
1379 <col style="width: 80%;">
1380 </colgroup>
1381 <tbody>
1382 <tr>
1383 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/CreateRoomBrush.png" alt="CreateRoomBrush" width="320"></span></p></td>
1384 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/CreateRoom.png" alt="CreateRoom" width="36"></span> <strong>Create Room</strong></p>
1385 <p class="tableblock">Create a room whose interior size matches the size of the currently-selected
1386 brush. The wall thickness will be equal to the current grid size.</p></td>
1387 </tr>
1388 <tr>
1389 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/HollowBrush.png" alt="HollowBrush" width="320"></span></p></td>
1390 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/Hollow.png" alt="Hollow" width="36"></span> <strong>Hollow</strong></p>
1391 <p class="tableblock">Hollow out the selected brush, leaving the exterior dimensions the same. The
1392 wall thickness will be equal to the current grid size, but the wall brushes will
1393 overlap at the corners, rather than just touching each other as with <strong>Create
1394 Room</strong>.</p>
1395 <p class="tableblock">This is legacy tool from GtkRadiant, and generally inferior to <strong>Create Room</strong>.
1396 The overlapping wall brushes make it more difficult to precisely align interior
1397 textures, since part of the inner face is obscured (and therefore removed during
1398 map compilation). However, there may be occasional situations in which <strong>Hollow</strong>
1399 is useful, so it is retained in DarkRadiant.</p></td>
1400 </tr>
1401 </tbody>
1402 </table>
1403 <div class="paragraph">
1404 <p>The room creation tools do not require the initial brush to be rectangular&#8201;&#8212;&#8201;you can quite happily <strong>Create Room</strong> with a triangular or trapezoidal brush, or a
1405 brush with sloping sides. However, with a more complex brush shape, the
1406 complexity of the resulting wall geometry increases considerably, so attempting
1407 to hollow out a 7-sided sphere is probably ill-advised.</p>
1408 </div>
1409 </div>
1410 <div class="sect3">
1411 <h4 id="SplittingBrushes">Splitting brushes</h4>
1412 <div class="paragraph">
1413 <p>Sometimes it is necessary to divide a brush into two or more pieces, perhaps to
1414 create a doorway or other opening. The <strong>Clipper</strong> tool, accessed with the <strong>X</strong>
1415 key, is used for this purpose.</p>
1416 </div>
1417 <div class="imageblock text-center">
1418 <div class="content">
1419 <img src="img/ClipTool3D.png" alt="ClipTool3D">
1420 </div>
1421 <div class="title">Figure 2. Splitting a brush into two parts</div>
1422 </div>
1423 <div class="olist arabic">
1424 <ol class="arabic">
1425 <li>
1426 <p>Select the brush to be split (the Clipper can be activated with nothing
1427 selected, but it will not do anything useful).</p>
1428 </li>
1429 <li>
1430 <p>Press <strong>X</strong> to activate the Clipper, or click on the respective icon on the
1431 left-hand editing toolbar.</p>
1432 </li>
1433 <li>
1434 <p>Click in the 2D window at two different positions, to define the plane along
1435 which the brush will be split. The proposed split plane will be highlighted in
1436 blue; feel free to change 2D view axis with <strong>Ctrl + TAB</strong> or use the 3D camera view
1437 to better visualise the split plane.</p>
1438 </li>
1439 <li>
1440 <p>Once the split plane is defined, press <strong>Shift + Enter</strong> to execute the split and
1441 keep <em>both</em> halves of the brush; press <strong>Enter</strong> to execute the split and keep
1442 only one half. The part of the brush that is kept with <strong>Enter</strong> depends on the
1443 order in which you define the clip points: the points (marked <strong>0</strong> and <strong>1</strong>) will
1444 appear <em>clockwise</em> on the brush edge according to the current 2D view. If in
1445 doubt, just use <strong>Shift + Enter</strong> to keep both parts, and delete the unwanted one
1446 afterwards.</p>
1447 </li>
1448 <li>
1449 <p>Repeat the process to perform additional splits on the selected brush, or
1450 disable the Clipper with the <strong>X</strong> key. The Clipper is a toggled tool and will
1451 remain active until disabled.</p>
1452 </li>
1453 </ol>
1454 </div>
1455 <div class="admonitionblock note">
1456 <table>
1457 <tr>
1458 <td class="icon">
1459 <img src="img/note.png" alt="Note">
1460 </td>
1461 <td class="content">
1462 It is possible to create <em>three</em> split points before executing the split,
1463 which will define a split plane in three dimensions. Defining a three-point
1464 split plane which is actually useful, however, may be challenging.
1465 </td>
1466 </tr>
1467 </table>
1468 </div>
1469 </div>
1470 <div class="sect3">
1471 <h4 id="_reshaping_brush_edges">Reshaping brush edges</h4>
1472 <div class="paragraph">
1473 <p>All brush edges can be moved independently, which gives you the ability to
1474 quickly create shapes like triangles or trapeziums. This functionality is
1475 accessed via the <strong>Select Edges</strong> tool on the upper toolbar, or with the <strong>E</strong> key.</p>
1476 </div>
1477 <div class="imageblock text-center">
1478 <div class="content">
1479 <img src="img/EdgeEditing.png" alt="EdgeEditing">
1480 </div>
1481 <div class="title">Figure 3. Creating a trapezium using edge editing</div>
1482 </div>
1483 <div class="olist arabic">
1484 <ol class="arabic">
1485 <li>
1486 <p>Select a brush.</p>
1487 </li>
1488 <li>
1489 <p>Activate <strong>Select Edges</strong> with the toolbar button or <strong>E</strong> key. DarkRadiant will
1490 place a green control point at the center of each brush edge.</p>
1491 </li>
1492 <li>
1493 <p>In either the 2D or the 3D view, click and drag on a control point to move its
1494 edge. The control point will turn blue and move along with the cursor. In the 2D
1495 view, dragging corners is generally easiest, since the resulting shape change
1496 can more easily be seen.</p>
1497 </li>
1498 <li>
1499 <p>To reduce the number of brush sides, such as changing a rectangle into a
1500 triangle, simply drag one corner directly on top of another. The two edges will
1501 be merged.</p>
1502 </li>
1503 </ol>
1504 </div>
1505 </div>
1506 <div class="sect3">
1507 <h4 id="BrushBasedSelection">Brush-based selection</h4>
1508 <div class="paragraph">
1509 <p>As well as using brushes to define map geometry, you can also use them to select
1510 objects. There are three commands on the top toolbar which convert the selected
1511 brush(es) into a temporary selection volume:</p>
1512 </div>
1513 <table class="tableblock frame-all grid-all stretch">
1514 <colgroup>
1515 <col style="width: 7.1428%;">
1516 <col style="width: 21.4285%;">
1517 <col style="width: 71.4287%;">
1518 </colgroup>
1519 <tbody>
1520 <tr>
1521 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/SelectCompleteTall.png" alt="SelectCompleteTall" width="24"></span></p></th>
1522 <th class="tableblock halign-left valign-top"><p class="tableblock">Select complete tall</p></th>
1523 <td class="tableblock halign-left valign-top"><p class="tableblock">Select all objects that are <em>completely</em> contained within the two-dimensional
1524 outline of the selected brush(es) in the current 2D view window, ignoring their
1525 position on the third axis (perpendicular to the screen).</p></td>
1526 </tr>
1527 <tr>
1528 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/SelectInside.png" alt="SelectInside" width="24"></span></p></th>
1529 <th class="tableblock halign-left valign-top"><p class="tableblock">Select inside</p></th>
1530 <td class="tableblock halign-left valign-top"><p class="tableblock">Select all objects that are <em>completely</em> contained within the selected brush
1531 volume(s) in all three dimensions.</p></td>
1532 </tr>
1533 <tr>
1534 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/SelectTouching.png" alt="SelectTouching" width="24"></span></p></th>
1535 <th class="tableblock halign-left valign-top"><p class="tableblock">Select touching</p></th>
1536 <td class="tableblock halign-left valign-top"><p class="tableblock">Select all objects that are touching the selected brushes. Unlike the previous
1537 two commands, this one does not remove the selected brushes, since it is
1538 designed to allow you to quickly select objects that are adjacent to real map
1539 geometry.</p></td>
1540 </tr>
1541 </tbody>
1542 </table>
1543 </div>
1544 </div>
1545 <div class="sect2">
1546 <h3 id="_working_with_patches">Working with patches</h3>
1547 <div class="paragraph">
1548 <p>Patches are smooth-shaded Bezier surfaces that can be created and manipulated in
1549 the editor (unlike models), and used to represent a variety of curved shapes
1550 such as vaulted ceilings, arches or pillars. Patches are single-sided surfaces,
1551 not solid like brushes, and cannot be used to seal a map from the void&#8201;&#8212;&#8201;any
1552 patch work on the boundary of a map will need solid brushes behind it to prevent
1553 the map from leaking.</p>
1554 </div>
1555 <div class="sect3">
1556 <h4 id="_creating_a_simple_patch">Creating a simple patch</h4>
1557 <div class="paragraph">
1558 <p>A simple patch starts off as a flat rectangle, which can then be manipulated
1559 with vertex editing to produce a curved surface, if desired.</p>
1560 </div>
1561 <div class="paragraph">
1562 <p>To create a simple patch:</p>
1563 </div>
1564 <div class="olist arabic">
1565 <ol class="arabic">
1566 <li>
1567 <p>Set the 2D view axes (<strong>Ctrl + TAB</strong>) to define the orientation of the patch.
1568 The patch will be created facing directly towards the screen, so to create a
1569 horizontal (ceiling or floor) patch, the 2D view should be in XY (Top)
1570 orientation.</p>
1571 </li>
1572 <li>
1573 <p><a href="#CreatingABrush">Create a rectangular brush</a> to define the width and height of
1574 the patch in the current 2D view (the third dimension is not important, since
1575 the patch will be infinitely thin once created).</p>
1576 </li>
1577 <li>
1578 <p>With the brush selected, choose <strong>Create Simple Patch Mesh</strong> from the <strong>Patch</strong>
1579 menu.</p>
1580 </li>
1581 <li>
1582 <p>In the dialog, choose the number of control points to define the shape of the
1583 patch along its width and height. A patch can have between 3 and 15 control
1584 points in each dimension; there will always be a control point at the extreme
1585 edge, and one in the middle. More control points allow more complex shapes but
1586 also require more manual adjustment&#8201;&#8212;&#8201;creating a simple arch is much easier
1587 with just three control points.</p>
1588 </li>
1589 <li>
1590 <p>Click <strong>OK</strong> to create the patch.</p>
1591 </li>
1592 </ol>
1593 </div>
1594 <div class="imageblock text-center">
1595 <div class="content">
1596 <img src="img/SimplePatchesControlPoints.png" alt="SimplePatchesControlPoints">
1597 </div>
1598 <div class="title">Figure 4. Simple patches with 3, 7 and 15 control points in both dimensions</div>
1599 </div>
1600 </div>
1601 <div class="sect3">
1602 <h4 id="_manipulating_control_points">Manipulating control points</h4>
1603 <div class="paragraph">
1604 <p>With a patch selected, press <strong>V</strong> to enter (or leave) vertex editing mode. This
1605 will display all of the control vertices, and allow you to select and move them.</p>
1606 </div>
1607 <div class="ulist">
1608 <ul>
1609 <li>
1610 <p><strong>Left click</strong> and drag a vertex to move just that one vertex.</p>
1611 </li>
1612 <li>
1613 <p><strong>Shift + Left click</strong> to add a vertex to the current selection set. When
1614 several vertices are selected, dragging any one of the selected vertices will
1615 move all of them together.</p>
1616 </li>
1617 <li>
1618 <p><strong>Shift + Left drag</strong> around several vertices to draw a selection rectangle that
1619 will toggle the selection state of all vertices inside it, selecting them if
1620 unselected and unselecting them if already selected.</p>
1621 </li>
1622 </ul>
1623 </div>
1624 <div class="imageblock text-center">
1625 <div class="content">
1626 <img src="img/PatchVertexEditing.png" alt="PatchVertexEditing">
1627 </div>
1628 <div class="title">Figure 5. Making an arch by raising the central row of vertices in a simple patch</div>
1629 </div>
1630 </div>
1631 <div class="sect3">
1632 <h4 id="_more_complex_patch_shapes">More complex patch shapes</h4>
1633 <div class="paragraph">
1634 <p>Just like with brushes, DarkRadiant offers several default patch shapes beyond
1635 the flat simple patch. These can be created by choosing the corresponding option
1636 in the <strong>Patch</strong> menu. There is no need to have a brush selected first in order to
1637 create these shapes, however if a brush <em>is</em> selected, it will be removed and
1638 used to define the size of the patch shape.</p>
1639 </div>
1640 <table class="tableblock frame-all grid-all stretch">
1641 <colgroup>
1642 <col style="width: 25%;">
1643 <col style="width: 75%;">
1644 </colgroup>
1645 <tbody>
1646 <tr>
1647 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/PatchSphere.png" alt="PatchSphere"></span></p></td>
1648 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Sphere</strong></p>
1649 <p class="tableblock">An approximation of a sphere (the quadratic Bezier patch implementation in Doom
1650 3 and DarkRadiant does not permit the creation of a perfect sphere).</p></td>
1651 </tr>
1652 <tr>
1653 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/PatchCylinder.png" alt="PatchCylinder"></span></p></td>
1654 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Cylinder</strong></p>
1655 <p class="tableblock">A hollow cylinder aligned with the direction of the 2D view.</p></td>
1656 </tr>
1657 <tr>
1658 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/PatchCone.png" alt="PatchCone"></span></p></td>
1659 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Cone</strong></p>
1660 <p class="tableblock">A tapered cone pointing along the 2D view axis.</p></td>
1661 </tr>
1662 <tr>
1663 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/PatchEndCap.png" alt="PatchEndCap"></span></p></td>
1664 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>End cap</strong></p>
1665 <p class="tableblock">An arch or half-cylinder covering a 180 degree angle, aligned with the 2D view
1666 axis. The peak of the arch will be at the top if created in front or side views,
1667 making this useful for curved ceilings and the like.</p></td>
1668 </tr>
1669 <tr>
1670 <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img src="img/PatchBevel.png" alt="PatchBevel"></span></p></td>
1671 <td class="tableblock halign-left valign-top"><p class="tableblock"><strong>Bevel</strong></p>
1672 <p class="tableblock">Portion of an arch covering a 90 degree angle. This may be placed along room
1673 edges to give a curved appearance.</p></td>
1674 </tr>
1675 </tbody>
1676 </table>
1677 </div>
1678 <div class="sect3">
1679 <h4 id="_controlling_patch_subdivision">Controlling patch subdivision</h4>
1680 <div class="paragraph">
1681 <p>Although patches are defined by Bezier curves, they are subdivided into flat
1682 polygons for rendering. By default, the number of polygons to create is
1683 determined dynamically by the game engine, based on the shape of the patch.
1684 However, you can also use the <strong>Patch Inspector</strong> to explicitly set the level of
1685 subdivision required, which can be useful when optimising a map by reducing
1686 on-screen polygon counts.</p>
1687 </div>
1688 <div class="imageblock text-center">
1689 <div class="content">
1690 <img src="img/PatchSubdivision.png" alt="PatchSubdivision">
1691 </div>
1692 <div class="title">Figure 6. Default (automatic) subdivision, 2x2 subdivision, 3x3 subdivision, 3x10 subdivision</div>
1693 </div>
1694 <div class="paragraph">
1695 <p>To subdivide a patch:</p>
1696 </div>
1697 <div class="olist arabic">
1698 <ol class="arabic">
1699 <li>
1700 <p>Select <strong>Patch Inspector</strong> in the <strong>View</strong> menu to make the inspector widget
1701 visible.</p>
1702 </li>
1703 <li>
1704 <p>With the patch selected, enable the <strong>Fixed Subdivisions</strong> checkbox.</p>
1705 </li>
1706 <li>
1707 <p>Use the <strong>Horizontal</strong> and <strong>Vertical</strong> numeric spinboxes to set the number of
1708 polygons to divide the patch into. The value can range from <strong>1</strong>, making the
1709 patch completely flat regardless of control point positions, up to a maximum of
1710 <strong>32</strong>. Each dimension can have a different subdivision level, if required.</p>
1711 </li>
1712 </ol>
1713 </div>
1714 </div>
1715 </div>
1716 <div class="sect2">
1717 <h3 id="_applying_textures">Applying textures</h3>
1718 <div class="paragraph">
1719 <p>When a brush or patch is created, it will be assigned a default texture. To
1720 apply a new texture, you must first select the brush, face or patch to be
1721 textured. There are two different selection commands:</p>
1722 </div>
1723 <table class="tableblock frame-all grid-all stretch">
1724 <colgroup>
1725 <col style="width: 25%;">
1726 <col style="width: 75%;">
1727 </colgroup>
1728 <tbody>
1729 <tr>
1730 <th class="tableblock halign-left valign-top"><p class="tableblock">Shift + Left click</p></th>
1731 <td class="tableblock halign-left valign-top"><p class="tableblock">Select an entire brush or patch. Any chosen texture will apply to all faces.</p></td>
1732 </tr>
1733 <tr>
1734 <th class="tableblock halign-left valign-top"><p class="tableblock">Ctrl + Shift + Left click</p></th>
1735 <td class="tableblock halign-left valign-top"><p class="tableblock">Select a single brush face for texturing. This command is only available in the
1736 3D camera view</p></td>
1737 </tr>
1738 </tbody>
1739 </table>
1740 <div class="paragraph">
1741 <p>Once you have selected the objects or faces to texture, you can use either the <strong>Media</strong>
1742 or the <strong>Textures</strong> tab to perform the texturing operation.</p>
1743 </div>
1744 <div class="sect3">
1745 <h4 id="MediaTab">The Media tab</h4>
1746 <div class="paragraph">
1747 <p>The <strong>Media</strong> tab shows a tree view which contains all of the textures available
1748 in the game installation. Selecting a texture in the tree will show a small
1749 preview swatch, along with some metadata about the texture definition.</p>
1750 </div>
1751 <div class="imageblock text-center">
1752 <div class="content">
1753 <img src="img/MediaTab.png" alt="MediaTab">
1754 </div>
1755 </div>
1756 <div class="paragraph">
1757 <p>To apply a texture to the selected brush, simply <strong>Double-click</strong> on a texture
1758 name in the tree. The tree view also offers a context menu with several options:</p>
1759 </div>
1760 <table class="tableblock frame-all grid-all stretch">
1761 <colgroup>
1762 <col style="width: 25%;">
1763 <col style="width: 75%;">
1764 </colgroup>
1765 <tbody>
1766 <tr>
1767 <th class="tableblock halign-left valign-top"><p class="tableblock">Load in Textures view</p></th>
1768 <td class="tableblock halign-left valign-top"><p class="tableblock">Load all textures contained within the selected folder, making them available on
1769 the <strong>Textures</strong> tab. This option is not available when a single texture is
1770 highlighted.</p></td>
1771 </tr>
1772 <tr>
1773 <th class="tableblock halign-left valign-top"><p class="tableblock">Apply to selection</p></th>
1774 <td class="tableblock halign-left valign-top"><p class="tableblock">Apply the highlighted texture to the current object. This is identical to the
1775 <strong>Double-click</strong> operation, and is only available for single textures, not
1776 folders.</p></td>
1777 </tr>
1778 <tr>
1779 <th class="tableblock halign-left valign-top"><p class="tableblock">Show Shader Definition</p></th>
1780 <td class="tableblock halign-left valign-top"><p class="tableblock">Show a syntax-highlighted text window containing the definition of the selected
1781 texture.</p></td>
1782 </tr>
1783 <tr>
1784 <th class="tableblock halign-left valign-top"><p class="tableblock">Selected/deselect elements using this shader</p></th>
1785 <td class="tableblock halign-left valign-top"><p class="tableblock">Select or deselect objects in the map which the highlighted texture is
1786 applied to. This can be used for organisational purposes, or to identify whether
1787 a texture is used or not.</p></td>
1788 </tr>
1789 <tr>
1790 <th class="tableblock halign-left valign-top"><p class="tableblock">Add to/Remove from favourites</p></th>
1791 <td class="tableblock halign-left valign-top"><p class="tableblock">Add or remove the selected texture from the favourites list. The favourites list
1792 provides easy access to a user-chosen group of textures, and can be accessed by
1793 choosing the <strong>Show Favourites</strong> radio button at the top of the panel.</p></td>
1794 </tr>
1795 </tbody>
1796 </table>
1797 </div>
1798 <div class="sect3">
1799 <h4 id="TexturesTab">The Textures tab</h4>
1800 <div class="paragraph">
1801 <p>The <strong>Textures</strong> tab provides a scrollable canvas containing preview swatches of
1802 all the textures which are currently loaded in the current map.</p>
1803 </div>
1804 <div class="imageblock text-center">
1805 <div class="content">
1806 <img src="img/TexturesTab.png" alt="TexturesTab">
1807 </div>
1808 </div>
1809 <div class="paragraph">
1810 <p>When DarkRadiant first starts up no textures are loaded and this panel is empty.
1811 New textures can only be loaded via the <strong>Media</strong> tab (described in the
1812 <a href="#MediaTab">previous section</a>), either by applying a texture directly to a
1813 brush, or by using the <strong>Load in Textures view</strong> command to explicitly load an
1814 entire folder of textures.</p>
1815 </div>
1816 <div class="paragraph">
1817 <p>Once textures are loaded onto the <strong>Textures</strong> tab, you can apply them to a
1818 selected object by <strong>Left clicking</strong> on them. By <strong>Right clicking</strong> on a texture you
1819 can access a context menu with a single command <strong>Seek in Media browser</strong>, which
1820 will highlight the clicked texture in the <strong>Media</strong> tab.</p>
1821 </div>
1822 </div>
1823 <div class="sect3">
1824 <h4 id="SurfaceInspector">Using the Surface Inspector</h4>
1825 <div class="paragraph">
1826 <p>Once a texture is applied via the Media or Textures tabs, you will most likely
1827 wish to adjust the alignment and scale of the texture on the brush or patch
1828 face. DarkRadiant provides the <strong>Surface Inspector</strong> for this purpose, which can
1829 be toggled with the <strong>S</strong> key or by choosing the option in the <strong>View</strong> menu.</p>
1830 </div>
1831 <div class="imageblock text-center">
1832 <div class="content">
1833 <img src="img/SurfaceInspector.png" alt="SurfaceInspector">
1834 </div>
1835 </div>
1836 <div class="paragraph">
1837 <p>The Surface Inspector can be used to adjust textures on a single brush or patch
1838 face, or several selected faces/brushes/patches at once. If more than one face
1839 is selected and these faces have different values for text boxes in the dialog,
1840 the text box will be greyed out, however it is still possible to use the buttons
1841 to make changes which will be applied uniformly to all selected faces.</p>
1842 </div>
1843 <table class="tableblock frame-all grid-all stretch">
1844 <colgroup>
1845 <col style="width: 25%;">
1846 <col style="width: 75%;">
1847 </colgroup>
1848 <tbody>
1849 <tr>
1850 <th class="tableblock halign-left valign-top"><p class="tableblock">Shader</p></th>
1851 <td class="tableblock halign-left valign-top"><p class="tableblock">This shows the full name of the texture applied to the selected
1852 face(s). You can use the folder button to bring up a new dialog which allows you
1853 to choose a new texture.</p></td>
1854 </tr>
1855 <tr>
1856 <th class="tableblock halign-left valign-top"><p class="tableblock">Horiz/Vert Shift</p></th>
1857 <td class="tableblock halign-left valign-top"><p class="tableblock">These text boxes show the current texture shift (translation)
1858 on the horizontal and vertical axes. The associated arrow buttons will increase
1859 or decrease the texture shift by the current <strong>Step</strong> value.</p></td>
1860 </tr>
1861 <tr>
1862 <th class="tableblock halign-left valign-top"><p class="tableblock">Horiz/Vert Scale</p></th>
1863 <td class="tableblock halign-left valign-top"><p class="tableblock">These show the current texture scale in the horizontal and
1864 vertical directions. The arrow buttons will increase or decrease the scale by
1865 the current <strong>Step</strong> value.</p></td>
1866 </tr>
1867 <tr>
1868 <th class="tableblock halign-left valign-top"><p class="tableblock">Rotation</p></th>
1869 <td class="tableblock halign-left valign-top"><p class="tableblock">Shows the current texture rotation, in degrees. The arrow buttons will
1870 rotate the texture clockwise or anticlockwise by the current <strong>Step</strong> value.</p></td>
1871 </tr>
1872 <tr>
1873 <th class="tableblock halign-left valign-top"><p class="tableblock">Fit Texture</p></th>
1874 <td class="tableblock halign-left valign-top"><p class="tableblock">These controls allow you to fit an exact number of copies of the
1875 texture across the face, so that the texture edges correspond to the face edges.
1876 The numeric spin boxes control how many copies of the texture are tiled, and the
1877 operation is performed by clicking the <strong>Fit</strong> button.</p></td>
1878 </tr>
1879 <tr>
1880 <th class="tableblock halign-left valign-top"><p class="tableblock">Align Texture</p></th>
1881 <td class="tableblock halign-left valign-top"><p class="tableblock">These buttons shift the texture so that the Top/Bottom/Left/Right
1882 edge of the face are aligned with a texture boundary, but otherwise do not
1883 modify the scaling of the texture (unlike the <strong>Fit</strong> operation).</p></td>
1884 </tr>
1885 <tr>
1886 <th class="tableblock halign-left valign-top"><p class="tableblock">Flip Texture</p></th>
1887 <td class="tableblock halign-left valign-top"><p class="tableblock">Flips (mirrors) the texture along the horizontal or vertical axis.</p></td>
1888 </tr>
1889 <tr>
1890 <th class="tableblock halign-left valign-top"><p class="tableblock">Natural</p></th>
1891 <td class="tableblock halign-left valign-top"><p class="tableblock">This button resets the texture to a default alignment and scale, based
1892 the location and size of the face.</p></td>
1893 </tr>
1894 <tr>
1895 <th class="tableblock halign-left valign-top"><p class="tableblock">Texture Lock</p></th>
1896 <td class="tableblock halign-left valign-top"><p class="tableblock">If this is enabled, the alignment of the texture will be preserved
1897 relative to the face if the brush or patch is moved in 3D space. If disabled,
1898 the texture itself will remain fixed in 3D space as the brush or patch moves,
1899 resulting in the alignment changing.</p>
1900 <p class="tableblock">Typically, if you have <strong>Fit</strong> a particular number of texture tiles across a face,
1901 you will want to preserve alignment with <strong>Texture Lock</strong>. Conversely, if the
1902 texture is applied to a much larger group of brushes with a common texture (that
1903 needs to align across all of the brushes, regardless of how they are moved or
1904 resized), you will want to disable <strong>Texture Lock</strong>.</p></td>
1905 </tr>
1906 </tbody>
1907 </table>
1908 </div>
1909 <div class="sect3">
1910 <h4 id="_using_the_shader_clipboard">Using the shader clipboard</h4>
1911 <div class="paragraph">
1912 <p>While constructing a map it will frequently be necessary to apply the same
1913 texture to several different surfaces such that they appear seamless in game. In
1914 order to assist with this, DarkRadiant provides a <strong>shader clipboard</strong> which
1915 allows shaders to be copied and pasted between primitives, and is independent of
1916 the main clipboard used for copying and pasting other objects.</p>
1917 </div>
1918 <div class="sect4">
1919 <h5 id="_copying_a_shader">Copying a shader</h5>
1920 <div class="paragraph">
1921 <p>There are two ways to copy a shader to the shader clipboard.</p>
1922 </div>
1923 <div class="olist arabic">
1924 <ol class="arabic">
1925 <li>
1926 <p>Select a <em>single face</em> (not an entire brush) with <strong>Ctrl + Shift + Left click</strong>
1927 in the 3D view, then choose <strong>Edit &#8594; Copy shader</strong>.</p>
1928 </li>
1929 <li>
1930 <p>Directly <strong>Middle click</strong> the face in the 3D view (there is no need to select
1931 it first).</p>
1932 </li>
1933 </ol>
1934 </div>
1935 <div class="paragraph">
1936 <p>In both cases, the <strong>ShaderClipboard</strong> section of the bottom status bar will
1937 update to show the new value of the shader clipboard. If the <strong>Media</strong> or
1938 <strong>Textures</strong> tab is visible, their contents will also update to view the selected
1939 shader.</p>
1940 </div>
1941 <div class="admonitionblock note">
1942 <table>
1943 <tr>
1944 <td class="icon">
1945 <img src="img/note.png" alt="Note">
1946 </td>
1947 <td class="content">
1948 Selecting a texture explicitly in the <strong>Media</strong> or <strong>Textures</strong> tabs will also
1949 update the shader clipboard with the selected shader.
1950 </td>
1951 </tr>
1952 </table>
1953 </div>
1954 </div>
1955 <div class="sect4">
1956 <h5 id="_pasting_a_shader">Pasting a shader</h5>
1957 <div class="paragraph">
1958 <p>Once a shader is on the shader clipboard, it can be pasted onto another surface
1959 in a number of ways:</p>
1960 </div>
1961 <div class="olist arabic">
1962 <ol class="arabic">
1963 <li>
1964 <p>Select the destination face with <strong>Ctrl + Shift + Left click</strong>, then choose
1965 <strong>Edit &#8594; Paste shader</strong> or <strong>Edit &#8594; Paste shader (natural)</strong>.</p>
1966 </li>
1967 <li>
1968 <p>Directly <strong>Middle click</strong> the destination face while holding down either <strong>Ctrl</strong>
1969 (to paste the shader with projected coordinates) or <strong>Shift</strong> (to paste the shader
1970 with natural coordinates).</p>
1971 </li>
1972 </ol>
1973 </div>
1974 <div class="sidebarblock">
1975 <div class="content">
1976 <div class="title">Natural or projected pasting</div>
1977 <div class="paragraph">
1978 <p>The difference between natural and projected coordinates is apparent when
1979 pasting a shader onto a curved patch.</p>
1980 </div>
1981 <div class="paragraph">
1982 <p>With <strong>projected</strong> coordinates (<strong>Ctrl + Middle click</strong>) the texture on the patch
1983 will be aligned identically to the texture on the source face, which might
1984 result in a stretched texture depending on the angle between the patch and the
1985 source face.</p>
1986 </div>
1987 <div class="paragraph">
1988 <p>With <strong>natural</strong> coordinates (<strong>Shift + Middle click</strong>) the texture will flow over
1989 the curved surface in a more natural manner.</p>
1990 </div>
1991 <div class="paragraph">
1992 <p>When pasting a shader onto a flat brush face, there may be little or no
1993 difference between the two options.</p>
1994 </div>
1995 </div>
1996 </div>
1997 </div>
1998 </div>
1999 </div>
2000 <div class="sect2">
2001 <h3 id="_working_with_entities">Working with entities</h3>
2002 <div class="paragraph">
2003 <p>If brushes are the bricks and mortar of a map (often literally), entities are
2004 its fixtures and fittings. Every object in a map which "does something" other
2005 than form part of the level geometry is an entity: lights, audio speakers,
2006 particle emitters, static meshes, animated creatures or machinery. There are
2007 also various functional entity types which provide vital metadata to the game
2008 engine, such as determining where the player should start, or how creatures
2009 should navigate between locations.</p>
2010 </div>
2011 <div class="paragraph">
2012 <p>DarkRadiant provides certain common functionality to all entities, such as the
2013 ability to edit properties using the <strong>Entity</strong> tab. Particular entity types are
2014 sufficiently common, however, that they have their own dedicated creation and
2015 editing tools.</p>
2016 </div>
2017 <div class="dlist">
2018 <dl>
2019 <dt class="hdlist1"><strong>Light</strong></dt>
2020 <dd>
2021 <p>Every map requires at least one light source in order to render
2022 anything in game. A light occupies a rectangular volume, which can be created
2023 and resized much like a brush, and has properties to determine its colour,
2024 visible shape and falloff pattern in three dimensions. Lights can optionally
2025 cast shadows, and can even be animated to flicker or flash.</p>
2026 </dd>
2027 <dt class="hdlist1"><strong>Model (func_static)</strong></dt>
2028 <dd>
2029 <p>Model entities represent geometry that is not compiled
2030 as part of the map itself. The model geometry can either be derived from brushes
2031 and patches created inside DarkRadiant, or from an external model file in ASE or
2032 LWO format. Model files are the primary mechanism for including fine detail in a
2033 map which would be cumbersome to create with brushes and patches.</p>
2034 </dd>
2035 <dt class="hdlist1"><strong>Speaker</strong></dt>
2036 <dd>
2037 <p>Essentially the audio equivalent of a light, a speaker entity
2038 represents the point from which an in-game sound source will emanate. It has
2039 properties to control its size and falloff, and optionally override certain
2040 properties of the sound shader itself, such as volume.</p>
2041 </dd>
2042 <dt class="hdlist1"><strong>Player start (info_player_start)</strong></dt>
2043 <dd>
2044 <p>This entity tells the game engine where to
2045 place the player when a map is first loaded. A map without such an entity will
2046 not be playable.</p>
2047 </dd>
2048 </dl>
2049 </div>
2050 <div class="sect3">
2051 <h4 id="CreatingLights">Creating lights</h4>
2052 <div class="paragraph">
2053 <p>To create a light, <strong>Right click</strong> in the 2D view and choose <strong>Create light…</strong>.
2054 The position and size of the light volume depends on the current selection:</p>
2055 </div>
2056 <div class="ulist">
2057 <ul>
2058 <li>
2059 <p>If <em>nothing</em> is selected, then a light volume will be created at the clicked
2060 position with a default size.</p>
2061 </li>
2062 <li>
2063 <p>If a <em>single brush</em> is selected, the brush will be deleted and the light
2064 volume will match the size and position of the brush.</p>
2065 </li>
2066 <li>
2067 <p>If <em>several brushes</em> are selected, then all selected brushes will be deleted
2068 and the light volume will be sized according to the bounding box of the
2069 brushes (i.e. the smallest box that would contain all of the brushes).</p>
2070 </li>
2071 </ul>
2072 </div>
2073 <div class="paragraph">
2074 <p>Unselected lights are shown in the 2D view as small boxes, while selected lights
2075 also show the boundaries of the light volume.</p>
2076 </div>
2077 <div class="imageblock text-center">
2078 <div class="content">
2079 <img src="img/LightSelectedAndUnselected.png" alt="LightSelectedAndUnselected">
2080 </div>
2081 <div class="title">Figure 7. Light entity selected (left) and unselected (right)</div>
2082 </div>
2083 <div class="paragraph">
2084 <p>A selected light entity can be moved by dragging inside the small center box,
2085 and it can be resized by dragging outside the edge of the light volume. Unlike
2086 brushes, light volumes will by default resize symmetrically, so that the center
2087 point does not move during the resize.</p>
2088 </div>
2089 <div class="admonitionblock note">
2090 <table>
2091 <tr>
2092 <td class="icon">
2093 <img src="img/note.png" alt="Note">
2094 </td>
2095 <td class="content">
2096 Although light volumes can be resized like brushes, their shape can never
2097 be changed; every light is an axis-aligned cuboid. This does not, however, mean
2098 that they need to <em>look</em> rectangular in game. See the <a href="#LightInspector">next
2099 section</a> for details on how to change the falloff texture using the light
2100 inspector.
2101 </td>
2102 </tr>
2103 </table>
2104 </div>
2105 <div class="paragraph">
2106 <p>There are a couple of options on the top toolbar which control the display and
2107 behaviour of light volumes:</p>
2108 </div>
2109 <table class="tableblock frame-all grid-all stretch">
2110 <colgroup>
2111 <col style="width: 7.1428%;">
2112 <col style="width: 21.4285%;">
2113 <col style="width: 71.4287%;">
2114 </colgroup>
2115 <tbody>
2116 <tr>
2117 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/view_show_lightradii.png" alt="view show lightradii" width="24"></span></p></th>
2118 <th class="tableblock halign-left valign-top"><p class="tableblock">Show all light volumes</p></th>
2119 <td class="tableblock halign-left valign-top"><p class="tableblock">If enabled, light volume boundaries will be rendered in the 2D view for <em>all</em>
2120 light entities, not just selected entities. The default behaviour is to show
2121 only the center box for unselected light entities.</p></td>
2122 </tr>
2123 <tr>
2124 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/dragresize_symm.png" alt="dragresize symm" width="24"></span></p></th>
2125 <th class="tableblock halign-left valign-top"><p class="tableblock">Drag-resize entities symmetrically</p></th>
2126 <td class="tableblock halign-left valign-top"><p class="tableblock">If enabled (the default), light entities will be resized symmetrically, without
2127 moving the center point. If disabled, lights will be resized like brushes:
2128 dragging an edge will move only that edge, while the opposite edge remains
2129 fixed.</p></td>
2130 </tr>
2131 </tbody>
2132 </table>
2133 <div class="sect4">
2134 <h5 id="LightInspector">The light inspector</h5>
2135 <div class="paragraph">
2136 <p>When initially created, a light is pure white in colour and has an unrealistic
2137 rectangular illumination pattern matching its shape. You can change these
2138 properties using the light inspector, which is accessed with the <strong>L</strong> key.</p>
2139 </div>
2140 <div class="imageblock text-center">
2141 <div class="content">
2142 <img src="img/LightInspector.png" alt="LightInspector">
2143 </div>
2144 </div>
2145 <div class="dlist">
2146 <dl>
2147 <dt class="hdlist1"><strong>Light volume (omni vs projected)</strong></dt>
2148 <dd>
2149 <p>The majority of lights in a map will be the
2150 default, omnidirectional shape. An omni light is a simple axis-aligned cuboid
2151 which emits light in all directions from its center to its edges.</p>
2152 <div class="paragraph">
2153 <p>A projected light is pyramid-shaped, and emits light from the tip of the pyramid
2154 towards the base. Projected lights behave more like spotlights in real-life, and
2155 can be used to highlight particular areas or project images of windows onto the
2156 floor.</p>
2157 </div>
2158 </dd>
2159 <dt class="hdlist1"><strong>Colour</strong></dt>
2160 <dd>
2161 <p>Use the colour selector button to display a standard colour selection
2162 dialog, or enter the RGB values directly using the text box. As well as changing
2163 the hue, the light colour also governs the overall brightness of the light.</p>
2164 </dd>
2165 <dt class="hdlist1"><strong>Texture</strong></dt>
2166 <dd>
2167 <p>The falloff texture controls the shape of the lit area when rendered
2168 in-game; the square texture chosen here will be mapped directly onto the
2169 rectangular shape of the light volume. Light textures can be simple, such as the
2170 generic circular gradient of <code>biground1</code>, or much more complex, including
2171 multiple colours or animation.</p>
2172 </dd>
2173 <dt class="hdlist1"><strong>Options</strong></dt>
2174 <dd>
2175 <p>There are a few light-propagation options which are mostly used to
2176 tweak performance. In particular, disabling shadows for any light which does
2177 not actually <em>need</em> to cast shadows can give a significant boost to rendering
2178 speed.</p>
2179 </dd>
2180 </dl>
2181 </div>
2182 </div>
2183 </div>
2184 <div class="sect3">
2185 <h4 id="CreatingModels">Creating models</h4>
2186 <div class="paragraph">
2187 <p>Static models can be used to provide fine details in a map which would be
2188 difficult or impossible to create in the editor with brushes or patches. Models
2189 are created with an external 3D application such as Blender, Lightwave or Maya,
2190 and saved into the game asset tree in LWO or ASE format.</p>
2191 </div>
2192 <div class="paragraph">
2193 <p>To insert a model, ensure that nothing is selected, then <strong>Right click</strong> in the 2D
2194 view and choose <strong>Create model…</strong>. DarkRadiant will show the model selector
2195 dialog:</p>
2196 </div>
2197 <div class="imageblock text-center">
2198 <div class="content">
2199 <img src="img/ModelSelector.png" alt="ModelSelector">
2200 </div>
2201 </div>
2202 <div class="paragraph">
2203 <p>In the top-left of the model selector window is a tree of all available models
2204 in the game installation. Models may have different <em>skins</em>, which are variants
2205 of the same model with different textures applied. If a model has skins
2206 available, these will be listed as children of the model entry in the tree.</p>
2207 </div>
2208 <div class="paragraph">
2209 <p>Choosing a model or one of its skins will show a preview render in the large
2210 widget on the right-hand side. Various metadata such as the polygon count and
2211 the applied textures are also shown in table at the lower left.</p>
2212 </div>
2213 <div class="paragraph">
2214 <p>When you have chosen the desired model, click <strong>OK</strong> to insert it into the map.
2215 The model will be inserted at the position where you originally right-clicked to
2216 show the model chooser.</p>
2217 </div>
2218 </div>
2219 <div class="sect3">
2220 <h4 id="_creating_a_player_start_marker">Creating a player start marker</h4>
2221 <div class="paragraph">
2222 <p>The game requires a special entity (<code>info_player_start</code>) to mark the position at
2223 which the player should enter the map. Without such an entity the map will be
2224 unplayable.</p>
2225 </div>
2226 <div class="paragraph">
2227 <p>To create this entity, ensure that nothing is selected then <strong>Right click</strong> in the
2228 2D view and choose <strong>Create player start here</strong>. DarkRadiant will create the
2229 player start entity at the clicked position.</p>
2230 </div>
2231 <div class="paragraph">
2232 <p>Since it makes no sense to have more than one player start location, DarkRadiant
2233 will not enable the <strong>Create player start here</strong> menu option if there is already
2234 an <code>info_player_start</code> in the map. Instead, you may choose <strong>Move player start
2235 here</strong> to move the existing entity to the clicked position.</p>
2236 </div>
2237 </div>
2238 <div class="sect3">
2239 <h4 id="_creating_other_entity_types">Creating other entity types</h4>
2240 <div class="paragraph">
2241 <p>Entity types without a dedicated item in the right-click menu are created using
2242 the generic <strong>Create entity…</strong> option, which displays a dialog very similar to the
2243 <a href="#CreatingModels">model selector</a>:</p>
2244 </div>
2245 <div class="imageblock text-center">
2246 <div class="content">
2247 <img src="img/EntityClassSelector.png" alt="EntityClassSelector">
2248 </div>
2249 </div>
2250 <div class="paragraph">
2251 <p>Just like the model selector, the entity selector displays a tree of all
2252 available entity types in the game installation, and a large preview widget
2253 which shows an approximate rendering of the entity, if appropriate. Purely
2254 functional entity types such as <code>info_location</code> or <code>info_player_start</code> do not
2255 have any visible appearance and their render preview will be blank.</p>
2256 </div>
2257 <div class="paragraph">
2258 <p>Some entity types have a short textual description giving information about
2259 their usage; if present, this is displayed in the text box underneath the entity
2260 class tree.</p>
2261 </div>
2262 <div class="paragraph">
2263 <p>After selecting the desired entity type in the tree, click the <strong>Add</strong> button to
2264 insert an instance of the entity into the map at the right-clicked location. If
2265 the selected entity type requires a brush selection and no brush is selected, a
2266 warning will be shown at this point.</p>
2267 </div>
2268 </div>
2269 <div class="sect3">
2270 <h4 id="EntityInspector">Editing entity properties</h4>
2271 <div class="paragraph">
2272 <p>Every entity has a list of key/value pairs known as <em>properties</em> or <em>spawnargs</em>.
2273 These properties are displayed on the <strong>Entity</strong> tab of the editing panel.</p>
2274 </div>
2275 <div class="imageblock text-center">
2276 <div class="content">
2277 <img src="img/EntityInspector.png" alt="EntityInspector">
2278 </div>
2279 </div>
2280 <div class="paragraph">
2281 <p>The entity panel lists all of the properties of the currently-selected entity,
2282 showing each property&#8217;s name, its current value, and an icon representing its
2283 type (boolean, vector, text etc) if known. Selecting a property will populate
2284 the two text boxes in the center of the widget with the property name and value,
2285 allowing the value to be edited. If the selected property is of a known type,
2286 the panel at the bottom will show a custom widget appropriate for editing the
2287 particular property, e.g. three separate numeric spinboxes for a vector
2288 property, a colour selector widget for a colour property, and so on.</p>
2289 </div>
2290 <div class="dlist">
2291 <dl>
2292 <dt class="hdlist1"><strong>Changing a property value</strong></dt>
2293 <dd>
2294 <p>To change the value of the selected property,
2295 simply enter the new value in the lower text box, then hit <strong>Enter</strong> or click the
2296 green tick button. If the property has a type-specific editing widget, you can
2297 also change its value using the controls in this widget.</p>
2298 </dd>
2299 <dt class="hdlist1"><strong>Adding a new property</strong></dt>
2300 <dd>
2301 <p>There are two different ways to add a new property:</p>
2302 <div class="olist arabic">
2303 <ol class="arabic">
2304 <li>
2305 <p>Enter a new property name in the upper text box (which shows the selected
2306 property name), and hit <strong>Enter</strong>. This does not rename the selected property, but
2307 adds a new property with the edited name and the current value.</p>
2308 </li>
2309 <li>
2310 <p><strong>Right click</strong> in the list of properties and choose <strong>Add property</strong> from the
2311 context menu. This will display a new dialog listing all known properties along
2312 with their descriptive text (if available). Selecting a property in this dialog
2313 and choosing <strong>OK</strong> will add the property to the entity with a default value of
2314 "-", which can then be edited in the entity panel itself.</p>
2315 </li>
2316 </ol>
2317 </div>
2318 </dd>
2319 <dt class="hdlist1"><strong>Deleting a property</strong></dt>
2320 <dd>
2321 <p>To delete the selected property, <strong>Right click</strong> on the
2322 property in the list and choose <strong>Delete property</strong>.</p>
2323 </dd>
2324 </dl>
2325 </div>
2326 <div class="paragraph">
2327 <p>The entity panel provides two options controlling its behaviour:</p>
2328 </div>
2329 <table class="tableblock frame-all grid-all stretch">
2330 <colgroup>
2331 <col style="width: 25%;">
2332 <col style="width: 75%;">
2333 </colgroup>
2334 <tbody>
2335 <tr>
2336 <th class="tableblock halign-left valign-top"><p class="tableblock">Show inherited properties</p></th>
2337 <td class="tableblock halign-left valign-top"><p class="tableblock">If checked, all properties that apply to the
2338 selected entity will be shown, including those which are inherited from the
2339 entity type declaration in the game installation. If unchecked, only those
2340 properties explicitly set on this particular entity (and stored in the map file)
2341 will be shown.</p>
2342 <p class="tableblock">You can change the value of an inherited property by selecting it and entering a
2343 new value in the entity panel; this will create a new explicit property on the
2344 entity which overrides the inherited default.</p></td>
2345 </tr>
2346 <tr>
2347 <th class="tableblock halign-left valign-top"><p class="tableblock">Show help</p></th>
2348 <td class="tableblock halign-left valign-top"><p class="tableblock">Enables or disables the text widget at the bottom of the panel
2349 which shows a brief explanation of certain properties. If a property has help
2350 text available, the question mark icon will be shown in the <strong>?</strong> column.</p></td>
2351 </tr>
2352 </tbody>
2353 </table>
2354 </div>
2355 </div>
2356 <div class="sect2">
2357 <h3 id="_reparenting_primitives">Reparenting primitives</h3>
2358 <div class="paragraph">
2359 <p>Whenever a new brush or patch is created, it will automatically be made a child
2360 of the special <strong>worldspawn</strong> entity, which serves as the default entity
2361 containing all of the primitives which define the world geometry. However,
2362 <strong>worldspawn</strong> is not the only entity which can contain brushes and patches as
2363 children.</p>
2364 </div>
2365 <div class="paragraph">
2366 <p>When you create a model using the <a href="#CreatingModels">model selector</a>, DarkRadiant
2367 will insert a type of entity called a <strong>func_static</strong> into the map to represent
2368 the model geometry. A <strong>func_static</strong> can contain a model file loaded from disk in
2369 LWO or ASE format, but it can also be used as a parent for one or more
2370 primitives created within DarkRadiant. In either case, the behaviour of
2371 <strong>func_static</strong> is the same: it represents a static mesh which is rendered in
2372 game but is considered separate from the main world geometry, meaning that it
2373 does not participate in map compilation, will not seal the map from leaks, and
2374 will not cause intersecting brushes to be subdivided.</p>
2375 </div>
2376 <div class="paragraph">
2377 <p>It is therefore often useful to make certain brushes and patches — typically
2378 those which represent "fine detail" rather than entire walls, floors and the
2379 like — into <strong>func_static</strong> entities to improve in-game performance and reduce the
2380 chances for map compilation problems caused by excessively complex world
2381 geometry.</p>
2382 </div>
2383 <div class="sect3">
2384 <h4 id="_converting_primitives_into_func_static">Converting primitives into func_static</h4>
2385 <div class="paragraph">
2386 <p>To convert one or more existing primitives into a <strong>func_static</strong> entity, simply
2387 select all of the primitives, right-click in the 2D window, and choose <strong>Convert
2388 to func_static</strong>.</p>
2389 </div>
2390 <div class="paragraph">
2391 <p>After converting a primitive, a number of changes are noticeable:</p>
2392 </div>
2393 <div class="olist arabic">
2394 <ol class="arabic">
2395 <li>
2396 <p>The primitive may be drawn in a different colour.</p>
2397 </li>
2398 <li>
2399 <p>The primitive will no longer be resizeable by dragging its boundary with the
2400 mouse.</p>
2401 </li>
2402 <li>
2403 <p>When the primitive is selected, the <strong>Entity Inspector</strong> will no longer show the
2404 <strong>worldspawn</strong> entity, but a new entity with a <strong>classname</strong> of <code>func_static</code>. You
2405 can set spawnargs on this entity like any other (including giving it a custom
2406 name).</p>
2407 </li>
2408 <li>
2409 <p>Selecting any primitive contained by a <strong>func_static</strong> will cause a small X/Y/Z
2410 axis widget to be drawn at the entity&#8217;s origin position (which may be inside one
2411 of the primitives, or outside all of them, depending on their layout).</p>
2412 </li>
2413 <li>
2414 <p>If there are multiple primitives contained within a single entity, selecting
2415 any individual primitive will cause all of the entity&#8217;s primitives to be
2416 selected.</p>
2417 </li>
2418 </ol>
2419 </div>
2420 </div>
2421 <div class="sect3">
2422 <h4 id="_selecting_individual_child_primitives">Selecting individual child primitives</h4>
2423 <div class="paragraph">
2424 <p>As mentioned in the previous section, selecting any primitive which comprises
2425 part of a <strong>func_static</strong> will cause the entire entity and all of its child
2426 primitives to be selected together. This allows you to easily move the entire
2427 static object by simply dragging any one of its primitives.</p>
2428 </div>
2429 <div class="paragraph">
2430 <p>However, it is still possible to perform operations on a single primitive, for
2431 example resizing a brush, by selecting it with the <strong>TAB</strong> key. Each press of
2432 <strong>TAB</strong> will cause DarkRadiant to select a different primitive contained within
2433 the entity, after which it will return to selecting the entire entity. With only
2434 a single primitive selected, all of the normal operations are possible on that
2435 primitive, for example deleting or resizing it.</p>
2436 </div>
2437 <div class="paragraph">
2438 <p>The <a href="#EntityInspector">entity inspector</a> widget makes it clear whether you have
2439 selected an entity or a primitive within that entity, using the text above the
2440 list of entity properties. If an entire entity is selected, the text will appear
2441 similar to <code>Entity&nbsp;1</code>, whereas with a primitive selected it will read
2442 <code>Entity&nbsp;1,&nbsp;Primitive&nbsp;1</code>.</p>
2443 </div>
2444 </div>
2445 <div class="sect3">
2446 <h4 id="_adding_or_removing_primitives">Adding or removing primitives</h4>
2447 <div class="paragraph">
2448 <p>Once you have created a <strong>func_static</strong> or similar entity from a number of
2449 primitives, you can add or remove primitives without needing to create a new
2450 entity from scratch.</p>
2451 </div>
2452 <div class="dlist">
2453 <dl>
2454 <dt class="hdlist1"><strong>Adding a primitive</strong></dt>
2455 <dd>
2456 <p>Select the entity, then expand the selection (i.e. using
2457 <strong>Shift + Left click</strong>) to include one or more existing primitives to add to this
2458 entity. Then choose <strong>Edit &#8594; Reparent primitives</strong>.</p>
2459 </dd>
2460 <dt class="hdlist1"><strong>Removing a primitive</strong></dt>
2461 <dd>
2462 <p>Use the <strong>TAB</strong> key to select the individual primitive to
2463 remove (you must do this even if there is only one primitive in the entity),
2464 then choose <strong>Edit &#8594; Reparent primitives to worldspawn</strong>. The removed primitive
2465 will still exist in the map but it will be a regular worldspawn brush or patch,
2466 not parented to any other entity.</p>
2467 </dd>
2468 <dt class="hdlist1"><strong>Unparenting all primitives</strong></dt>
2469 <dd>
2470 <p>With the entity selected, simply right-click in
2471 the 2D view and choose <strong>Revert to worldspawn</strong> to turn all of the primitives
2472 back into worldspawn.</p>
2473 </dd>
2474 </dl>
2475 </div>
2476 </div>
2477 </div>
2478 <div class="sect2">
2479 <h3 id="_compiling_a_map">Compiling a map</h3>
2480 <div class="paragraph">
2481 <p>DarkRadiant does not include functionality for compiling a map into the form
2482 needed by the game engine; instead, you must use external tools or the map
2483 compiler built into the game itself.</p>
2484 </div>
2485 <div class="paragraph">
2486 <p>For Doom 3 and the Dark Mod, the following commands are used within the in-game
2487 console (which can normally be accessed with the key immediately above <code>TAB</code>):</p>
2488 </div>
2489 <div class="hdlist">
2490 <table>
2491 <tr>
2492 <td class="hdlist1">
2493 <code>dmap&nbsp;&lt;mymapname.map&gt;</code>
2494 </td>
2495 <td class="hdlist2">
2496 <p>Compile the map called <code>mymapname.map</code>, which must be
2497 located within the <code>maps</code> directory of the mod installation. If there are any
2498 problems compiling the map (e.g. a leak), the error will be displayed in the
2499 console output.</p>
2500 </td>
2501 </tr>
2502 <tr>
2503 <td class="hdlist1">
2504 <code>map&nbsp;&lt;mymapname.map&gt;</code>
2505 </td>
2506 <td class="hdlist2">
2507 <p>Load the compiled map <code>mymapname.map</code> into the game
2508 engine and start playing it immediately.</p>
2509 </td>
2510 </tr>
2511 </table>
2512 </div>
2513 <div class="admonitionblock tip">
2514 <table>
2515 <tr>
2516 <td class="icon">
2517 <img src="img/tip.png" alt="Tip">
2518 </td>
2519 <td class="content">
2520 When compiling and testing maps, it may be helpful to set your game to
2521 play in windowed mode, with a reduced resolution. This will allow both the game
2522 and DarkRadiant to be visible on the screen as separate windows, which you can
2523 easily switch between during the compile and test cycle.
2524 </td>
2525 </tr>
2526 </table>
2527 </div>
2528 <div class="sect3">
2529 <h4 id="_preventing_leaks">Preventing leaks</h4>
2530 <div class="paragraph">
2531 <p>A map "leak" occurs when the play area is not fully enclosed with a complete
2532 shell of opaque brushes. If the map leaks, compilation will fail and the map
2533 will not be playable.</p>
2534 </div>
2535 <div class="paragraph">
2536 <p>In order to minimise the likelihood of a map leak, ensure that your map has all
2537 of the following properties:</p>
2538 </div>
2539 <div class="ulist">
2540 <ul>
2541 <li>
2542 <p>The map interior is <em>completely</em> sealed from the exterior void by brushes (not
2543 patches). It is much easier to achieve this by building up a map carefully,
2544 making good use of the grid snapping functionality, rather than haphazardly
2545 throwing brushes together and hoping to seal them later.</p>
2546 </li>
2547 <li>
2548 <p>All of the sealing brushes have an opaque texture. Skybox textures are
2549 considered opaque and are OK, however semi-transparent or perforated mesh
2550 textures are not.</p>
2551 </li>
2552 <li>
2553 <p>The origin point of <em>every</em> entity in the map lies within the sealed map
2554 interior. It is OK if a large model extends outside of the map, provided that
2555 its origin point is on the inside.</p>
2556 </li>
2557 </ul>
2558 </div>
2559 <div class="admonitionblock warning">
2560 <table>
2561 <tr>
2562 <td class="icon">
2563 <img src="img/warning.png" alt="Warning">
2564 </td>
2565 <td class="content">
2566 Do <strong>not</strong> be tempted to avoid leaks by enclosing your entire map in a
2567 single huge box. This may seem to solve the problem (the map will indeed not
2568 leak), but it completely negates the important performance optimisations that
2569 the map compiler carries out when it "flood fills" the map interior.
2570 </td>
2571 </tr>
2572 </table>
2573 </div>
2574 </div>
2575 <div class="sect3">
2576 <h4 id="PointFile">Locating leaks with a pointfile</h4>
2577 <div class="paragraph">
2578 <p>No matter how hard you try to avoid leaks, occasionally they will happen. In
2579 this case the <strong>pointfile</strong> functionality is helpful to identify the location of
2580 the leak.</p>
2581 </div>
2582 <div class="paragraph">
2583 <p>After the map compilation has failed with a leak, return to DarkRadiant and
2584 choose <strong>Pointfile</strong> from the <strong>File</strong> menu. This will automatically load the point
2585 file associated with the current map, which contains a series of points
2586 identifying the path to the leak. This path will be rendered as a bright red
2587 line in both the 2D and 3D views:</p>
2588 </div>
2589 <div class="imageblock text-center">
2590 <div class="content">
2591 <img src="img/Pointfile.png" alt="Pointfile">
2592 </div>
2593 <div class="title">Figure 8. A pointfile rendered in both 3D and 3D views</div>
2594 </div>
2595 <div class="paragraph">
2596 <p>In this example we can clearly see that the map has leaked because the far wall
2597 brush does not join up with the ceiling.</p>
2598 </div>
2599 </div>
2600 </div>
2601 </div>
2602 </div>
2603 <div class="sect1">
2604 <h2 id="_organising_a_map">Organising a map</h2>
2605 <div class="sectionbody">
2606 <div class="paragraph">
2607 <p>Since a fully developed Dark Mod map is large and complex, DarkRadiant provides
2608 several tools to make organising a large map easier. Objects can be grouped,
2609 sorted into user-defined layers and filtered using various criteria, while the
2610 prefab system allows large chunks of map to be reused or shared with other
2611 mappers.</p>
2612 </div>
2613 <div class="sect2">
2614 <h3 id="Group">Grouping objects</h3>
2615 <div class="paragraph">
2616 <p>DarkRadiant allows a number of objects to be grouped together, so that they can
2617 be selected and manipulated as a single unit.</p>
2618 </div>
2619 <div class="paragraph">
2620 <p>To <strong>create</strong> a group:</p>
2621 </div>
2622 <div class="olist arabic">
2623 <ol class="arabic">
2624 <li>
2625 <p>Select several objects.</p>
2626 </li>
2627 <li>
2628 <p><strong>Right-click</strong> in the 2D window to show the context menu.</p>
2629 </li>
2630 <li>
2631 <p>Choose <strong>Group Selection</strong>.</p>
2632 </li>
2633 </ol>
2634 </div>
2635 <div class="paragraph">
2636 <p>Once the objects are in a group, selecting any object in the group will
2637 automatically select all other objects in the same group.</p>
2638 </div>
2639 <div class="paragraph">
2640 <p>To <strong>remove</strong> a group, select the group then choose <strong>Ungroup Selection</strong> from the
2641 2D view context menu.</p>
2642 </div>
2643 <div class="admonitionblock note">
2644 <table>
2645 <tr>
2646 <td class="icon">
2647 <img src="img/note.png" alt="Note">
2648 </td>
2649 <td class="content">
2650 Groups can be nested, by creating a group that includes one or more
2651 existing groups. When you ungroup such a nested group, the original component
2652 groups will be restored.
2653 </td>
2654 </tr>
2655 </table>
2656 </div>
2657 </div>
2658 <div class="sect2">
2659 <h3 id="WorkingWithPrefabs">Working with prefabs</h3>
2660 <div class="paragraph">
2661 <p>DarkRadiant allows a collection of objects to be saved to disk as a <strong>prefab</strong>,
2662 which can then be imported into other maps. You can use prefabs to store
2663 anything from a single small object to a vast section of map geometry complete
2664 with lights and AI.</p>
2665 </div>
2666 <div class="sect3">
2667 <h4 id="_exporting_to_a_prefab">Exporting to a prefab</h4>
2668 <div class="olist arabic">
2669 <ol class="arabic">
2670 <li>
2671 <p>Select the objects in the map that you wish to include in the prefab.</p>
2672 </li>
2673 <li>
2674 <p>From the <strong>File</strong> menu, choose <strong>Save selected as prefab&#8230;&#8203;</strong></p>
2675 </li>
2676 <li>
2677 <p>Use the file chooser dialog to choose a location and name for the prefab file.</p>
2678 </li>
2679 </ol>
2680 </div>
2681 <div class="admonitionblock tip">
2682 <table>
2683 <tr>
2684 <td class="icon">
2685 <img src="img/tip.png" alt="Tip">
2686 </td>
2687 <td class="content">
2688 Unlike actual <code>.map</code> files which must be accessible by the game engine,
2689 prefabs are a DarkRadiant-only feature that have no significance to the engine.
2690 You are therefore free to store prefab files wherever you wish, either inside or
2691 outside the game installation directory.
2692 </td>
2693 </tr>
2694 </table>
2695 </div>
2696 </div>
2697 <div class="sect3">
2698 <h4 id="ImportPrefab">Importing a prefab</h4>
2699 <div class="paragraph">
2700 <p>Either right-click in the 2D window and choose <strong>Insert prefab&#8230;&#8203;</strong>, or open the
2701 <strong>File</strong> menu and choose <strong>Import prefab&#8230;&#8203;</strong>. This will show the prefab browser.</p>
2702 </div>
2703 <div class="imageblock text-center">
2704 <div class="content">
2705 <img src="img/PrefabChooser.png" alt="PrefabChooser">
2706 </div>
2707 </div>
2708 <div class="paragraph">
2709 <p>Like the model selector, the prefab selector shows a tree of available prefabs
2710 on the left, and a preview window on the right giving an idea of what the prefab
2711 looks like. Using the radio buttons at the top of the window, you can choose
2712 whether to browse prefabs contained within the game installation, or within a
2713 custom directory of your choice.</p>
2714 </div>
2715 <div class="paragraph">
2716 <p>The preview window functions much like the 3D view in the main application:
2717 <strong>right click</strong> to enter or leave camera mode, which enables the following motion
2718 commands:</p>
2719 </div>
2720 <table class="tableblock frame-all grid-all stretch">
2721 <colgroup>
2722 <col style="width: 25%;">
2723 <col style="width: 75%;">
2724 </colgroup>
2725 <tbody>
2726 <tr>
2727 <th class="tableblock halign-left valign-top"><p class="tableblock">Mouse move</p></th>
2728 <td class="tableblock halign-left valign-top"><p class="tableblock">Change the camera view direction (pan or tilt)</p></td>
2729 </tr>
2730 <tr>
2731 <th class="tableblock halign-left valign-top"><p class="tableblock">Mouse wheel</p></th>
2732 <td class="tableblock halign-left valign-top"><p class="tableblock">Zoom the camera</p></td>
2733 </tr>
2734 <tr>
2735 <th class="tableblock halign-left valign-top"><p class="tableblock">Up/Down arrow</p></th>
2736 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the camera forwards or backwards</p></td>
2737 </tr>
2738 <tr>
2739 <th class="tableblock halign-left valign-top"><p class="tableblock">Left/Right arrow</p></th>
2740 <td class="tableblock halign-left valign-top"><p class="tableblock">Move the camera left or right</p></td>
2741 </tr>
2742 </tbody>
2743 </table>
2744 <div class="paragraph">
2745 <p>When you have chosen the desired prefab, click <strong>OK</strong> to insert it into the map.
2746 Before inserting the prefab, you can use the
2747 <strong>Create&nbsp;Group&nbsp;out&nbsp;of&nbsp;Prefab&nbsp;parts</strong> checkbox to control
2748 whether the prefab is automatically grouped as a single object, or inserted as
2749 separate selectable objects.</p>
2750 </div>
2751 </div>
2752 </div>
2753 <div class="sect2">
2754 <h3 id="_exporting_models">Exporting models</h3>
2755 <div class="paragraph">
2756 <p>DarkRadiant provides a limited ability to export scene geometry into a number of
2757 3D model file formats: ASCII Scene Export (ASE), Lightwave (LWO) or
2758 Wavefront OBJ. This functionality is provided to help with organising
2759 frequently-used map elements — DarkRadiant is not intended to compete with
2760 full-featured 3D modelling applications such as Blender or 3DS Max.</p>
2761 </div>
2762 <div class="paragraph">
2763 <p>Exporting to a model is similar to exporting to a prefab, except that models can
2764 only contain geometry (brushes or patches), not other map entities such as
2765 lights or speakers. However, unlike prefabs, models can be edited with other 3D
2766 software, and exporting map geometry as a model might provide a useful template
2767 for creating map-specific static meshes in a more powerful modelling tool.</p>
2768 </div>
2769 <div class="paragraph">
2770 <p>To export a model:</p>
2771 </div>
2772 <div class="olist arabic">
2773 <ol class="arabic">
2774 <li>
2775 <p>Select the geometry to be exported. Note that DarkRadiant currently does not
2776 complain if you select non-geometry such as lights, however these will not
2777 appear in the resulting model file.</p>
2778 </li>
2779 <li>
2780 <p>Open the <strong>File</strong> menu and choose <strong>Export selected as model&#8230;&#8203;</strong></p>
2781 </li>
2782 <li>
2783 <p>In the <strong>Output Format</strong> dropdown, choose one of the supported model formats:
2784 <code>ASCII Scene Export (.ase)</code>, <code>Lightwave Object File (.lwo)</code>, or <code>Wavefront OBJ
2785 (.obj)</code>.</p>
2786 </li>
2787 <li>
2788 <p>Choose the path for the exported model file in the <strong>File Path</strong> entry box.</p>
2789 </li>
2790 <li>
2791 <p>Click <strong>OK</strong> to export the model.</p>
2792 </li>
2793 </ol>
2794 </div>
2795 </div>
2796 <div class="sect2">
2797 <h3 id="_using_layers">Using layers</h3>
2798 <div class="paragraph">
2799 <p>When a map contains a large number of objects, it may become difficult to work
2800 with the 2D views as a result of the visual clutter. Organising the map into
2801 several <strong>layers</strong> can help solve this problem. The visibility of each layer can
2802 toggled independently, allowing you to focus on the objects you want to work
2803 with.</p>
2804 </div>
2805 <div class="paragraph">
2806 <p>Layers do not impose any requirements on the physical layout of objects: it is
2807 possible to include objects spread all over a map into a single layer. For
2808 example, you can have a layer for all enemies, another layer for all lights,
2809 another layer for brushwork, and so on.</p>
2810 </div>
2811 <div class="sect3">
2812 <h4 id="_the_layers_window">The Layers window</h4>
2813 <div class="paragraph">
2814 <p>To show or hide the <strong>Layers</strong> window, choose <code>Layers</code> from the <code>Edit</code> menu. The
2815 window lists all of the layers which exist in the current project, and allows
2816 you to perform various operations on them.</p>
2817 </div>
2818 <div class="imageblock text-center">
2819 <div class="content">
2820 <img src="img/LayersWindow.png" alt="LayersWindow">
2821 </div>
2822 </div>
2823 <div class="dlist">
2824 <dl>
2825 <dt class="hdlist1"><strong>Creating a layer</strong></dt>
2826 <dd>
2827 <p>To create a new layer, click the <code>New</code> button at the bottom
2828 of the window. A popup will be shown asking for the name of the new layer. Once
2829 the layer is created, it will appear in the list.</p>
2830 </dd>
2831 <dt class="hdlist1"><strong>Deleting a layer</strong></dt>
2832 <dd>
2833 <p>Click the red 'X' button to the right of a layer to
2834 delete it. Deleting a layer does <strong>not</strong> delete the objects in the layer, only
2835 the layer itself. Any objects in that layer will be moved to the default layer.</p>
2836 </dd>
2837 <dt class="hdlist1"><strong>Renaming a layer</strong></dt>
2838 <dd>
2839 <p>Click the edit button to the right of a layer name to
2840 change the name. A popup will be shown asking for the new name.</p>
2841 </dd>
2842 <dt class="hdlist1"><strong>Selecting objects on a layer</strong></dt>
2843 <dd>
2844 <p>Click on the name of a layer itself to select
2845 all objects on that layer.</p>
2846 </dd>
2847 <dt class="hdlist1"><strong>Toggling visibility</strong></dt>
2848 <dd>
2849 <p>The button to the left of a layer name is used to toggle
2850 the visibility of objects on that layer. If objects are visible, a tick is
2851 shown in the button, otherwise it is empty.</p>
2852 </dd>
2853 <dt class="hdlist1"><strong>Changing the active layer</strong></dt>
2854 <dd>
2855 <p>The visibility toggle button shows a star for the
2856 layer which is currently set as the active layer. To change the active layer,
2857 <strong>Ctrl + Left click</strong> on the layer you wish to set as the new active layer.</p>
2858 </dd>
2859 </dl>
2860 </div>
2861 </div>
2862 <div class="sect3">
2863 <h4 id="_moving_objects_into_layers">Moving objects into layers</h4>
2864 <div class="paragraph">
2865 <p>An object can be placed in any number of layers. To see which layers a selected
2866 object is in, look at the narrow coloured rectangle next to the layer name in
2867 the <strong>Layers</strong> window. The rectangle will turn from grey to pink for each layer
2868 that contains the selected object.</p>
2869 </div>
2870 <div class="imageblock text-center">
2871 <div class="content">
2872 <img src="img/LightInTwoLayers.png" alt="LightInTwoLayers">
2873 </div>
2874 <div class="title">Figure 9. A light in two layers: "Default" and "Lights"</div>
2875 </div>
2876 <div class="paragraph">
2877 <p>All newly-created objects will be placed in the <strong>Default</strong> layer. You can move or
2878 copy objects between layers using the options in the 2D view&#8217;s context menu.</p>
2879 </div>
2880 <div class="dlist">
2881 <dl>
2882 <dt class="hdlist1"><strong>Create layer&#8230;&#8203;</strong></dt>
2883 <dd>
2884 <p>Bring up the name entry dialog and create a new layer,
2885 exactly as if the <strong>New</strong> button in the <strong>Layers</strong> window had been clicked.</p>
2886 </dd>
2887 <dt class="hdlist1"><strong>Add to layer&#8230;&#8203;</strong></dt>
2888 <dd>
2889 <p>Copy the selected object into the chosen layer, without
2890 removing it from its existing layer(s).</p>
2891 </dd>
2892 <dt class="hdlist1"><strong>Move to layer&#8230;&#8203;</strong></dt>
2893 <dd>
2894 <p>Move the selected object into the chosen layer, removing it
2895 from all other layers.</p>
2896 </dd>
2897 <dt class="hdlist1"><strong>Remove from layer&#8230;&#8203;</strong></dt>
2898 <dd>
2899 <p>Remove the selected object from the chosen layer.</p>
2900 </dd>
2901 </dl>
2902 </div>
2903 </div>
2904 </div>
2905 <div class="sect2">
2906 <h3 id="_filtering_map_elements">Filtering map elements</h3>
2907 <div class="paragraph">
2908 <p>While the Layers feature allows maps to be organised into manual groupings of
2909 objects, DarkRadiant also provides a mechanism for controlling the visibility of
2910 items based on their characteristics. This is controlled via the <strong>Filter</strong>
2911 menu.</p>
2912 </div>
2913 <div class="sect3">
2914 <h4 id="_built_in_filters">Built-in filters</h4>
2915 <div class="paragraph">
2916 <p>The <strong>Filter</strong> menu is populated with a number of built-in filter rules which are
2917 expected to be useful to mappers. Each filter may be activated independently,
2918 and each activated filter will be shown with a tick alongside its name. Filters
2919 operate in a "subtractive" sense: if a filter is active, objects matched by that
2920 filter will be hidden; the remaining visible objects will be those which are not
2921 matched by any active filters.</p>
2922 </div>
2923 <div class="admonitionblock tip">
2924 <table>
2925 <tr>
2926 <td class="icon">
2927 <img src="img/tip.png" alt="Tip">
2928 </td>
2929 <td class="content">
2930 Active filters are persisted into settings, and are therefore retained
2931 between DarkRadiant sessions.
2932 </td>
2933 </tr>
2934 </table>
2935 </div>
2936 <div class="paragraph">
2937 <p>The built-in filters include:</p>
2938 </div>
2939 <table class="tableblock frame-all grid-all stretch">
2940 <colgroup>
2941 <col style="width: 25%;">
2942 <col style="width: 75%;">
2943 </colgroup>
2944 <tbody>
2945 <tr>
2946 <th class="tableblock halign-left valign-top"><p class="tableblock">All entities</p></th>
2947 <td class="tableblock halign-left valign-top"><p class="tableblock">Hide all entities other than the worldspawn, leaving only brushes
2948 and patches visible.</p></td>
2949 </tr>
2950 <tr>
2951 <th class="tableblock halign-left valign-top"><p class="tableblock">World geometry</p></th>
2952 <td class="tableblock halign-left valign-top"><p class="tableblock">The inverse of <strong>All entities</strong>. Hides brushes and patches while
2953 leaving entities visible.</p></td>
2954 </tr>
2955 <tr>
2956 <th class="tableblock halign-left valign-top"><p class="tableblock">Brushes</p></th>
2957 <td class="tableblock halign-left valign-top"><p class="tableblock">Hide only brushes, leaving patches and entities visible.</p></td>
2958 </tr>
2959 <tr>
2960 <th class="tableblock halign-left valign-top"><p class="tableblock">Patches</p></th>
2961 <td class="tableblock halign-left valign-top"><p class="tableblock">Hide only patches, leaving brushes and entities visible.</p></td>
2962 </tr>
2963 <tr>
2964 <th class="tableblock halign-left valign-top"><p class="tableblock">Caulk</p></th>
2965 <td class="tableblock halign-left valign-top"><p class="tableblock">Hide any brush or patch which has the <strong>caulk</strong> texture applied to at least
2966 one surface.</p></td>
2967 </tr>
2968 <tr>
2969 <th class="tableblock halign-left valign-top"><p class="tableblock">Collision surfaces</p></th>
2970 <td class="tableblock halign-left valign-top"><p class="tableblock">Hide the additional collision meshes which are embedded in
2971 certain models, while leaving the models themselves visible. This filter is
2972 especially useful because collision meshes often obscure parts of the model
2973 itself.</p></td>
2974 </tr>
2975 </tbody>
2976 </table>
2977 <div class="paragraph">
2978 <p>Aside from the list of filters, the <strong>Filter</strong> menu contains three other options:</p>
2979 </div>
2980 <table class="tableblock frame-all grid-all stretch">
2981 <colgroup>
2982 <col style="width: 25%;">
2983 <col style="width: 75%;">
2984 </colgroup>
2985 <tbody>
2986 <tr>
2987 <th class="tableblock halign-left valign-top"><p class="tableblock">Activate all filters</p></th>
2988 <td class="tableblock halign-left valign-top"><p class="tableblock">Activate every filter in the list. Very unlikely to be
2989 useful, because it will probably result in every object in the map becoming
2990 invisible.</p></td>
2991 </tr>
2992 <tr>
2993 <th class="tableblock halign-left valign-top"><p class="tableblock">Deactivate all filters</p></th>
2994 <td class="tableblock halign-left valign-top"><p class="tableblock">Turn off all active filters. This one <em>is</em> useful, since
2995 you may have manually activated a number of filters and want to turn them all
2996 off at once.</p></td>
2997 </tr>
2998 <tr>
2999 <th class="tableblock halign-left valign-top"><p class="tableblock">Edit filters&#8230;&#8203;</p></th>
3000 <td class="tableblock halign-left valign-top"><p class="tableblock">Display a dialog allowing you to create, edit and manage the
3001 list of available filters.</p></td>
3002 </tr>
3003 </tbody>
3004 </table>
3005 </div>
3006 <div class="sect3">
3007 <h4 id="_customising_filters">Customising filters</h4>
3008 <div class="paragraph">
3009 <p>In addition to the filters supplied with the mod distribution, DarkRadiant also
3010 allows you to add your own custom filters to the list by choosing the <strong>Edit
3011 Filters&#8230;&#8203;</strong> menu option. This displays a dialog containing the list of all
3012 available filters, including built-in ones. Use the <strong>Add</strong> and <strong>Delete</strong> buttons
3013 to add or remove custom filters from the list, and the <strong>Edit</strong> button to enter a
3014 new dialog which allows you to edit the rules of the selected filter.</p>
3015 </div>
3016 <div class="paragraph">
3017 <p>Built-in filters cannot be removed or edited, but you can choose the <strong>View</strong>
3018 button to open the filter editor in a read-only mode.</p>
3019 </div>
3020 <div class="imageblock text-center">
3021 <div class="content">
3022 <img src="img/FilterEditor.png" alt="FilterEditor">
3023 </div>
3024 <div class="title">Figure 10. The filter editor dialog</div>
3025 </div>
3026 <div class="paragraph">
3027 <p>Each filter consists of a number of <strong>rules</strong>, which are applied in the order
3028 shown in the list box. Filters may contain only a single rule ("hide all speaker
3029 entities"), or multiple rules ("hide all entities, then show only speaker
3030 entities"). You can freely add, remove or reorder rules using the buttons to the
3031 right of the rules list.</p>
3032 </div>
3033 <div class="paragraph">
3034 <p>Each rule has the following components:</p>
3035 </div>
3036 <div class="dlist">
3037 <dl>
3038 <dt class="hdlist1"><strong>Index</strong></dt>
3039 <dd>
3040 <p>An integer representing the rule&#8217;s position in the list, numbered from
3041 zero.</p>
3042 </dd>
3043 <dt class="hdlist1"><strong>Type</strong></dt>
3044 <dd>
3045 <p>This controls what the rule is "looking for" when it tries to match
3046 objects to hide or show. Currently there are four rule types: <strong>entityclass</strong>
3047 which matches the classname of entities (e.g. "speaker"), <strong>object</strong> which
3048 matches either "brush" or "patch" and is used for controlling the visibility of
3049 map geometry, <strong>texture</strong> which matches the name of an applied texture, and
3050 <strong>entitykeyvalue</strong> which matches the value of a specific property on the entity.</p>
3051 </dd>
3052 <dt class="hdlist1"><strong>Entity Key</strong></dt>
3053 <dd>
3054 <p>This column is only used for <strong>entitykeyvalue</strong> rules, in which
3055 case it contains the name of the property to match (while the <em>value</em> to match
3056 will be contained in the <strong>Match</strong> column).</p>
3057 </dd>
3058 <dt class="hdlist1"><strong>Match</strong></dt>
3059 <dd>
3060 <p>This contains the actual value to be matched by the rule. Its
3061 interpretation and allowed values will depend on the rule type. For <strong>object</strong>
3062 type rules the value must be "brush" or "patch", whereas with all other rule
3063 types the value may be any arbitrary string.</p>
3064 </dd>
3065 <dt class="hdlist1"><strong>Action</strong></dt>
3066 <dd>
3067 <p>Choose whether this rule will result in matched objects being shown,
3068 or hidden. The filter system starts with everything being visible by default,
3069 so a filter which does not contain at least one <strong>hide</strong> rule will have no
3070 effect.</p>
3071 </dd>
3072 </dl>
3073 </div>
3074 </div>
3075 </div>
3076 <div class="sect2">
3077 <h3 id="_the_entity_list">The entity list</h3>
3078 <div class="paragraph">
3079 <p>As a map becomes larger and more complex, keeping track of its contents may
3080 become more challenging. To assist with this, DarkRadiant provides an <strong>Entity
3081 List</strong> which functions as an "outline" view of the map, listing all entities and
3082 their child brushes and patches (if any).</p>
3083 </div>
3084 <div class="paragraph">
3085 <p>The entity list can be accessed by choosing the <strong>Entity List</strong> option from the
3086 <strong>View</strong> menu.</p>
3087 </div>
3088 <div class="imageblock text-center">
3089 <div class="content">
3090 <img src="img/EntityList.png" alt="EntityList">
3091 </div>
3092 <div class="title">Figure 11. The entity list, showing a number of entities in a small test map</div>
3093 </div>
3094 <div class="paragraph">
3095 <p>The tree structure shown in the entity list corresponds to the structure of the
3096 map itself: a single "world" entity which acts as the parent of the brushes and
3097 patches in the map, alongside a number of other entities that have been placed
3098 by the mapper, some of which may contain their own child brushes or patches.</p>
3099 </div>
3100 <div class="paragraph">
3101 <p>Clicking on an entity in the list will cause it to be selected in the map. If
3102 the <strong>Focus camera on selected entity</strong> checkbox is enabled, the camera will
3103 additionally be moved to view the clicked entity.</p>
3104 </div>
3105 <div class="paragraph">
3106 <p>By enabling the <strong>List visible nodes only</strong> checkbox, you can limit the entity
3107 list to show only entities which are not currently hidden via filters.</p>
3108 </div>
3109 </div>
3110 </div>
3111 </div>
3112 <div class="sect1">
3113 <h2 id="_dark_mod_features">Dark Mod features</h2>
3114 <div class="sectionbody">
3115 <div class="paragraph">
3116 <p>The Dark Mod is a considerably more complex game than vanilla Doom 3, and its
3117 maps therefore include certain settings and features that would be cumbersome to
3118 configure manually by entering property values on entities. DarkRadiant
3119 therefore provides a number of Dark Mod specific dialogs which are described in
3120 this section.</p>
3121 </div>
3122 <div class="admonitionblock note">
3123 <table>
3124 <tr>
3125 <td class="icon">
3126 <img src="img/note.png" alt="Note">
3127 </td>
3128 <td class="content">
3129 Most Dark Mod features are compiled as separate plugins, and may not be
3130 built by default on certain platforms. If these features seem to be missing,
3131 contact the distributor of your DarkRadiant binary package for advice, or
3132 examine the build options if you are compiling DarkRadiant yourself from source
3133 code.
3134 </td>
3135 </tr>
3136 </table>
3137 </div>
3138 <div class="sect2">
3139 <h3 id="_the_difficulty_editor">The Difficulty editor</h3>
3140 <div class="paragraph">
3141 <p>Most Dark Mod maps can be played on one of three possible difficulty settings,
3142 typically named "Easy", "Medium" and "Difficult" (although these names can be
3143 overridden). The precise effects of each of these difficulty settings are fully
3144 under the control of the map author, and might include such effects as spawning
3145 or despawning particular enemies, changing enemy health or patrol routes, or
3146 modifying the details of objectives.</p>
3147 </div>
3148 <div class="paragraph">
3149 <p>DarkRadiant provides a Difficulty editor dialog to facilitate one particular
3150 class of difficulty-dependent modification: making global changes to entity
3151 classes throughout the map. This could be used, for example, to change the
3152 health of every instance of a particular enemy, or (as shown in the diagram)
3153 removing a particular enemy type&#8217;s ability to relight torches.</p>
3154 </div>
3155 <div class="imageblock text-center">
3156 <div class="content">
3157 <img src="img/DifficultyEditor.png" alt="DifficultyEditor">
3158 </div>
3159 <div class="title">Figure 12. The Difficulty editor, showing a modified property on a particular entity class</div>
3160 </div>
3161 <div class="paragraph">
3162 <p>The Difficulty editor shows the names of the available difficulty levels in a
3163 dropdown widget, beneath which are the settings for the selected difficulty
3164 level. The difficulty names are customisable on a per-map basis — normally these
3165 will be the default values of "Easy", "Medium" and "Difficult", but if the
3166 current map has customised difficulty names DarkRadiant will adjust the tab
3167 names accordingly.</p>
3168 </div>
3169 <div class="paragraph">
3170 <p>On the left is a tree view showing all of the property overrides for the current
3171 difficulty level. Each top-level item is a particular entity class, which
3172 contains all of the property changes that are made to this entity class in this
3173 difficulty level. In this example, the <code>ai_builder_guard</code> entity has its
3174 <code>canLightTorches</code> property set to 0 on the Easy difficulty setting, meaning that
3175 all enemies of this particular type will not be able to relight torches.</p>
3176 </div>
3177 <div class="dlist">
3178 <dl>
3179 <dt class="hdlist1"><strong>Adding a setting</strong></dt>
3180 <dd>
3181 <p>To add a new property setting for the current difficulty
3182 level, click the <strong>Add</strong> button. The widgets on the right hand side will become
3183 available, allowing you to choose an entity class, a property ("Spawnarg") to
3184 change, and the change to make ("Argument"). You can choose a number of
3185 mathematical operations for the modification, including a simple value
3186 assignment, or an addition or multiplication. After specifying the values, make
3187 sure you click the <strong>Save</strong> button to commit the changes into the list view.</p>
3188 </dd>
3189 <dt class="hdlist1"><strong>Removing a setting</strong></dt>
3190 <dd>
3191 <p>Select an item in the list view and click the <strong>Delete</strong>
3192 button to remove a particular setting. You can only remove individual
3193 assignments from the list; to remove all of the assignments for a particular
3194 entity class, you must select and delete each one individually.</p>
3195 </dd>
3196 <dt class="hdlist1"><strong>Editing the difficulty name</strong></dt>
3197 <dd>
3198 <p>To edit the name of the current difficulty
3199 level, click the edit button to the right of the dropdown, and enter a new name
3200 in the text box. The modified name will be written into a property on the
3201 <code>worldspawn</code> entity and reflected both in game and in DarkRadiant.</p>
3202 </dd>
3203 </dl>
3204 </div>
3205 <div class="admonitionblock tip">
3206 <table>
3207 <tr>
3208 <td class="icon">
3209 <img src="img/tip.png" alt="Tip">
3210 </td>
3211 <td class="content">
3212 For details of more advanced difficulty-dependent changes, such as
3213 modifying the behaviour of a <strong>single</strong> entity (rather than an entire entity
3214 class), consult the Dark Mod Wiki.
3215 </td>
3216 </tr>
3217 </table>
3218 </div>
3219 </div>
3220 <div class="sect2">
3221 <h3 id="_game_connection">Game Connection</h3>
3222 <div class="paragraph">
3223 <p>The Dark Mod includes functionality to dynamically interact with a DarkRadiant
3224 session running on the same machine, allowing certain information (such as
3225 camera position) to be synchronised both to and from the game, and for certain
3226 entity property changes to be pushed to the running game without needing to
3227 restart.</p>
3228 </div>
3229 <div class="paragraph">
3230 <p>These features are accessed in DarkRadiant through the <strong>Connection</strong> menu and
3231 buttons on the camera view toolbar.</p>
3232 </div>
3233 <div class="sect3">
3234 <h4 id="_activating_the_connection">Activating the connection</h4>
3235 <div class="olist arabic">
3236 <ol class="arabic">
3237 <li>
3238 <p>In <strong>The Dark Mod</strong>, load the map which you are currently editing in DarkRadiant.</p>
3239 </li>
3240 <li>
3241 <p>Bring down the game console and enter the command</p>
3242 <div class="listingblock">
3243 <div class="content">
3244 <pre>com_automation 1</pre>
3245 </div>
3246 </div>
3247 <div class="paragraph">
3248 <p>This should result in a status message indicating that the game is listening for
3249 connections on a particular network port.</p>
3250 </div>
3251 <div class="listingblock">
3252 <div class="content">
3253 <pre>Automation now listens on port 3879</pre>
3254 </div>
3255 </div>
3256 </li>
3257 </ol>
3258 </div>
3259 <div class="paragraph">
3260 <p>The game process is now ready to exchange data with DarkRadiant.</p>
3261 </div>
3262 </div>
3263 <div class="sect3">
3264 <h4 id="_synchronising_camera_position">Synchronising camera position</h4>
3265 <div class="paragraph">
3266 <p>You can synchronise the DarkRadiant camera position and the game player position
3267 in both directions: editor to game and game to editor. This feature is most
3268 easily controlled with the buttons on the camera view toolbar, but it can also
3269 be activated from the <strong>Connection</strong> menu.</p>
3270 </div>
3271 <table class="tableblock frame-all grid-all stretch">
3272 <colgroup>
3273 <col style="width: 7.1428%;">
3274 <col style="width: 21.4285%;">
3275 <col style="width: 71.4287%;">
3276 </colgroup>
3277 <tbody>
3278 <tr>
3279 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/CameraSync.png" alt="CameraSync" width="24"></span></p></th>
3280 <th class="tableblock halign-left valign-top"><p class="tableblock">Game position follows DarkRadiant camera</p></th>
3281 <td class="tableblock halign-left valign-top"><p class="tableblock">Any motion of the DarkRadiant camera will be transmitted in realtime to the
3282 game, resulting in the player position moving (in <strong>noclip</strong> mode) to the same
3283 position and view direction.</p>
3284 <p class="tableblock">This is a toggled option which remains active until switched off.</p></td>
3285 </tr>
3286 <tr>
3287 <th class="tableblock halign-center valign-top"><p class="tableblock"><span class="image"><img src="img/CameraSyncBack.png" alt="CameraSyncBack" width="24"></span></p></th>
3288 <th class="tableblock halign-left valign-top"><p class="tableblock">Move camera to current game position</p></th>
3289 <td class="tableblock halign-left valign-top"><p class="tableblock">Update the DarkRadiant camera to match the current player position and view
3290 direction in game.</p>
3291 <p class="tableblock">This is a single-shot command; there is no mechanism to continuously move the
3292 DarkRadiant camera in response to player motion in game.</p></td>
3293 </tr>
3294 </tbody>
3295 </table>
3296 </div>
3297 </div>
3298 </div>
3299 </div>
3300 <div class="sect1">
3301 <h2 id="_command_reference">Command reference</h2>
3302 <div class="sectionbody">
3303 <div class="sect2">
3304 <h3 id="_file_menu">File menu</h3>
3305 <div class="dlist">
3306 <dl>
3307 <dt class="hdlist1"><strong>New map</strong></dt>
3308 <dd>
3309 <p>Prompt to save and close the current map (if necessary), then start
3310 working on a new empty map.</p>
3311 </dd>
3312 <dt class="hdlist1"><strong>Open map&#8230;&#8203;</strong></dt>
3313 <dd>
3314 <p>Prompt to save and close the current map (if necessary), then
3315 display a file browser to choose and load an existing map file from disk.</p>
3316 </dd>
3317 <dt class="hdlist1"><strong>Import map&#8230;&#8203;</strong></dt>
3318 <dd>
3319 <p>Display a file browser to choose and load an existing map file
3320 from disk, merging the contents with the existing map</p>
3321 </dd>
3322 <dt class="hdlist1"><strong>Import prefab&#8230;&#8203;</strong></dt>
3323 <dd>
3324 <p>Display the <a href="#ImportPrefab">prefab browser</a> to choose and
3325 import a prefab from disk.</p>
3326 </dd>
3327 </dl>
3328 </div>
3329 <div class="admonitionblock note">
3330 <table>
3331 <tr>
3332 <td class="icon">
3333 <img src="img/note.png" alt="Note">
3334 </td>
3335 <td class="content">
3336 Importing a map and importing a prefab are functionally identical
3337 operations; the only difference is the user interface used for choosing what to
3338 import. The prefab browser is designed to offer a user-friendly workflow for
3339 browsing, previewing and importing from a library of frequently-used map
3340 elements, while <strong>Import map</strong> may be more useful for merging two or more
3341 partially-complete maps.
3342 </td>
3343 </tr>
3344 </table>
3345 </div>
3346 <div class="dlist">
3347 <dl>
3348 <dt class="hdlist1"><strong>Save</strong></dt>
3349 <dd>
3350 <p>Save the current map to disk under its existing file name.</p>
3351 </dd>
3352 <dt class="hdlist1"><strong>Save as&#8230;&#8203;</strong></dt>
3353 <dd>
3354 <p>Display a file browser to choose a new name for the current map,
3355 then save to this new file name in future.</p>
3356 </dd>
3357 <dt class="hdlist1"><strong>Save copy as&#8230;&#8203;</strong></dt>
3358 <dd>
3359 <p>Display a file browser to choose a new filename to save this
3360 map into, without changing the current map name for future <strong>Save</strong> operations.</p>
3361 </dd>
3362 <dt class="hdlist1"><strong>Save selected as Map&#8230;&#8203;</strong></dt>
3363 <dd>
3364 <p>Choose a file name and save the currently-selected
3365 items into a new map file without changing the current map name. Equivalent to
3366 <strong>Save copy as</strong> but it only saves the selected items, not the entire map.</p>
3367 </dd>
3368 <dt class="hdlist1"><strong>Save selected as prefab&#8230;&#8203;</strong></dt>
3369 <dd>
3370 <p>Equivalent to <strong>Save selected as Map</strong> but it saves
3371 the selected items into a <a href="#WorkingWithPrefabs">prefab</a> (<code>*.pfb</code>) file in the
3372 standard prefab location.</p>
3373 </dd>
3374 <dt class="hdlist1"><strong>Save selected as Collision Model&#8230;&#8203;</strong></dt>
3375 <dd>
3376 <p>Allows a selected map object (typically
3377 a brush) to be set as the collision model for a particular ASE or LWO model.
3378 After choosing this option, DarkRadiant will display the model chooser dialog,
3379 allowing you to choose the particular model that the selected object should be
3380 associated with. The selected brush is then saved, and associated with the
3381 model so that subsequent insertions of the same model will use the new
3382 collision geometry.</p>
3383 </dd>
3384 <dt class="hdlist1"><strong>Reload Models/Selected Models/Skins/Scripts/Readable Guis/Materials/Defs/Particles</strong></dt>
3385 <dd>
3386 <p>Forces DarkRadiant to re-read the selected category of items from disk,
3387 refreshing its internal data structures. This is necessary if you have edited
3388 or re-exported some asset which DarkRadiant is using in the current map and you
3389 want to see the latest changes.</p>
3390 </dd>
3391 <dt class="hdlist1"><strong>Game/Project Setup&#8230;&#8203;</strong></dt>
3392 <dd>
3393 <p>Show the <a href="#GameSetup">Game Setup</a> dialog for
3394 configuring game-specific settings.</p>
3395 </dd>
3396 <dt class="hdlist1"><strong>Pointfile</strong></dt>
3397 <dd>
3398 <p>Load and show the <a href="#PointFile">pointfile</a> for the current map, if
3399 there is one. An error dialog will be displayed if there is no current
3400 pointfile (which is usually the case if the current map has not leaked during
3401 compilation).</p>
3402 </dd>
3403 <dt class="hdlist1"><strong>Exit</strong></dt>
3404 <dd>
3405 <p>Exit DarkRadiant, prompting to save the current map if necessary.</p>
3406 </dd>
3407 </dl>
3408 </div>
3409 </div>
3410 <div class="sect2">
3411 <h3 id="_edit_menu">Edit menu</h3>
3412 <div class="dlist">
3413 <dl>
3414 <dt class="hdlist1"><strong>Undo</strong></dt>
3415 <dd>
3416 <p>Undo the most recent operation.</p>
3417 </dd>
3418 <dt class="hdlist1"><strong>Redo</strong></dt>
3419 <dd>
3420 <p>Redo the most recently undone operation.</p>
3421 </dd>
3422 <dt class="hdlist1"><strong>Copy</strong></dt>
3423 <dd>
3424 <p>Copy the selected item(s) to the clipboard.</p>
3425 </dd>
3426 <dt class="hdlist1"><strong>Paste</strong></dt>
3427 <dd>
3428 <p>Paste the item(s) on the clipboard to their original world location.</p>
3429 </dd>
3430 </dl>
3431 </div>
3432 <div class="admonitionblock note">
3433 <table>
3434 <tr>
3435 <td class="icon">
3436 <img src="img/note.png" alt="Note">
3437 </td>
3438 <td class="content">
3439 Objects copied to the clipboard are represented using the same text format
3440 which can be found in <code>.map</code> files. This makes it possible to save clipboard
3441 content into a file and load it later as an actual map fragment.
3442 </td>
3443 </tr>
3444 </table>
3445 </div>
3446 <div class="dlist">
3447 <dl>
3448 <dt class="hdlist1"><strong>Paste to camera</strong></dt>
3449 <dd>
3450 <p>Paste the item(s) on the clipboard to the current camera
3451 location, ignoring their original world location.</p>
3452 </dd>
3453 <dt class="hdlist1"><strong>Duplicate</strong></dt>
3454 <dd>
3455 <p>Make a copy of the currently selected item(s), slightly offset
3456 from their original position.</p>
3457 </dd>
3458 <dt class="hdlist1"><strong>Delete</strong></dt>
3459 <dd>
3460 <p>Remove the currently selected item(s).</p>
3461 </dd>
3462 <dt class="hdlist1"><strong>Group selection</strong></dt>
3463 <dd>
3464 <p>Combine the selected items into a <a href="#Group">group</a>.</p>
3465 </dd>
3466 <dt class="hdlist1"><strong>Ungroup selection</strong></dt>
3467 <dd>
3468 <p>Split the selected group back into individual objects.</p>
3469 </dd>
3470 <dt class="hdlist1"><strong>Reparent primitives</strong></dt>
3471 <dd>
3472 <p>Make all selected worldspawn brushes or patches into
3473 children of the selected func_static (or similar entity). Requires exactly one
3474 entity to be selected, along with at least one primitive which is currently a
3475 child of the worldspawn.</p>
3476 </dd>
3477 <dt class="hdlist1"><strong>Reparent primitives to worldspawn</strong></dt>
3478 <dd>
3479 <p>Unparent the selected primitive from a
3480 func_static (or similar entity), making it a child of the worldspawn. Before
3481 using this command you must first select a single primitive with the <strong>TAB</strong> key
3482 (even if the entity only contains a single primitive), otherwise the whole
3483 entity will be selected and the command will silently fail.</p>
3484 </dd>
3485 </dl>
3486 </div>
3487 <div class="admonitionblock tip">
3488 <table>
3489 <tr>
3490 <td class="icon">
3491 <img src="img/tip.png" alt="Tip">
3492 </td>
3493 <td class="content">
3494 To unparent <strong>all</strong> of an entity&#8217;s primitives and convert them back into
3495 worldspawn, just right-click in the 2D view and choose <strong>Revert to worldspawn</strong>.
3496 </td>
3497 </tr>
3498 </table>
3499 </div>
3500 </div>
3501 </div>
3502 </div>
3503 <div class="sect1">
3504 <h2 id="_configuring_darkradiant">Configuring DarkRadiant</h2>
3505 <div class="sectionbody">
3506 <div class="paragraph">
3507 <p>DarkRadiant offers a large number of configurable options which can be used to
3508 tailor its behaviour to your desired workflow. Most of these options can be
3509 found either in the Preferences dialog or exposed directly as menu items.</p>
3510 </div>
3511 <div class="sect2">
3512 <h3 id="_the_preferences_dialog">The Preferences dialog</h3>
3513 <div class="paragraph">
3514 <p>The Preferences dialog can be shown by choosing <code>Preferences&#8230;&#8203;</code> from the <code>Edit</code>
3515 menu. The dialog contains a number of pages containing groups of logically
3516 related options.</p>
3517 </div>
3518 <div class="sect3">
3519 <h4 id="_camera_settings">Camera settings</h4>
3520 <div class="paragraph">
3521 <p>The <strong>Camera</strong> page contains options relating to the movement and behaviour of the
3522 3D camera.</p>
3523 </div>
3524 <div class="dlist">
3525 <dl>
3526 <dt class="hdlist1"><strong>Movement Speed</strong></dt>
3527 <dd>
3528 <p>Use this slider to control how many game units the camera
3529 moves forwards or backwards when you use the scroll wheel in the 3D view. It
3530 does not affect the speed of rotation or lateral dragging (e.g. with <strong>Ctrl</strong>) in
3531 free look mode, nor does it affect motion with the arrow keys.</p>
3532 </dd>
3533 <dt class="hdlist1"><strong>Rotation Speed</strong></dt>
3534 <dd>
3535 <p>This controls the speed of angular rotation when dragging the
3536 mouse after entering free look mode with right-click. If you have a high DPI
3537 mouse and want to be able to direct the camera more precisely, reducing this
3538 setting may help.</p>
3539 </dd>
3540 <dt class="hdlist1"><strong>Freelook mode can be toggled</strong></dt>
3541 <dd>
3542 <p>Disabling this checkbox makes the free look
3543 functionality behave more like typical MMO games, where you hold down the right
3544 mouse button and drag to move the camera around. Uncheck this option if you
3545 hate modal interfaces or find the default toggle behaviour confusing.</p>
3546 </dd>
3547 <dt class="hdlist1"><strong>Discrete movement (non-freelook mode)</strong></dt>
3548 <dd>
3549 <p>If this is checked, moving the camera
3550 with the arrow keys in non-freelook mode will cause discrete jumps in position,
3551 rather than smooth motion.</p>
3552 </dd>
3553 <dt class="hdlist1"><strong>Enable far clip plane</strong></dt>
3554 <dd>
3555 <p>You can completely disable the <a href="#Using3DCameraView">far
3556 clip plane</a> by unchecking this option. This will avoid the need to manage the
3557 position of the far clip plane, but may negatively impact rendering performance
3558 in large or complex maps.</p>
3559 </dd>
3560 <dt class="hdlist1"><strong>Invert mouse vertical axis</strong></dt>
3561 <dd>
3562 <p>Enable this option to flip the sense of the
3563 vertical camera motion when freelook mode is enabled, so that moving the mouse
3564 upwards tilts the camera downwards, and vice versa.</p>
3565 </dd>
3566 <dt class="hdlist1"><strong>Solid selection boxes</strong></dt>
3567 <dd>
3568 <p>This option controls whether selected brushes are
3569 drawn with a dashed outline (option disabled) or a solid line (option enabled).
3570 It affects both the 2D and the 3D views.</p>
3571 </dd>
3572 <dt class="hdlist1"><strong>Show camera toolbar</strong></dt>
3573 <dd>
3574 <p>Uncheck this to completely hide the toolbar at the top
3575 of the 3D camera window (which includes the render mode buttons and the far
3576 clip plane controls).</p>
3577 </dd>
3578 </dl>
3579 </div>
3580 </div>
3581 <div class="sect3">
3582 <h4 id="_orthoview_settings">Orthoview settings</h4>
3583 <div class="paragraph">
3584 <p>The <strong>Orthoview</strong> page contains options controlling the display and behaviour of
3585 the 2D views.</p>
3586 </div>
3587 <div class="dlist">
3588 <dl>
3589 <dt class="hdlist1"><strong>View chases mouse cursor during drags</strong></dt>
3590 <dd>
3591 <p>If this is enabled, dragging an object
3592 off the edge of a 2D view will cause the 2D view to automatically scroll to
3593 keep the dragged object in view. If disabled, the dragged object will reach the
3594 edge and stop. You can control the speed of the scrolling with the <strong>Maximum
3595 Chase Mouse Speed</strong> slider.</p>
3596 </dd>
3597 <dt class="hdlist1"><strong>Update views on camera movement</strong></dt>
3598 <dd>
3599 <p>This option controls whether the camera
3600 position indicator in the 2D views is automatically kept in sync with camera
3601 movements in the 3D window. If this option is disabled, the 2D view camera
3602 indicator may not move until you explicitly click on or interact with a 2D
3603 view.</p>
3604 </dd>
3605 <dt class="hdlist1"><strong>Show crosshairs</strong></dt>
3606 <dd>
3607 <p>Enable this option to display full-window-sized crosshairs
3608 tracking the mouse cursor whenever it moves over a 2D window. This may assist
3609 with precise selection or object alignment.</p>
3610 </dd>
3611 <dt class="hdlist1"><strong>Show grid</strong></dt>
3612 <dd>
3613 <p>Control the visibility of grid lines in the 2D views. This does
3614 not affect the snapping behaviour, just the visual rendering of the grid.</p>
3615 </dd>
3616 <dt class="hdlist1"><strong>Show size info</strong></dt>
3617 <dd>
3618 <p>Control the visibility of the text overlays which show the
3619 dimensions of a selected object on the X, Y or Z axes. This option is also
3620 available in the <code>View &#8594; Show</code> menu.</p>
3621 </dd>
3622 <dt class="hdlist1"><strong>Show entity angle arrow</strong></dt>
3623 <dd>
3624 <p>Hide or show the small arrow which indicates the
3625 direction of an entity with an <code>angle</code> spawnarg, such as <code>info_player_start</code>.
3626 This affects both the 2D and 3D views.</p>
3627 </dd>
3628 <dt class="hdlist1"><strong>Show entity names</strong></dt>
3629 <dd>
3630 <p>Enable this to show permanently-visible text names next to
3631 each entity in the map. This option is also available as <code>View &#8594; Show &#8594; Show
3632 names</code>.</p>
3633 </dd>
3634 <dt class="hdlist1"><strong>Show blocks</strong></dt>
3635 <dd>
3636 <p>If enabled, the world space is divided into a horizontal grid of
3637 1024x1024 unit blocks (of infinite height) which are outlined in blue in the 2D
3638 views. Each block is assigned a pair of numbers representing its position from
3639 the centermost block, which is assigned <code>(0, 0)</code>. This might help with
3640 "blocking out" a map at the beginning of the design phase. This option is also
3641 available in the <code>View &#8594; Show</code> menu.</p>
3642 </dd>
3643 <dt class="hdlist1"><strong>Show coordinates</strong></dt>
3644 <dd>
3645 <p>Toggle the visibility of the coordinate rulers along the
3646 edges of the 2D window. Also available in the <code>View &#8594; Show</code> menu.</p>
3647 </dd>
3648 <dt class="hdlist1"><strong>Show axes</strong></dt>
3649 <dd>
3650 <p>Control the visibility of the axis widget displayed at the
3651 top-left of each 2D window and at the world origin. Also available in the <code>View
3652 &#8594; Show</code> menu.</p>
3653 </dd>
3654 <dt class="hdlist1"><strong>Show window outline</strong></dt>
3655 <dd>
3656 <p>Enable this to draw a rectangular outline around the
3657 edge of the 2D window. Depending on the platform and GUI theme this may be
3658 almost invisible, but might be useful to improve visibility in certain
3659 environments.</p>
3660 </dd>
3661 <dt class="hdlist1"><strong>Show workzone</strong></dt>
3662 <dd>
3663 <p>The 'workzone' is an imaginary axis-aligned cuboid which
3664 encloses the set of currently-selected items (this is what defines the volume
3665 of a new light, when a <a href="#CreatingLights">light is created</a> from one or more
3666 existing brushes). Enabling this option causes the workzone to be outlined in
3667 red in the 2D views. Also available in the <code>View &#8594; Show</code> menu.</p>
3668 </dd>
3669 <dt class="hdlist1"><strong>Translate manipulator always constrained to axis</strong></dt>
3670 <dd>
3671 <p>This option affects the
3672 behaviour of the <a href="#ManipulatorModes">translate manipulator</a>. When the option is
3673 disabled, dragging a selected object in translation mode will behave as if the
3674 manipulator&#8217;s <strong>central square</strong> is being dragged, and allow motion in two
3675 dimensions. If the option is enabled, dragging the selected object will behave
3676 as if the closest manipulator <strong>arrow</strong> is being dragged, and allow motion along
3677 only a single axis. Translation in two dimensions will always be possible by
3678 clicking on the manipulator&#8217;s central square directly, regardless of the state
3679 of this option.</p>
3680 </dd>
3681 <dt class="hdlist1"><strong>Higher selection priority for entities</strong></dt>
3682 <dd>
3683 <p>When using the mouse to click on and
3684 select an entity which is in front of, behind or inside a brush, this option
3685 controls whether DarkRadiant will prefer to select the entity (enabled) or the
3686 brush (disabled).</p>
3687 </dd>
3688 </dl>
3689 </div>
3690 </div>
3691 <div class="sect3">
3692 <h4 id="_multi_monitor_settings">Multi Monitor settings</h4>
3693 <div class="paragraph">
3694 <p>The Multi Monitor page contains a single setting, <strong>Start DarkRadiant on
3695 monitor</strong>, which allows you to choose which monitor DarkRadiant will start on if
3696 you have several available.</p>
3697 </div>
3698 </div>
3699 <div class="sect3">
3700 <h4 id="_autosave_settings">Autosave settings</h4>
3701 <div class="dlist">
3702 <dl>
3703 <dt class="hdlist1"><strong>Enable Autosave</strong></dt>
3704 <dd>
3705 <p>Controls whether the autosave feature is active or disabled.</p>
3706 </dd>
3707 <dt class="hdlist1"><strong>Autosave Interval</strong></dt>
3708 <dd>
3709 <p>Use this slider to choose how often DarkRadiant will make
3710 an autosave. By default, autosaves are made every 5 minutes.</p>
3711 </dd>
3712 <dt class="hdlist1"><strong>Save Snapshots</strong></dt>
3713 <dd>
3714 <p>If this option is enabled, DarkRadiant will make each
3715 autosave into a separate copy of the map file, allowing you to potentially
3716 revert changes which were made several autosaves ago. If this option is
3717 disabled, there will only ever be a single autosave file, which will protect
3718 against DarkRadiant or system crashes but not against long-term erroneous
3719 changes.</p>
3720 </dd>
3721 <dt class="hdlist1"><strong>Snapshot folder</strong></dt>
3722 <dd>
3723 <p>This specifies the name of the folder used to store snapshot
3724 autosaves, if the <strong>Save Snapshots</strong> option is enabled.</p>
3725 </dd>
3726 <dt class="hdlist1"><strong>Max Snapshot size per map</strong></dt>
3727 <dd>
3728 <p>This allows you to control the amount of disk
3729 space used for storing snapshots, by specifying a maximum number of megabytes
3730 that will be used for storing the snapshots for a single map. If the disk usage
3731 grows above this limit, DarkRadiant will start to delete old snapshots.</p>
3732 </dd>
3733 </dl>
3734 </div>
3735 </div>
3736 <div class="sect3">
3737 <h4 id="_clipper_settings">Clipper settings</h4>
3738 <div class="dlist">
3739 <dl>
3740 <dt class="hdlist1"><strong>Clipper tool uses caulk texture</strong></dt>
3741 <dd>
3742 <p>If this option is enabled, the
3743 <a href="#SplittingBrushes">clipper tool</a> will texture the newly-created clip face with
3744 the texture specified in the <strong>Caulk shader name</strong> text field. If the option is
3745 disabled, the new face will be given the same texture as the rest of the brush.</p>
3746 </dd>
3747 </dl>
3748 </div>
3749 </div>
3750 <div class="sect3">
3751 <h4 id="_grid_settings">Grid settings</h4>
3752 <div class="paragraph">
3753 <p>This page contains a couple of options relating to the appearance and default
3754 behaviour of the grid.</p>
3755 </div>
3756 <div class="dlist">
3757 <dl>
3758 <dt class="hdlist1"><strong>Default grid size</strong></dt>
3759 <dd>
3760 <p>Use this combo box to choose the default grid size used in
3761 new projects (to change the grid size in the <em>current</em> project, use the options
3762 in the <strong>Grid</strong> main menu).</p>
3763 </dd>
3764 <dt class="hdlist1"><strong>Major grid style</strong></dt>
3765 <dd>
3766 <p>Choose the rendering style for the major grid lines.
3767 Available options are <strong>Lines</strong>, <strong>Dotted Lines</strong>, <strong>More Dotted Lines</strong>, <strong>Crosses</strong>,
3768 <strong>Dots</strong>, <strong>Big Dots</strong>, and <strong>Squares</strong>.</p>
3769 </dd>
3770 <dt class="hdlist1"><strong>Minor grid style</strong></dt>
3771 <dd>
3772 <p>Choose the rendering style for the minor grid lines.
3773 Available options are the same as the <strong>Major grid style</strong> combo box.</p>
3774 </dd>
3775 </dl>
3776 </div>
3777 </div>
3778 <div class="sect3">
3779 <h4 id="_selection_settings">Selection settings</h4>
3780 <div class="dlist">
3781 <dl>
3782 <dt class="hdlist1"><strong>Ignore light volume bounds when calculating default rotation pivot location</strong></dt>
3783 <dd>
3784 <p>This option affects the behaviour of the <a href="#ManipulatorModes">rotation tool</a>
3785 when multiple objects are selected. DarkRadiant will place the rotation widget
3786 at the approximate "center of gravity" of the set of selected objects. If this
3787 option is enabled, any selected lights will be treated as point entities, with
3788 no volume in 3D space regardless of their actual light volumes. If this option
3789 is disabled, the entire light volume will be taken into account as if the light
3790 were a rectangular brush.</p>
3791 </dd>
3792 </dl>
3793 </div>
3794 </div>
3795 <div class="sect3">
3796 <h4 id="_undo_settings">Undo settings</h4>
3797 <div class="dlist">
3798 <dl>
3799 <dt class="hdlist1"><strong>Undo Queue Size</strong></dt>
3800 <dd>
3801 <p>Use this spinbox to control the number of operations which
3802 are saved onto DarkRadiant&#8217;s internal undo stack. Larger values provide a
3803 longer history of undoable operations, at the expense of requiring more memory.</p>
3804 </dd>
3805 </dl>
3806 </div>
3807 </div>
3808 <div class="sect3">
3809 <h4 id="_primitives_settings">Primitives settings</h4>
3810 <div class="paragraph">
3811 <p>This page contains two options controlling the default behaviour of applied
3812 textures. These values can be set on a per-object basis using the
3813 <a href="#SurfaceInspector">Surface Inspector</a>.</p>
3814 </div>
3815 <div class="dlist">
3816 <dl>
3817 <dt class="hdlist1"><strong>Default texture scale</strong></dt>
3818 <dd>
3819 <p>Set a default scale factor for newly applied textures.</p>
3820 </dd>
3821 <dt class="hdlist1"><strong>Enable texture lock</strong></dt>
3822 <dd>
3823 <p>Set the default value of the Texture Lock button. See
3824 the <a href="#SurfaceInspector">Surface Inspector</a> section for more details on this
3825 feature.</p>
3826 </dd>
3827 </dl>
3828 </div>
3829 </div>
3830 <div class="sect3">
3831 <h4 id="_texture_browser_settings">Texture Browser settings</h4>
3832 <div class="paragraph">
3833 <p>These options control the behaviour of the <a href="#TexturesTab">Textures tab</a>.</p>
3834 </div>
3835 <div class="dlist">
3836 <dl>
3837 <dt class="hdlist1"><strong>Uniform texture thumbnail size</strong></dt>
3838 <dd>
3839 <p>Choose the size in pixels that will be used
3840 for texture thumbnails.</p>
3841 </dd>
3842 <dt class="hdlist1"><strong>Texture scrollbar</strong></dt>
3843 <dd>
3844 <p>Hide or show the scrollbar in the textures tab. If the
3845 scrollbar is hidden, scrolling is only possible with the mouse wheel.</p>
3846 </dd>
3847 <dt class="hdlist1"><strong>Mousewheel increment</strong></dt>
3848 <dd>
3849 <p>This option determines how much the window is scrolled
3850 when the mouse wheel is rotated.</p>
3851 </dd>
3852 <dt class="hdlist1"><strong>Max shadername length</strong></dt>
3853 <dd>
3854 <p>Choose the maximum number of characters that may
3855 appear in each texture name. If a texture contains more characters than this,
3856 the texture name will be abbreviated with "&#8230;&#8203;" in the middle.</p>
3857 </dd>
3858 </dl>
3859 </div>
3860 </div>
3861 <div class="sect3">
3862 <h4 id="_map_files_settings">Map files settings</h4>
3863 <div class="dlist">
3864 <dl>
3865 <dt class="hdlist1"><strong>Number of most recently used files</strong></dt>
3866 <dd>
3867 <p>Choose the number of map files to list in
3868 the recent map section at the bottom of the <strong>File</strong> menu.</p>
3869 </dd>
3870 <dt class="hdlist1"><strong>Open last map on startup</strong></dt>
3871 <dd>
3872 <p>Enable this option to make DarkRadiant
3873 automatically load the most recently-used map every time it starts, rather than
3874 starting with an empty map.</p>
3875 </dd>
3876 </dl>
3877 </div>
3878 </div>
3879 </div>
3880 </div>
3881 </div>
3882 <div class="sect1">
3883 <h2 id="_features_for_game_distributors">Features for game distributors</h2>
3884 <div class="sectionbody">
3885 <div class="paragraph">
3886 <p>DarkRadiant is designed to work out of the box with a standard Doom 3 or Dark
3887 Mod game installation, however it also offers a few features aimed at developers
3888 of the game itself.</p>
3889 </div>
3890 <div class="sect2">
3891 <h3 id="_controlling_asset_visibility">Controlling asset visibility</h3>
3892 <div class="paragraph">
3893 <p>As the development of a game progresses, certain models or textures may become
3894 obsolete or deprecated, either because they are no longer needed or because they
3895 fall short of the quality standard that is expected of new assets. If these
3896 models and textures have already been distributed, removing them from the game
3897 installation may be problematic, as maps which depend on them will fail to load
3898 correctly.</p>
3899 </div>
3900 <div class="paragraph">
3901 <p>DarkRadiant offers a mechanism to deal with this by allowing certain assets to
3902 be marked as "hidden". A hidden asset will no longer be presented for selection
3903 by the user (e.g. on the Media tab or in the Model selector), but will continue
3904 to function as normal when it appears in a loaded map.</p>
3905 </div>
3906 <div class="sect3">
3907 <h4 id="_creating_an_assets_lst_file">Creating an assets.lst file</h4>
3908 <div class="paragraph">
3909 <p>To change the visibility of assets, you need to create a file called
3910 <code>assets.lst</code> which resides in the top-level <code>models</code> or <code>materials</code> directories
3911 in the mod installation. This file may be inside a PK4 or in an extracted
3912 directory tree.</p>
3913 </div>
3914 <div class="paragraph">
3915 <p>The contents of <code>assets.lst</code> are a simple list of key/value pairs, assigning a
3916 visibility value to each named asset. For example:</p>
3917 </div>
3918 <div class="listingblock">
3919 <div class="title">assets.lst</div>
3920 <div class="content">
3921 <pre>darkmod/chairs/some_broken_chair.lwo=hidden
3922 darkmod/tables/another_table.ase=hidden</pre>
3923 </div>
3924 </div>
3925 <div class="paragraph">
3926 <p>Asset paths listed on the left-hand side are interpreted relative to the
3927 directory containing <code>assets.lst</code> (which must be <code>models</code> or <code>materials</code>). The
3928 visibility value on the right-hand side must be either <code>hidden</code> or <code>normal</code>; a
3929 value of <code>normal</code> is equivalent to not listing the file at all, and results in
3930 no change to its visibility.</p>
3931 </div>
3932 <div class="admonitionblock note">
3933 <table>
3934 <tr>
3935 <td class="icon">
3936 <img src="img/note.png" alt="Note">
3937 </td>
3938 <td class="content">
3939 Only <strong>files</strong> may be listed in an <code>assets.lst</code>, not items in a virtual
3940 hierarchy such as the material shader tree. When an MTR file is listed as hidden
3941 in the <code>materials</code> directory, all shaders contained within it will be hidden in
3942 DarkRadiant. This means that in order to hide specific shaders, you must move
3943 these into one or more MTR files which are listed as hidden.
3944 </td>
3945 </tr>
3946 </table>
3947 </div>
3948 </div>
3949 </div>
3950 </div>
3951 </div>
3952 </div>
3953 <div id="footer">
3954 <div id="footer-text">
3955 Last updated 2021-07-28 20:36:17 +0100
3956 </div>
3957 </div>
3958 </body>
3959 </html>