User:Enetheru/Mapping/Sun

From Spring
Revision as of 02:41, 24 May 2012 by Enetheru (talk | contribs) (created page, undecided as to its usefulness..might make a larger page about lighting and ditch this one.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.