Difference between revisions of "Lighting:General"

From Custom Map Makers Wiki
Jump to: navigation, search
(Created page with "Light: General == How to add a light == Press the rightmousebutton on the 2D-window and choose "light", now there is a popup where you fill in your light-intensity. Its by defau...")
 
 
Line 1: Line 1:
Light: General
+
{{Info|You have to compile your map with the -light option to see any effects.}}
  
 
== How to add a light ==
 
== How to add a light ==
Press the rightmousebutton on the 2D-window and choose "light", now there is a popup where you fill in your light-intensity. Its by default 300.
+
Press the right mouse button inside the 2D window and choose "light". You'll be asked for an intensity. You can change it later by selecting the light entity and pressing "n".
 
 
''Warning: You have to compile your map with -light-option that you can see your light.''
 
  
 
== How to make a colored light ==
 
== How to make a colored light ==
Choose the light, which you want to be color, and press "k", now choose your color and klick on "ok".
+
Select the light entity and press "k". This will open a color selection dialog.
 
 
''Warning: You have to compile your map with -light-option that you can see your light.''
 
  
== How to create target light ==
+
== How to create point lights ==
Create a "target_position" and put it there where you want. Then press "esc" and choose your light, then choose your target_position and now press "shift+k"
+
Create a new light entity as described above.
 +
Create an [[Entities:Info#info_null|info_null entity]] as a target for the light.
 +
Deselect the entity, select the light and select the info_null again. Then press Control-K to connect the light to the entity.
 +
{{Warning|Don't use target_position entities as targets. These entities stay ingame which is not needed for lights.}}
  
''Warning: You have to compile your map with -light-option that you can see your light.''
+
[[Category:Lighting]]

Latest revision as of 12:54, 3 September 2011

Info.png You have to compile your map with the -light option to see any effects.


How to add a light

Press the right mouse button inside the 2D window and choose "light". You'll be asked for an intensity. You can change it later by selecting the light entity and pressing "n".

How to make a colored light

Select the light entity and press "k". This will open a color selection dialog.

How to create point lights

Create a new light entity as described above. Create an info_null entity as a target for the light. Deselect the entity, select the light and select the info_null again. Then press Control-K to connect the light to the entity.

Error.png Don't use target_position entities as targets. These entities stay ingame which is not needed for lights.