Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 3

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 3

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/poll/poll_cookie.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 3
.map :: Mapping for MoHAA

 
IRC :: #.map on Quakenet.org or simply go to irc://irc.quakenet.eu.org/.map
 

 
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 57

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 57

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/leftindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 57
 
 

Basic Lighting :: Surgeon
-------------------------------------------------------------------------------

For this tutorial I have created a room (hollow box) with the dimensions of (approx: 512 x 512 x 512) similar to the one created in the First Room tutorial.

Note : The kind of light we are going to cover is the light that is emitted by a standard lamp or light fitting. It is not sunlight and these types of lights should not be used to light large outdoor areas. If you wish to learn how to create sunlight, please feel free to read the Sunlight tutorial.

To add a light to your level right click on the map. Select light from the long list that appears and voila, your first light.

At the moment the light is white and has a radius of 300 units. Lets change the colour of the light. There are 2 ways to do this.

(1) With the light still selected (red border) press k. This brings up the colour chooser. Simply select the colour you want.

 

(2) With the light selected press n. This brings up the entities properties. Find the key and value entry boxes. In the key box type _color. In the value box type the RGB number for the colour you want ie : 0.0 0.0 1.0 is blue, 1.0 0.0 0.0 is red and so on. Hit return and the light should turn to that colour.


Changing the radius of the light is done in the same way. With the entity properties box still open, type light in the key box, and a number under the value. The number is the "range" of the light. Place an infoplayerstart into your map, save, compile and then enjoy.

Tip on good mapping practise : Always have a "source" for a light. i.e a lamp or light model. It makes the map look far more professional

Need any help : Ask in the Forum

 


 
Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 176

Warning: include(http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php): failed to open stream: no suitable wrapper could be found in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 176

Warning: include(): Failed opening 'http://map.planetmedalofhonor.gamespy.com/mohaa/rightindex.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 176


 


Warning: require(): open_basedir restriction in effect. File(/home/map/cgi-bin/mohaa/poll/include/config.inc.php) is not within the allowed path(s): (/var/www/vhosts/own3mall/mohaaaa.co.uk:/usr/share/php:/usr/share/pear) in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 187

Warning: require(/home/map/cgi-bin/mohaa/poll/include/config.inc.php): failed to open stream: Operation not permitted in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 187

Fatal error: require(): Failed opening required '/home/map/cgi-bin/mohaa/poll/include/config.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/vhosts/own3mall/mohaaaa.co.uk/httpdocs/mohaa/tutorials/basic_lighting.php on line 187