Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Set Exponential Fog
#1
Hello, Awesome

Another tutorial, Nyan Cat , this time is about the setExpFog command, what it does, is create a exponential fog, is mainly used in game art for vision, Smile

It works like this(sorry, contains lot of parametres if you want to use it properly, if you use all functions until sun red, will work too):

Code:
setExpFog( start distance, halfway distance, red, green, blue, max opacity, transition time, sun red, sun green, sun blue, sun max opacity, sun direction, sun begin fade angle, sun end fade angle )

If I am wrong in something, comment about it.

An example of its use:

Code:
    setExpFog( 101, 50.5, 0.66, 0.83, 1, 0.14, 0, 0.82, 0.79, 0.49, (-0.75,-0.29,0.58), 3.54, 76.38, 1.16 );

Nyan Cat says that thats all
Reply

#2
(07-27-2011, 17:33)Yamato Wrote: Hello, Awesome

Another tutorial, Nyan Cat , this time is about the setExpFog command, what it does, is create a exponential fog, is mainly used in game art for vision, Smile

It works like this(sorry, contains lot of parametres if you want to use it properly, if you use all functions until sun red, will work too):

Code:
setExpFog( start distance, halfway distance, red, green, blue, max opacity, transition time, sun red, sun green, sun blue, sun max opacity, sun direction, sun begin fade angle, sun end fade angle )

If I am wrong in something, comment about it.

An example of its use:

Quote: setExpFog( 101, 50.5, 0.66, 0.83, 1, 0.14, 0, 0.82, 0.79, 0.49, (-0.75,-0.29,0.58), 3.54, 76.38, 1.16 );

Nyan Cat says that thats all

what is the red part for? and why is it grouped?
Reply

#3
sun max opacity
[Image: lQDUjba.jpg]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.