So I'm messing with sky transitioning and stuff and I'm trying to come up with a simple to understand system for adding multiple skies and setting transition times and shit...
Currently I have it set so you just define multiple properties for each sky value...
Here's what 2 skies looks like.
Code:
*snip*
//Skybox for this bsp
sky<graphics/model/sky/halo clear sky.model><graphics/model/sky/halo space sky.model>
skyWaitPeriod<300><300>
skyTransitionPeriod<3000><3000>
//Information about the distance fog in the sky
fogStart<32><32>
fogEnd<512><256>
fogDensity<0.4><0.6>
fogColor<0.07,0.22,0.66,1.3><0.01,0.02,0.09,1.0>
//Information about the ortho sunlight for this bsp
sunRotation<-45,55><-180,55>
sunLightColor<0.91, 0.91, 0.88, 1><0.1, 0.1, 0.33, 1>
sunShadowColor<0.75, 0.88, 0.95, 0.4><0.1, 0.1, 0.33, 0.2>
*snip*
And here's as single static sky.
Code:
*snip*
//Skybox for this bsp
sky<graphics/model/sky/halo clear sky.model>
skyWaitPeriod<300>
skyTransitionPeriod<3000>
//Information about the distance fog in the sky
fogStart<32>
fogEnd<512>
fogDensity<0.4>
fogColor<0.07,0.22,0.66,1.3>
//Information about the ortho sunlight for this bsp
sunRotation<-45,55>
sunLightColor<0.91, 0.91, 0.88, 1>
sunShadowColor<0.75, 0.88, 0.95, 0.4>
*snip*
The game will always start out with the first sky specified. It will wait for the skyWaitPeriod then blend into the next sky over the skyTransitionPeriod. When it gets to the last sky in the list it'll go back to the first sky.
You can have as many skys and transitions as you want with this.
I don't know if this syntax is really good though... Suggestions?
Bookmarks