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
(Other influences section added)
(Other Influences)
Line 36: Line 36:
  
 
==Other Influences==
 
==Other Influences==
To explain where some other colours appear from it is necessary to look at [[descr_daytypes.txt]].  The following image from work in progress during testing [[Lycan Rising]]: <br>
+
To explain where some other colours appear from it is necessary to look at [[descr_daytypes.txt]].  The following image is from work in progress whilst attempting to develop new "skymod" for [[Lycan Rising]]: <br>
 
[[Image:Redsky bluesun greenlight.jpg|no it isn't meant to look like this in the end]]<br>
 
[[Image:Redsky bluesun greenlight.jpg|no it isn't meant to look like this in the end]]<br>
 
shows the skydome set to maximum red, the sun_colour in descr_daytypes set to maximum blue and the sunlight in descr_daytypes set to maximum green.  The ambient_''colour''_increase_proportion sections in [[descr_battle_map_lighting_and_fog_control.txt]] also have an influence on the overall effect.
 
shows the skydome set to maximum red, the sun_colour in descr_daytypes set to maximum blue and the sunlight in descr_daytypes set to maximum green.  The ambient_''colour''_increase_proportion sections in [[descr_battle_map_lighting_and_fog_control.txt]] also have an influence on the overall effect.

Revision as of 12:59, 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

Other Influences

To explain where some other colours appear from it is necessary to look at descr_daytypes.txt. The following image is from work in progress whilst attempting to develop new "skymod" for Lycan Rising:
no it isn't meant to look like this in the end
shows the skydome set to maximum red, the sun_colour in descr_daytypes set to maximum blue and the sunlight in descr_daytypes set to maximum green. The ambient_colour_increase_proportion sections in descr_battle_map_lighting_and_fog_control.txt also have an influence on the overall effect.

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.