Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / fog function help

Author
Message
r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 15th Dec 2007 23:03
I am trying to get this code to gradually increase the amount of fog but it isnt working, i have tried it a few different ways and i keep getting error messages

this is my code



if anyone could help me out getting this to work that would be great

PresFox
19
Years of Service
User Offline
Joined: 28th Aug 2005
Location:
Posted: 15th Dec 2007 23:39 Edited at: 15th Dec 2007 23:42
what error messages?

EDIT:

The problem lies in your inc command, you cant use it like that

this will work:



Microsoft isnt evil, they just make really crappy operating systems -- Linus torvalds
r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 15th Dec 2007 23:51
thanks, i coulda sworn i had tried it like that before but thanks for the help

r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 15th Dec 2007 23:57
k, it compiles now, but the screen is just black, any suggestions?

MonoCoder
18
Years of Service
User Offline
Joined: 4th Dec 2005
Location: england
Posted: 16th Dec 2007 00:23


Except you won't see anything with just that, you need an object that will have the fog affect it. And you'll also want to look into using sync commands.

EBA; FUI; Mario Land Ripoff.
Every time you post a joke in the form of code, mace yourself.
r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 16th Dec 2007 00:43
@mono
that one worked, thanks for the help

r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 16th Dec 2007 00:56
nvm looks like i posted too soon, the last one compiles, and the level shows up, but it doesnt seem like the fog effect is actually working

note: i had to take out that wait command

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 16th Dec 2007 06:16
Fog isn't a volumetric fog like a mist - it's an effect on objects like MonoCoder has already said.

You can make it look a little better by coloring the backdrop the same as the fog.

Are you after this sort of effect:



TDK_Man

r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 16th Dec 2007 08:21
@ TDK yes that is the kind of effect i wanted, thanks for the code

@ everyone else, thanks for the help

pcRaider
17
Years of Service
User Offline
Joined: 30th May 2007
Location:
Posted: 17th Dec 2007 05:53
The second syntax.
FOG DISTANCE StartDistance, EndDistance
r3d3y35
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: Canada
Posted: 17th Dec 2007 07:14
@ pc, i just tried that and i really like the effect, i might use that more often

TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 17th Dec 2007 16:54
Quote: "FOG DISTANCE StartDistance, EndDistance"


Good find!

As a DBC user slowly starting to use DBP a little more, I wasn't aware of that addition...

TDK_Man

Login to post a reply

Server time is: 2024-09-27 08:33:15
Your offset time is: 2024-09-27 08:33:15