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
(categories and additional note)
(season section adjusted in line with test results)
Line 41: Line 41:
  
 
==Seasons==
 
==Seasons==
Four sections appear to be possible in descr_skydome.txt  
+
Four sections appear to be possible in descr_skydome.txt, four separately specified sections are used in [[SkyMod]]. The vanilla version of the file only lists colours for:
  skydome winter
 
skydome spring
 
skydome summer
 
skydome autumn
 
the vanilla files only list colours for
 
 
  skydome winter  
 
  skydome winter  
then use the lookup:
+
then uses the lookup:
 
  skydome spring use winter
 
  skydome spring use winter
 
  skydome summer use winter
 
  skydome summer use winter
 
  skydome autumn use winter
 
  skydome autumn use winter
  
On preliminary testing it appears that the game may actually use them according to listed order rather than the noted name.  For instance the last listing (skydome autumn in the instance tested) always seems to be used for custom battles set in summer, custom battles set in winter seem to use the second section.  In the campaign map however winter battles seem to use the first listing (marked as summer in the instance tested) and summer battles on the campaign map seem to use a selection of the skydome types.  This is all somewhat confusing if you expected the seasonal skydome to tie up with the [[descr_daytypes.txt]] season!
+
Testing on BI appears to show that the game actually uses them according to listed order rather than the noted name.  The actual uses from top to bottom appear to be:
 +
:campaign map winter battles
 +
:custom map winter battles
 +
:campaign map summer battles
 +
:custom map summer battles
 +
So at least in BI there appears to be no distinct skydome that ties up with the autumn and spring settings in [[descr_daytypes.txt]], despite the somewhat misleading names of the skydomes!
  
The fact that named season seems irrelevant in this file seems confirmed by the fact that game accepts and loads battles with the names changed to  
+
The season name seems irrelevant as the game accepts and loads battles with the names changed to  
 
  skydome notwinter
 
  skydome notwinter
etc.... However it does not seem possible to add a 5th skydome colour section without CTD.
+
etc....  
 +
 
 +
It does not seem possible to add a 5th skydome colour section without CTD, that is probably explained by the fact that the skies are just used for the four battle types listed above.
  
 
==Note about descr_pallete.txt==
 
==Note about descr_pallete.txt==

Revision as of 09:14, 3 August 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.

Seasons

Four sections appear to be possible in descr_skydome.txt, four separately specified sections are used in SkyMod. The vanilla version of the file only lists colours for:

skydome winter 

then uses the lookup:

skydome spring use winter
skydome summer use winter
skydome autumn use winter

Testing on BI appears to show that the game actually uses them according to listed order rather than the noted name. The actual uses from top to bottom appear to be:

campaign map winter battles
custom map winter battles
campaign map summer battles
custom map summer battles

So at least in BI there appears to be no distinct skydome that ties up with the autumn and spring settings in descr_daytypes.txt, despite the somewhat misleading names of the skydomes!

The season name seems irrelevant as the game accepts and loads battles with the names changed to

skydome notwinter

etc....

It does not seem possible to add a 5th skydome colour section without CTD, that is probably explained by the fact that the skies are just used for the four battle types listed above.

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.