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.

Dark GDK / BUG REPORT (fog)

Author
Message
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 20th Jun 2008 12:19
I am not sure where to send this information, I have done a search to see if it has already been mentioned, but can find no reference.


Produces Black Fog no matter what iColor value is used.


Produces Black Fog no matter what color values are used.


void dbFogColor ( int iRed, int iGreen, int iBlue );
This only partially works.




YES, I do test for fog support before enabling it eg:


Also, is there some place where updates for DSDK are distributed from?

Thanks
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 21st Jun 2008 05:10
let me see the code as it is in your program
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 21st Jun 2008 15:15
Here is the relevant area of the code



The 5th line down is where I did all my testing.

I hope a solution can be found for this, because I require good fog control for the aircraft sim I am trying to make and visability has to be well over 100Km and the terrain has to be around 3000Km x 3000Km.

Blending fog at a long distance into the sky color works very well.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 21st Jun 2008 17:59
hm...... I don't have that problem with fog, works great for me, changes color, distance and everything fine.

Your signature has been erased by a mod - 120 high maximum please
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 21st Jun 2008 18:25
Quote: "....works great for me,...."


That is strange.

I wonder if it is video card driver related?
I am using an ATI HD3850 on this machine.
What video card are you using?

On my system
dbFogColor ( dbRGB ( int iRed, int iGreen, int iBlue ));

Where the Red entry is, happens to act as the Green entry.
Where the Green entry is, happens to act as the Blue value.
Where the Blue entry is , happens to act as a Black entry.

There is nothing that I can do to produce a RED color.
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 21st Jun 2008 18:37
Pretty sure this was an intended change for objects with multiple texture stages, as I recall seeing a DBP thread about this ages ago.

sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 21st Jun 2008 19:00
Quote: "Pretty sure this was an intended change for objects with multiple texture stages"

Thanks, Is there any workaround that you may know about?


Quote: "works great for me,"

Are you certain????
"dbFogColor ( 255, 0, 0 );" should produce RED fog, and in my case it produces GREEN fog.

What video card are you using?
Michael P
18
Years of Service
User Offline
Joined: 6th Mar 2006
Location: London (UK)
Posted: 21st Jun 2008 22:38
Don't know if they fixed this but there used to be a bug in DBP where objects that had shaders applied appeared black when in fog.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 21st Jun 2008 23:10
Quote: "Are you certain????
"dbFogColor ( 255, 0, 0 );" should produce RED fog, and in my case it produces GREEN fog.

What video card are you using? "


yeah, I get a green fog too...... That is weird. Hm.... Forget about what I said before...

Hm.... Well that is strange..... I will try and get a red fog, I think I got that once before, I can't remember......

Good Luck

Your signature has been erased by a mod - 120 high maximum please
elantzb
16
Years of Service
User Offline
Joined: 10th May 2008
Location: Classified
Posted: 22nd Jun 2008 03:32
i was having issues with my dbCLS(). the RGB values were all screwed up. to get green I needed to do something like RGB(50,0,0);
sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 22nd Jun 2008 03:42
Hi Michael P,

void dbFogColor ( int iColor );
still produces black fog.

And
void dbFogColor ( dbRGB ( int iRed, int iGreen, int iBlue ));
Using the "int iBlue" entry also produces black fog.

I suspect it is just some sort of transposition error for the passed in entries to the functions that are causing the proble, and should be very easy to correct, but without the source code for the 2 functions, I can not be certain.

I can not even go directly to the DirectX API to activate fog as I don't know how to get a handle on the terrain itself.



sydbod
16
Years of Service
User Offline
Joined: 14th Jun 2008
Location: Just look at the picture
Posted: 22nd Jun 2008 03:51
Hi elantzb,


Quote: "i was having issues with my dbCLS(). "


Yes I noticed this also.

There are a number of functions that do not actually exist although they are mentioned(I think) in the documentation.

Just of interest, any of the functions that do not appear in Intelisence when the mouse pointer is placed over them appear not to work.

Login to post a reply

Server time is: 2024-09-30 01:31:44
Your offset time is: 2024-09-30 01:31:44