Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Grant, dr_panther, AndrewAMD), 1,379 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Fog #132603
05/29/07 20:16
05/29/07 20:16
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline OP
Newbie
Afox  Offline OP
Newbie

Joined: May 2007
Posts: 43
Austin, TX
Stupid question... how do you turn the fog on?

I tried changing fog parameters in diaplay00.wdl. I tried changing color in all the fogs in material properties. I have scoured the internet for a fog tutorial I have read the manual cover to cover and have not found one simple sentance that tells you how turn on the fog.


A7.86 Pro/Artist
Alex's 3D
Re: Fog [Re: Afox] #132604
05/29/07 20:17
05/29/07 20:17
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
AUM30 has a good example for Volumetric fog, maybe use this one ...

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: Fog [Re: rvL_eXile] #132605
05/29/07 20:29
05/29/07 20:29
Joined: Mar 2003
Posts: 4,264
Wellington
Nems Offline

.
Nems  Offline

.

Joined: Mar 2003
Posts: 4,264
Wellington
Something like this added inside of Main, at bottom.

bg_color = 5;//play with this value
d3d_fogcolor1.red = 250;//play with this value
d3d_fogcolor1.green = 150;//play with this value
d3d_fogcolor1.blue = 30;//play with this value
fog_color = 1;

camera.fog_start = 0.01 * fog_range; // fog at 75% of fog_range
camera.fog_end = 6 * fog_range;// fog till 100% of fog_range

Use your own bckground color and fog colors

Re: Fog [Re: Nems] #132606
05/29/07 20:52
05/29/07 20:52
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline OP
Newbie
Afox  Offline OP
Newbie

Joined: May 2007
Posts: 43
Austin, TX
That just crashes the game

My question is why doesn't it work when i change the parameters and colors of the fog in the existing fog script or the map properties editor?

Example in the display00.wdl the code looks like this

// section: Fog Settings

// entry: Fog color Index
// help: Select the fog color from the Map Prop panel in WED.
// cntl: spin 0 5 1
// id: 52
fog_color = 0;

// entry: Fog Start
// help: Percent of clip_range until fog start
// help: There won't be any fog closer than fog_start
// id: 50
camera.fog_start = 75;
camera.fog_start /= 100;
if(camera.fog_start < 0) { camera.fog_start = 0; }


// entry: Fog End
// help: Percent of clip_range until fog end
// help: The world will be all foggy beyond fog_end
// id: 51
camera.fog_end = 90;
camera.fog_end /= 100;
if(camera.fog_end < 0) { camera.fog_end = 0; }

camera.fog_start = camera.fog_start * camera.clip_far; // fog at 80% of clip_range
camera.fog_end = camera.fog_end * camera.clip_far; // fog till 90% of clip_range
}

I change the fog color to 1 and I assume that relates to the 1 slot in the map properties fog color editor

I changed the start and end ranges countless of times in countless of combonations and nothing has any effect whatsoever.

What am I missing?


A7.86 Pro/Artist
Alex's 3D
Re: Fog [Re: Afox] #132607
05/29/07 22:15
05/29/07 22:15
Joined: May 2007
Posts: 43
Austin, TX
Afox Offline OP
Newbie
Afox  Offline OP
Newbie

Joined: May 2007
Posts: 43
Austin, TX
I got it. You have to decrease the camer.clip_far range too.


A7.86 Pro/Artist
Alex's 3D

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