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 / DBP - using fog with backdrop

Author
Message
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 7th Apr 2011 02:36
Hi, I have a problem with fog obscuring my backdrop and cant seem to get around it.

Ive been told that fog should not affect my backdrop however it does.

is there some command or setting that excludes backdrop from the fog effect?

thankyou
kezzla

Sometimes I like to use words out of contents
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th Apr 2011 14:39 Edited at: 7th Apr 2011 15:10
I didn't think it did affect the backdrop, only 3D objects should be affected by fog.

Do you have any code that we could look at that demonstrates this?

I'll have a play anyway but it might be something not so obvious in your code...

EDIT: Here's a simple test that shows the backdrop (whether image or colour) is not affected by fog. Maybe the problem is not quite what it seems?



Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 7th Apr 2011 15:41
thank-you for your help.

when I run your program the colored backdrop remains visible with the fog. the textured backdrop does not.



this code shows the problem I'm having. I need to be able to see a textured backdrop through the fog.
its strange as you wouldn't think there would be a difference between the way the fog effects them both.
does your textured backdrop show up through the fog?
thanks again
kezzla

Sometimes I like to use words out of contents
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th Apr 2011 15:55
Quote: "does your textured backdrop show up through the fog?"

Yes it does...

I've attached the whole project and a screenshot.

Attachments

Login to view attachments
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 7th Apr 2011 16:03 Edited at: 7th Apr 2011 16:03
Slight change to your code and using my own image here are the results:




Attachments

Login to view attachments
Kezzla
16
Years of Service
User Offline
Joined: 21st Aug 2008
Location: Where beer does flow and men chunder
Posted: 8th Apr 2011 01:06
that's strange.
ok, so its a bug specific to my system. ill try reinstalling db and direct X and see where that gets me.
thanks for your help in troubleshooting.
kezzla

Sometimes I like to use words out of contents
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 8th Apr 2011 10:48
Good luck!

Login to post a reply

Server time is: 2024-11-16 19:12:50
Your offset time is: 2024-11-16 19:12:50