0.7 Fog

0.7 Fog

Postby stked » 23 Jun 2010, 17:16

(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...
Gaming with Netbooks blog
gamingwithnetbooks.blogspot.com

STK editor website
stked.webs.com
User avatar
stked
 
Posts: 141
Joined: 07 Dec 2009, 16:42

Re: 0.7 Fog

Postby Auria » 23 Jun 2010, 22:18

look at the mine track or lighthouse track in SVN
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: 0.7 Fog

Postby stked » 24 Jun 2010, 15:37

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?
Gaming with Netbooks blog
gamingwithnetbooks.blogspot.com

STK editor website
stked.webs.com
User avatar
stked
 
Posts: 141
Joined: 07 Dec 2009, 16:42

Re: 0.7 Fog

Postby Auria » 24 Jun 2010, 16:55

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
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: 0.7 Fog

Postby stked » 25 Jun 2010, 17:11

What about the sun-ambient, etc. values? Are they 4 value?
Gaming with Netbooks blog
gamingwithnetbooks.blogspot.com

STK editor website
stked.webs.com
User avatar
stked
 
Posts: 141
Joined: 07 Dec 2009, 16:42

Who is online

Users browsing this forum: No registered users and 1 guest