2 registered members (AndrewAMD, NeoDumont),
761
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Add fog right above the floor.
[Re: Vidar]
#319598
04/16/10 00:48
04/16/10 00:48
|
Joined: Apr 2005
Posts: 1,988 Canadian, Eh
DLively
Serious User
|
Serious User
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
|
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.
|
|
|
Re: Add fog right above the floor.
[Re: DLively]
#319604
04/16/10 02:53
04/16/10 02:53
|
Joined: Jan 2006
Posts: 2,157 Connecticut, USA
Blink
Expert
|
Expert
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
|
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.
//////////////////////////otherfog///////////////////////////////
action fog_layer
{
my.passable = on;
my.transparent = on;
while (1)
{
my.alpha = max (0, (camera.z - my.z) / 20);
wait (1);
}
}
My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|