Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Descr skydome.txt

From TWC Wiki
Revision as of 08:04, 30 July 2007 by Makanyane (talk | contribs) (New page: ''WIP article currently based on research on RTW/BI only, please add information on M2TW and remove this note'' Descr_skydome.txt simply contains the colours used to tint the sky at vario...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

WIP article currently based on research on RTW/BI only, please add information on M2TW and remove this note

Descr_skydome.txt simply contains the colours used to tint the sky at various times of day for spring, autumn, summer and winter.

An example from the file is:

; sunrise - from 67.5 degrees to 90 degrees (likely not yet peeking over the hills)

0.984		0.929		0.709			;	sunrise_horiz
0.70		0.749		0.756			;	sunrise_mid
0.509		0.572		0.631			;	sunrise_zen

; mid morning - from 90 degrees to 112.5 degrees (likely sun just over hills)

0.556		1		1			;	sunrise_horiz
0.70		0.749		0.756			;	sunrise_mid
0.364		0.607		0.909			;	sunrise_zen

Note that the sunrise and mid morning lines are comments only as are the sunrise_horiz notes at the ends of the lines. This means the order of the entries is hard coded, you can not for instance change the time (degrees of elevation of sun) that the mid morning section starts. The colour values represent proportion of red, green and blue applied to the sky, max value is 1

Changing the relevent segment to extremes shows which areas are effected using

0.999		0.001		0.001			;	sunrise_horiz
0.001		0.999		0.001			;	sunrise_mid
0.001		0.001		0.999			;	sunrise_zen

gives the following result:
Skydome RGB.jpg
you can see the red clearly in the lower part of the sky, it becoming yellow where the green is added and tending more towards green where the blue specified for the zenith is added

Changing the zenith colour to red, eg:

0.999		0.001		0.001			;	sunrise_horiz
0.001		0.999		0.001			;	sunrise_mid
0.999		0.001		0.001			;	sunrise_zen

gives the following effect:
Skydome RGR.jpg
here although you can see some yellowing effect from the green the overall sky effect is mainly red/orange. It is clearly also not having much influence on the unit/ground colouring!

YOU can help us improve this Wiki! ~ Look for ways to help and editing advice. ~ If you need further advice, please post here.