-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadding-sunlight.html
171 lines (166 loc) · 12.1 KB
/
adding-sunlight.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head lang="en">
<title>UnrealWiki: Adding Sunlight</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" media="screen, print"
href="shared/stylebase.structural.css">
<link rel="stylesheet" type="text/css" media="screen"
href="shared/template-default.css">
<link rel="stylesheet" type="text/css" media="screen"
href="shared/styles.chblue.css">
<link rel="stylesheet" type="text/css" media="print"
href="shared/template-default-print.css">
<!--[if IE 6]>
<style>
/* dirty hack for IE6. */
#quickbar {
position: absolute;
}
</style>
<![endif]-->
<link rel="start" href="http://wiki.beyondunreal.com/">
<link rel="glossary" href="http://wiki.beyondunreal.com/wiki/Terminology">
<link rel="help" href="http://wiki.beyondunreal.com/wiki/Using_The_Wiki">
<script type="text/javascript" src="shared/dhtml.js"></script>
<script type="text/javascript" src="shared/dhtml-menu.js"></script>
<style type="text/css">#dhtml-menu { background: #eee; padding: 5px 0px; margin-right: -20px; border: 1px solid #888; border-left: 1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #888; border-bottom: 1px solid #888 }
#dhtml-menu td { color: #000; font-family: Arial,Helvetica,sans-serif; font-size: 9pt; line-height: 13pt; padding: 1px 10px; cursor: default }
#dhtml-menu a { color: #000; font-family: Arial,Helvetica,sans-serif; font-size: 9pt; line-height: 13pt; text-decoration: none }
#dhtml-menu tt { font-family: monospace; font-size: 9pt }
#dhtml-menu-separator { height: 1px; background: red }
#dhtml-menu-anchor { cursor: default }
</style>
<script type="text/javascript" src="shared/expandable.js"></script>
</head>
<body onLoad="menuInit(); document.cookie='page=Adding_Sunlight; path=/'" class="default">
<div id="scrolling"><!-- contains all except the fixed sidebar -->
<div id="topbar" class="bar">
<div class="righthalf">
<form class="inline" method="post" action="/wiki" enctype="application/x-www-form-urlencoded"><input type="text" name="search" size="20" /> <input type="submit" name="search" value="search" /></form>
</div>
<div class="lefthalf">
<script type="text/javascript"><!--
menuAlignRight = false;
//--></script>
<span><script type="text/javascript"><!--
menuWriteAnchor("Quick Navigation") //--></script></span> | <a href="(start).html">Home Page</a> | <a href="recent-changes.html">Recent Changes</a> | <a href="http://wiki.beyondunreal.com/wiki?action=editprefs">Preferences</a>
</div>
</div>
<div id="content"><!-- contains the title and article -->
<h1 class='pagetitle'><a href="http://wiki.beyondunreal.com/wiki?back=Adding Sunlight">Adding Sunlight</a></h1>
<div class="wiki"><p><em class="em1">This page is one of a sequence of <a href="mapping-lessons.html">Mapping Lessons</a>.</em> </p>
<p><a href="sunlight.html">Sunlight</a> has one tricky property which confounded me for about an hour making my first terrain. The light from a Sunlight <em class="em1">will be blocked by the main subtracted brush itself unless you set its walls to Fake Backdrop</em>. A fake backdrop is used in outdoor areas to make the skybox texture visible in the map. To set this property, click on a wall in the 3D preview window, then hit the <em class="em2">Shift-B</em> key combination to select all the faces of the brush. This is what that should look like in the 3D viewport.</p>
<div class="floatimages"><table border=0 cellspacing=0 cellpadding=0 align=center width=1><tr valign=top><td class="floatimages-block"><div><img alt="[tutorial-terrain-13-Select-Walls]" src="images/tutorial-terrain-13-select.jpeg"></div>
</td>
</tr>
</table>
</div>
<p>On the selected walls do <a href="surface-context-menu.html">Surface Context Menu</a> → Surface Properties, and in the <a href="surface-properties-window.html">surface properties window</a> check the <em class="em2">Fake Backdrop</em> checkbox.</p>
<div class="floatimages"><table border=0 cellspacing=0 cellpadding=0 align=center width=1><tr valign=top><td class="floatimages-block"><div><img alt="[interface-Ed3-surface-flag]" src="images/interface-ed3-surface-flag.png"><p>Caption</p>
</div>
</td>
</tr>
</table>
</div>
<h2><a name="0.1"></a>Adding the Sunlight</h2>
<p><a href="add-an-actor.html">Add an Actor</a> >> <a href="light.html">Light</a> >> <a href="sunlight.html">Sunlight</a> to your level. I like to move it up near the top of the subtracted cube. You'll also want to rotate it so the arrow points in the direction you want the light to shine. <em class="em1">Note:</em> in later builds of UT2003, the "eagle-head" icon as seen below has been replaced by a yellow ball icon, to look like a sun. Don't let this throw you.</p>
<div class="floatimages"><table border=0 cellspacing=0 cellpadding=0 align=center width=1><tr valign=top><td class="floatimages-block"><div><img alt="[tutorial-terrain-16-SunLight-FrontView]" src="images/tutorial-terrain-16-sunligh.jpeg"></div>
</td>
</tr>
</table>
</div>
<p>Now if you rebuild your level the terrain will be visible in the 3D viewport in Dynamic Lighting mode. The default settings for the Sunlight are a little dim, so you may want to increase the lighting brightness & play with the color if you want. </p>
<div class="floatimages"><table border=0 cellspacing=0 cellpadding=0 align=center width=1><tr valign=top><td class="floatimages-block"><div><img alt="[tutorial-terrain-17-Flat-Terrain-Dynamic-Lig]" src="images/tutorial-terrain-17-flat-te.jpeg"></div>
</td>
</tr>
</table>
</div>
<hr class="thin"><p>Next Lesson:</p>
<ul><li><a href="building-a-skybox.html">Building A SkyBox</a></li>
</ul>
<h2><a name="0.2"></a>Related Topics </h2>
<ul><li><a href="lighting.html">Lighting</a></li>
</ul>
<h2><a name="0.3"></a>Discussion </h2>
<p><em class="em2">Mr. Neutron:</em> Hope I'm doing this right (editing whole document to add a comment). I didn't understand you saying that subtract brushes "block" sunlight without fake backdrop. What do you mean? Did it not work at all, or did the walls get funny lighting or what? I can't see how this would effect the lighting on the terrain.</p>
<p><em class="em2">Birelli:</em> I'm not positive but I believe the reason that you might think that the large subtractive brush is actually "blocking" the light is that in order to get SunLight, you need to have walls set to fake backdrop for it to come "from". I think it's easier just to think of it as that light comes "out of your skybox" and is transmitted through the fake backdrop walls, although this is most definitely not true in a technical sense.</p>
<p><em class="em2">CCFreak2K:</em> If you go to <a href="creating-a-terrain.html">Creating A Terrain</a>, you'll see that your sunlight actor should be placed in your level, not in your skybox (this is noted further down in that page). You might also want to note that your box without fakebackdrop is much like a solid wall, and I can't remember the last time I saw sunlight go though a solid wall.</p>
<p><em class="em2">Bob_The_Beheader:</em> Wait. I'm confused. Which brushes are you setting to fake backdrop? I hope no one minds me explaining what a fake backdrop is in this lesson. I basically copied the explaination from <a href="surface-flags-ut.html">Surface Flags (UT)</a></p>
<p><em class="em2">Guest:</em> The way I think of it is that when you subtract a space, you are creating its internal ceiling, floor, and four walls. You can place various textures on these. You can also set "fake backdrop" to make the wall "invisible". At runtime, the player will not be aware of the wall unless he/she collides with it, as the renderer will draw the skybox in its place.</p>
<p><em class="em2">Tarquin:</em> IIRC, you should imagine that the sunlight is coming from infinitely far away, and that even though your Sunlight actor is IN your map, the light is coming from outside the subtracted area. So it needs to get through the "ceiling" of your area, so that has to be set to Fake Backdrop to let the light through.</p>
<p><em class="em2">Moofed:</em> If your meshes suddenly start to flicker really badly and you have serveral Sunlight actors, try deleting some. Once I had only 4 Sunlights the flickering went away.</p>
<p><em class="em2">Unknown:</em> (Regarding the "add the Sunlight actor" step) How exactly do you do this? Please fill in the gaps in this explanation.</p>
<p><em class="em2">SuperApe:</em> The link <a href="add-an-actor.html">Add an Actor</a>, as you found out, is a <a href="basic-procedure.html">Basic Procedure</a>, a foundational building block of knowledge in using the editor that will be used in many different tutorials on this wiki. As such, it has been categorized as a "first step" for beginning users of the Unreal Editor. Once you've mastered that knowledge (and the associated terminology used here on the wiki), you will find this becomes second nature. Explaining this basic step (or several others covered in the Basic Procedure pages), would not only appear redundant, but cluttered and eventually disorganized to more experienced users. As a side note, please keep your opinions in the Discussion section of the page.</p>
<hr class="thin"><p><a href="category-mapping.html">Category Mapping</a><br><a href="category-tutorial.html">Category Tutorial</a></p>
<script type="text/javascript"><!--
menuItemAdd("Adding the Sunlight", "#0.1");
menuItemAdd("Related Topics ", "#0.2");
menuItemAdd("Discussion ", "#0.3");
menuWrite() //--></script></div>
</div>
<div id="footer" class="bar">
<p><form method="post" action="http://wiki.beyondunreal.com/wiki" enctype="application/x-www-form-urlencoded">
<a href="(start).html">Home Page</a> | <a href="recent-changes.html">Recent Changes</a> | <a href="http://wiki.beyondunreal.com/wiki?action=editprefs">Preferences</a><br>
<a href="http://wiki.beyondunreal.com/wiki?action=edit&id=Adding_Sunlight">Edit text of this page</a> | <a href="http://wiki.beyondunreal.com/wiki?action=history&id=Adding_Sunlight">View other revisions</a><br>Last edited December 27, 2006 10:23 <a href="http://wiki.beyondunreal.com/wiki?action=browse&diff=1&id=Adding_Sunlight">(diff)</a><br>Search: <input type="text" name="search" size="20" /><input type="hidden" name="dosearch" value="1" /><br><br><small><a href="http://wiki.beyondunreal.com/wiki/Adding_Sunlight">Original page</a> – copy created Sat, Jun 23, 2007</small><div></div>
</form>
</p>
<p>Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
</p>
</div>
</div><!-- close of "scrolling" div -->
<div id="quickbar">
<div id="logo"><a href="http://wiki.beyondunreal.com/"><img src="shared/wikilogo.jpg" width="143" height="100" border="0"></a>
</div>
<div class="qbsitename">
<p>The Unreal Engine Documentation Site</p>
</div>
<div class="qbsection">
<p><a href="metatopics.html">Wiki Community</a></p>
<p><a href="category-category.html">Topic Categories</a></p>
<p><a href="/cgi-bin/imageupload.cgi/wiki-ext/imageupload.htt" target="_blank ">Image Uploads</a></p>
<p><a href="http://wiki.beyondunreal.com/wiki?action=random">Random Page</a></p>
<p><a href="recent-changes.html">Recent Changes</a></p>
<p><a href="offline-wiki.html">Offline Wiki</a></p>
</div><div class="qbsection">
<p><a href="unreal-engine.html">Unreal Engine</a></p>
<p><a href="console-commands.html">Console Commands</a></p>
<p><a href="terminology.html">Terminology</a></p>
<p><a href="category-faq.html">FAQs</a></p>
<p><a href="help-desk.html">Help Desk</a></p>
</div><div class="qbsection">
<p><a href="topics-on-mapping.html">Mapping Topics</a></p>
<p><a href="mapping-lessons.html">Mapping Lessons</a></p>
<p><a href="unrealed-3.html">UnrealEd Interface</a></p>
</div><div class="qbsection">
<p><a href="unrealscript.html">UnrealScript Topics</a></p>
<p><a href="unrealscript-lessons.html">UnrealScript Lessons</a></p>
<p><a href="making-mods.html">Making Mods</a></p>
<p><a href="class-tree.html">Class Tree</a></p>
</div><div class="qbsection">
<p><a href="topics-on-modeling.html">Modeling Topics</a></p>
</div><div class="qbsection">
<p><a href="chongqing-page.html">Chongqing Page</a></p>
<p><a href="log-in.html">Log In</a></p></div>
</div>
</body></html>