Page 1 of 1

0.7 Fog

PostPosted: 23 Jun 2010, 17:16
by stked
(use-fog #t)
(sky-color 0.45 0.0 0.0 0.0)
(fog-color 0.45 0.0 0.0 0.0)
(fog-start 0.0)
(fog-end 200.0)
(fog-density 0.03)

(sun-ambient 0.8 0.6 0.6 0.0)
(sun-diffuse 0.8 0.6 0.6 0.0)
(sun-specular 1.0 0.8 0.8 0.0)

What would all this look like in a 0.7 scene file? Something tells me the 0.45 isn't a R(GB) value...

Re: 0.7 Fog

PostPosted: 23 Jun 2010, 22:18
by Auria
look at the mine track or lighthouse track in SVN

Re: 0.7 Fog

PostPosted: 24 Jun 2010, 15:37
by stked
I did that, but I got a little confused. Would all of those specs go in the sun section of the scene file? Does 0.7 support 4-value sky/fog colors?

Re: 0.7 Fog

PostPosted: 24 Jun 2010, 16:55
by Auria
In scene.xml :

{l Code}: {l Select All Code}
  <sun  fog="true" fog-color="12 6 0" fog-start="0" fog-end="50"/>
  // ...
  <sky-color rgb="12 6 0"/>


3-value colors are supported.
4-value colors for sky/fog wouldn't make sense, alpha sky makes no sense

Re: 0.7 Fog

PostPosted: 25 Jun 2010, 17:11
by stked
What about the sun-ambient, etc. values? Are they 4 value?