Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (dr_panther, AndrewAMD, TedMar), 1,371 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fog #433601
12/03/13 12:33
12/03/13 12:33
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Hello Fellow Gamers,
What I would like to do is have a circle of fog starting about five meters around the player - and the fog moves with the player - such that part of the scene is always hazy, or not visible.
I am working in C_SCRIPT (most of the game is in c_script - will convert later).
Any help would be appreciated - I can't find any data about this.
Yours hopefully, David

Re: fog [Re: DAVIDMORETON] #433612
12/03/13 14:35
12/03/13 14:35
Joined: Dec 2003
Posts: 1,225
germany
gri Offline
Serious User
gri  Offline
Serious User

Joined: Dec 2003
Posts: 1,225
germany
hi,

dont know your used scaling and measurement.

Besides that should got handled in some early "Aums".


Quote:
fog_color = (fog_color == 0); // set fog_color to 0 (no fog) or 1
camera.fog_start = 500; // the fog starts at 500 quants
camera.fog_end = 2500; // and ends at 2500 quants


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)
Re: fog [Re: gri] #433614
12/03/13 14:39
12/03/13 14:39
Joined: Apr 2012
Posts: 62
wrekWIRED Offline
Junior Member
wrekWIRED  Offline
Junior Member

Joined: Apr 2012
Posts: 62
3DGS have a built in fog function for that.
http://www.conitec.net/beta/aview-fog_start.htm

default fog color is white. To set predefined fog you can use something like fog_color = 1 default white, 2 for blue, 3 for red and etc.
http://www.conitec.net/beta/afog_color.htm

to use your own fog color use this.
http://www.conitec.net/beta/ad3d_fogcolor.htm

Re: fog [Re: gri] #433630
12/03/13 16:18
12/03/13 16:18
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
Thanks Guys - What I need is the data to make the fog follow the player - ie. as the payer moves around the scene, the fog follows like a 'ring' of mist, obscuring the rest of the scene.
Any ideas? Can't find the data anywhere,
Kind regards, David

Re: fog [Re: DAVIDMORETON] #433632
12/03/13 16:30
12/03/13 16:30
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
But thats what the fog does ???

If you want a dynamic fog ( really following the player ), you can take this great contribution as basic script:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=311390

Cheers


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: fog [Re: rayp] #433638
12/03/13 17:32
12/03/13 17:32
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
the fog mentioned above is drawn around the camera. this is why called as distance fog. probably the camera follows the player, doesn't it?


Free world editor for 3D Gamestudio: MapBuilder Editor

Moderated by  adoado, checkbutton, mk_1, Perro 

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