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/sunlight.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/sunlight.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/sunlight.php on line 3 .map :: Mapping for MoHAA
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/sunlight.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/sunlight.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/sunlight.php on line 57
This tutorial is going to introduce you to the concept
of outdoor lighting. In MoHAA's large levels its impossible
to light the entire map using light entities. For this
reason it is possible to create a "sun" for
your map.
To start of with create a box (textured with the caulk
texture) around this and hollow it (normally I wouldn't
recommend using hollow, but this is just for demonstration
purposes. Select the floor face and give it a nice grassy
texture.
Select the remaining 5 inside faces of the box (ctrl
+ shift + left click) and then select a suitable sky
texture (type sky in the white box in the top left corner
of MoHRad and some sky textures will appear in the texture
window). Then deselect everything.
Hit the n key to bring up the entity properties. The
main window should show worldspawn selected. Then enter
the following values:
suncolor 70 70 70
sundirection -45 90 0
sunflarename sun
Suncolor, is the actual sunlight. The 3 numbers are
the % value of red light, green light, and blue light.
The higher the numbers are, the brighter the sunshine
is.
Sundirection is the direction in which the sunshine
comes from. This is usseful when it comes to creating
shadows. The first 2 numbers are angles, whilst the
3rd doesn't seem to do anything.
Sunflarename - simply adds a nice flare effect when
the players look at the sun.
Another useful lighting method is ambient light. It
lights all your maps models and can be used to raise
the light in areas of darkness. It does effect the entire
map:
ambientlight 20 20 20 is a good one to use.
After entering all these values, inset an infoplayerstart,
save your map, compile it and enjoy the beat of the
sun on your face and the lovely view of a sky.
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/sunlight.php on line 152
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/sunlight.php on line 152
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/sunlight.php on line 152
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/sunlight.php on line 163
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/sunlight.php on line 163
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/sunlight.php on line 163