User Tools

Site Tools


hpl2:tutorials:level_editor:tutorial_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
hpl2:tutorials:level_editor:tutorial_1 [2011/02/15 21:05]
l1ght5h0w [The basic objects]
hpl2:tutorials:level_editor:tutorial_1 [2011/02/15 21:05]
l1ght5h0w [Lighting]
Line 36: Line 36:
  
  
-Let us start by making a light that comes in from the window. Select the '​Light'​ button in the toolbox and then select the spotlight. Put it outside the window and select the '​Spot'​ tab. Here you can rotate it so its light points towards the room. As you may notice, the light is not filling the whole room. Its radius is too small for this room, so change it to 17.5. It looks a bit strange since it only illuminates a small spot on the floor. We will remedy this by using a custom falloff map. Click on the '​…'​ button next to the spot falloff map field and select '​light_falloff_short_fade.tga'​. ​   Now the room is much brighter. White light may look nice, but in some cases you may want a warmer color. Switch back to the '​General'​ tab and find the box marked '​Diffuse Color'​. Click it to change the color of the light. Choose a nice fitting color (I chose R=0.7 B=0.7 G=0.55). In the check box under the color you can toggle the shadows on/off. In this case we will leave it off since it may give us strange shadow when the light is outside the level.+Let us start by making a light that comes in from the window. Select the '​Light'​ button in the toolbox and then select the spotlight. Put it outside the window and select the '​Spot'​ tab. Here you can rotate it so its light points towards the room. As you may notice, the light is not filling the whole room. Its radius is too small for this room, so change it to 17.5. It looks a bit strange since it only illuminates a small spot on the floor. We will remedy this by using a custom falloff map. Click on the '​…'​ button next to the spot falloff map field and select '​light_falloff_short_fade.tga'​. ​   Now the room is much brighter. White light may look nice, but in some cases you may want a warmer color. Switch back to the '​General'​ tab and find the box marked '​Diffuse Color'​. Click it to change the color of the light. Choose a nice fitting color (I chose R=0.7B=0.7G=0.55). In the check box under the color you can toggle the shadows on/off. In this case we will leave it off since it may give us strange shadow when the light is outside the level.
  
  
-With the light streaming in from the window, you might notice that the unlit parts are still pitch black. This does not look very natural and to remedy this we will place a box light in the middle of the level. Change the size so it encapsulates the whole level and pick a fitting color, preferably a dark color since this will be the only light in the dark corners (I chose R=0.085 B=0.08 G=0.14).+With the light streaming in from the window, you might notice that the unlit parts are still pitch black. This does not look very natural and to remedy this we will place a box light in the middle of the level. Change the size so it encapsulates the whole level and pick a fitting color, preferably a dark color since this will be the only light in the dark corners (I chose R=0.085B=0.08G=0.14).
  
  
-In the final room we will set up a somewhat unatural ambient lighting with a point light. Select the point light and place it in the middle of the second room. Change the radius until the room is lit to your satisfaction. Change the light to a fitting color (I chose R=0.195 B=0.36 G=.59).+In the final room we will set up a somewhat unatural ambient lighting with a point light. Select the point light and place it in the middle of the second room. Change the radius until the room is lit to your satisfaction. Change the light to a fitting color (I chose R=0.195B=0.36G=.59).
  
  
hpl2/tutorials/level_editor/tutorial_1.txt · Last modified: 2011/04/26 23:24 by jacksonemg