User:Enetheru/Mapping/Sun: Difference between revisions

From Spring
Jump to navigationJump to search
m created page, undecided as to its usefulness..might make a larger page about lighting and ditch this one.
 
m added category
Line 1: Line 1:
[[Category:Map making]]
= Sun =
= Sun =
Singular Directional global shadow casting light source.
Singular Directional global shadow casting light source.

Revision as of 14:41, 24 May 2012

Sun

Singular Directional global shadow casting light source. This page deals with only the sun specific properties, it would be better to look at a larger map lighting page.

Specification

SMD

The Sun Properties are in two places in the SMD file listed below.

[MAP]
{
   ...
   [ATMOSPHERE]
   {
      ...
      SunColor = 1.0 1.0 1.0;
   }
   [LIGHT]
   {
      ...
      SunDir=2 1 1;
   }
   ...
}

mapinfo.lua

?

Sun Direction

"Sundir in spring is a vector of X Y Z. If you look at the map in the TA camera (default) left is -X, right is +X up is Y, down is -Y, backwards is -Z and forwards is Z." - Beherith [1]

Sun Colour

The color of the sun in the sky. The values are in the order Red, Green, Blue. This will also effect the size of the star. As the values increase (including over 1.0), the disc will get bigger; the inverse is also true.

Forum Discussions

1 Sun direction question.