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.

Difference between revisions of "Descr skydome.txt"

From TWC Wiki
Jump to navigationJump to search
(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...)
 
(zenith note changed following experimentation)
Line 24: Line 24:
 
gives the following result: <br>
 
gives the following result: <br>
 
[[Image:Skydome_RGB.jpg]]<br>
 
[[Image:Skydome_RGB.jpg]]<br>
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
+
you can see the red clearly in the lower part of the sky, it becoming yellow where the green is added (the colours working here as in additive colour mixing, with red and green making yellow).
 +
The blue colour specified for the zenith seems to have little effect.
  
 
Changing the zenith colour to red, eg:
 
Changing the zenith colour to red, eg:
Line 30: Line 31:
 
  0.001 0.999 0.001 ; sunrise_mid
 
  0.001 0.999 0.001 ; sunrise_mid
 
  0.999 0.001 0.001 ; sunrise_zen
 
  0.999 0.001 0.001 ; sunrise_zen
gives the following effect: <br>
+
gives a similar effect: <br>
 
[[Image:Skydome_RGR.jpg ]]<br>
 
[[Image:Skydome_RGR.jpg ]]<br>
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!
+
None of the sky colours are having much influence on the unit/ground colouring.  That appears to be determined more by the sunlight colour in [[descr_daytypes.txt]]
 +
 
 +
==Note about descr_pallete.txt==
 +
descr_pallete.txt exists in the RTW/data folder and has a very similar layout to descr_skydome.txt  This file appears to be completely redundant, alterations to it have no effect on in-game colouring and it can be deleted from the data folder altogether with no ill effects.

Revision as of 11:02, 30 July 2007

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 (the colours working here as in additive colour mixing, with red and green making yellow). The blue colour specified for the zenith seems to have little effect.

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 a similar effect:
Skydome RGR.jpg
None of the sky colours are having much influence on the unit/ground colouring. That appears to be determined more by the sunlight colour in descr_daytypes.txt

Note about descr_pallete.txt

descr_pallete.txt exists in the RTW/data folder and has a very similar layout to descr_skydome.txt This file appears to be completely redundant, alterations to it have no effect on in-game colouring and it can be deleted from the data folder altogether with no ill effects.