Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Add fog right above the floor. #319476
04/15/10 08:42
04/15/10 08:42
Joined: Apr 2010
Posts: 4
V
Vidar Offline OP
Guest
Vidar  Offline OP
Guest
V

Joined: Apr 2010
Posts: 4
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.

Re: Add fog right above the floor. [Re: Vidar] #319477
04/15/10 08:50
04/15/10 08:50
Joined: Oct 2009
Posts: 110
Porto-Portugal
Elektron Offline
Member
Elektron  Offline
Member

Joined: Oct 2009
Posts: 110
Porto-Portugal
New and using pro version?
it seems warez


Carlos Ribeiro aka Elektron
Check my blog: http://indiegamedeveloper71.wordpress.com/
Re: Add fog right above the floor. [Re: Elektron] #319478
04/15/10 08:56
04/15/10 08:56
Joined: Apr 2010
Posts: 4
V
Vidar Offline OP
Guest
Vidar  Offline OP
Guest
V

Joined: Apr 2010
Posts: 4
It's the version we get at school laugh

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 Offline
Serious User
DLively  Offline
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.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
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 Offline

Expert
Blink  Offline

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.

Code:
//////////////////////////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."

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1