Add fog right above the floor.

Posted By: Vidar

Add fog right above the floor. - 04/15/10 08:42

Hello.

I'm working on a school project and I want to add fog right above the floor in my game. But I dont know how this is done. Hope some of you can help me.

I'm new to Gamestudio and using Gamestudio Pro 6.60 / WED V6.751.

Thanks in advance.
Regard Vidar.
Posted By: Elektron

Re: Add fog right above the floor. - 04/15/10 08:50

New and using pro version?
it seems warez
Posted By: Vidar

Re: Add fog right above the floor. - 04/15/10 08:56

It's the version we get at school laugh
Posted By: DLively

Re: Add fog right above the floor. - 04/16/10 00:48

this is something that a more advanced user would look into.

perhaps you want to start with something simpler, if you are new to 3dgs - like getting a camera working, and having a player walk around a small, simple world.



if you must know how to do this, perhaps you could ask your Teacher, who is supplying the program to you, and is supposed to be teaching you how to use it.

It could be that your teacher is waiting to teach you how to program fog, until much later.
Posted By: Blink

Re: Add fog right above the floor. - 04/16/10 02:53

no, you can use something simple. there is a code for volumetric fog in the AUM's, i oprigianlly used it for my levels, no loss of framerate or anything. i would post the code i use, but it is for A6, not lite-c. of well, here it is anyway, maybe someone will convert it.

Code:
//////////////////////////otherfog///////////////////////////////
action fog_layer 
{ 
     my.passable = on; 
     my.transparent = on; 
     while (1) 
     { 
          my.alpha = max (0, (camera.z - my.z) / 20); 
          wait (1); 
     } 
}


© 2024 lite-C Forums