PDA

View Full Version : Fog Wierdness....


k_iwan
11-20-2007, 10:16 PM
Hi Could someone help me out? I just install the fall edition and I 'm having this black fog wierdness. Seems like I can't get rid of this.

I started with;

headLight = viz.MainView.getHeadLight()
headLight.disable()


I loaded the terrain like;

#Load 3D virtual Environment
self.terrain = viz.add('data/world/terrain.osg')
self.terrain.setScale([Globals.SCALE, Globals.SCALE, Globals.SCALE])
#self.terrain.disable(viz.LIGHTING)
self.terrain.disable(viz.FOG)
self.terrain.enable(viz.CULL_FACE)
self.terrain.enable(viz.CULLING)


With Light or No Light, I get same result. What did I do wrong?

Please see attached screenshot.
wierdFog1 - how the scene looks from starting point
wierdFog2 - how the scene looks from 50-100 units from above starting point

Kind Regards,
Iwan

k_iwan
11-20-2007, 10:53 PM
Hi,

I changed the fog type from none to exponential, and it seems to brighten things up. I could be mistaken, but If I remember correctly, setting the fog to none should disable the Fog, no?

Kind Regards,
Iwan

k_iwan
11-20-2007, 11:14 PM
My Apology...

The problem lies in the shader program. It's all fixed now.