Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (TedMar, AndrewAMD, fairtrader), 578 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | 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