Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[Tutorial] Make fog #128600
05/08/07 10:34
05/08/07 10:34
Joined: Oct 2006
Posts: 179
ExtraCortex Offline OP
Member
ExtraCortex  Offline OP
Member

Joined: Oct 2006
Posts: 179
Just use this funcion MakeFog() wenever you want to use fog.


function MakeFog()
{
camera.fog_start = 8000; //Distance
camera.fog_end = 10000; //Max range of the fog
fog_color = 1;
d3d_fogcolor1.red = 64; //Choose the colors
d3d_fogcolor1.green = 64; //Choose the colors
d3d_fogcolor1.blue = 64; //Choose the colors
}

Re: [Tutorial] Make fog [Re: ExtraCortex] #128601
05/08/07 11:45
05/08/07 11:45
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
better idea is to calculate camera.fog_start and end to camera.clip_far;
camera.fog_start = 0.7 * camera.clip_far;
camera.fog_end = 0.9 * camera.clip_far;
and use d3d_fogcolor4 not 1
and firs set colors then set number of fog


Never say never.
Re: [Tutorial] Make fog [Re: tompo] #128602
05/09/07 23:09
05/09/07 23:09
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
what are good settings for fog. my levels look too clear, i need fog. my level is a prison, but i want that dusty dungeon feel. any suggestions?


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."
Re: [Tutorial] Make fog [Re: Blink] #128603
05/10/07 02:24
05/10/07 02:24
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
eh, 3DGS uses distance based fog, you're looking for someting like volumetric fog...

This is harder to accomplish, and often looks bad (hard edges along surfaces), but it's been done before.


xXxGuitar511
- Programmer
Re: [Tutorial] Make fog [Re: xXxGuitar511] #128604
05/12/07 10:56
05/12/07 10:56
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline
Junior Member
luke_was_ere  Offline
Junior Member
L

Joined: Mar 2007
Posts: 69
Try R 101 G 18 B 15 for a kinda dakr sandy colour matey.

Re: [Tutorial] Make fog [Re: luke_was_ere] #128605
05/12/07 11:10
05/12/07 11:10
Joined: Mar 2007
Posts: 69
L
luke_was_ere Offline
Junior Member
luke_was_ere  Offline
Junior Member
L

Joined: Mar 2007
Posts: 69
Out of interest, both versions of the fog code dont seem to have any effect on my level at all, regardless of how i change the distance...

Re: [Tutorial] Make fog [Re: luke_was_ere] #128606
05/14/07 02:57
05/14/07 02:57
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
did you get it to work, i havent tried it yet.


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 | 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