Fog that doesn't affect skydome/skybox

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Fog that doesn't affect skydome/skybox

Post by Kelebrindae »

Hi,

Could you add a flag (either in the "Fog" command or in the "Skydome"/"Skybox" commands) to avoid that the fog affects the sky.
Something like this:

Fog(RGB(0,188,200),10,20,2000[,#PB_SkyNotAffected])

In the current PB version, as soon as you add some fog, you can't see the sky anymore (=> no "clouds + slight blue fog for the depth cue" :( ).

Thanks
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: Fog that doesn't affect skydome/skybox

Post by Rook Zimbabwe »

That sounds like it could be an OGRE issue not a PB issue? :?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Kelebrindae
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 01, 2008 3:23 pm

Re: Fog that doesn't affect skydome/skybox

Post by Kelebrindae »

Not necessarily true.
If "Skydome" is a native OGRE command, you're right.
But if the Skydome is a dynamically generated mesh/entity with an auto-scrolling OGRE material on it, there's a flag named "fog_override " in the material syntax to disable the fog (http://www.ogre3d.org/docs/manual/manual_16.html#SEC67).

It's just an example, but my point is that, depending on the way PB achieves the Skydome FX, the issue might be fixed within the PB 3D lib.
Post Reply