WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Fog on the horizon (https://forum.worldviz.com/showthread.php?t=2088)

Jerry 06-12-2009 11:18 AM

Fog on the horizon
 
I'm trying to make the horizon foggy so that it doesn't look like
a sharp line between ground and sky. The problem is that the
fog works on the ground but not on the sky. Here is my code:

Code:

from viz import *

go()

env = viz.add(viz.ENVIRONMENT_MAP,'sky.jpg')
sky = viz.add('skydome.dlc')
sky.texture(env)

terrain = viz.add('InfiniteTerrain.dlc',1,'456',0,700,15000,0.005)

grass = viz.add('gb_noise.jpg')
grass.wrap(viz.WRAP_S,viz.REPEAT)
grass.wrap(viz.WRAP_T,viz.REPEAT)
terrain.texture(grass)
terrain.emissive(1,1,1)
terrain.command(1,'',0,0) 
clip(0.5, 100)

fog(2,20)
fogcolor(WHITE)

Is there a way to make the sky foggy as well as the ground?


All times are GMT -7. The time now is 03:41 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC