Ad sky to track

Hi guys,
i'm trying to build a tracy with BTB, which world quite well, except that the track doesn't have a sky.
Any idea how i can ad a sky?
Running Racer v 0.8.37
cheers
 
I took sky.dof and sky.tga from carlswood and copied it to my track. Added some code to track.shd but nothing changed.
Code:
vf_sky
{
  vertex_shader
  {
    ;file=sky_daynight_v.cg
    file=sky_v.cg
  }
  fragment_shader
  {
    ;file=sky_daynight_f.cg
    file=sky_f.cg
  }
}
 
shader_sky~vf_sky
{
  sky=1
  cull=none
  layer0
  {
    map=sky_clouds.tga
    depthwrite=0
    depthfunc=always
  }
  layer1
  {
    map=sky_night.tga
    depthwrite=0
    depthfunc=always
  }
 
It also needs to go in geometry.ini of course. Carlswood just has
Code:
sky01
{
  file=sky.dof
  flags=0
}

There's a flag for having the skybox move around with the player, but for small tracks this is adequate.
 
Awesome, thanks a lot. finally its usable.
However, the sky is really bright. Can you tell me if I can change this? or is it just changing the sky.tga?
thanks a lot for the help.
 
when you're ingame, enter 'edit tod' which means Time Of Day, a relative new feature. From there, you can tweak each TOD point & get the brightness value as you intend.

There's also sunny = 0 - 10 or clouds = 0 - 3, just choose a value from the range I've indicated.
Last thing, the range of sky values was re-normalized to 0-1 range along with other variables, so keep an eye on it & compare older special.inis to newer ones, to get the big picture !

Make sure you read racer.nl, it's full of info...
 
Thanks for the help so far.
After I add the sky on a computer with nvidia graphics (nvidia geforce 8600 gts) the track and all objects turn dark. The sky can be seen and when I turn on headlights i can see some objects.
Don't have the problem on a friends computer with ati graphics (ATI Radeon 4800).
Any suggestions on how to "turn on tthe light"?
 

Latest News

Do you prefer licensed hardware?

  • Yes for me it is vital

  • Yes, but only if it's a manufacturer I like

  • Yes, but only if the price is right

  • No, a generic wheel is fine

  • No, I would be ok with a replica


Results are only viewable after voting.
Back
Top