PDA

View Full Version : Plain Infinite Terrain + Sky


kovitch
12-23-2010, 05:29 AM
Hi,

I'm trying to generate an infinite and plain terrain to my vizard world. However, I am troubled, because using:

terrain = viz.add('InfiniteTerrain.dlc',1,'0',0,30,15000,0.0 005)

will mess with my sky texture (using skydome). The other problem is that the terrain doesn't seem 100% plain.

How can I solve this issues?

Jeff
12-23-2010, 12:09 PM
Does this work for you?
import viz
viz.go()

viz.MainWindow.clip(1, 1000)

terrain = viz.add('InfiniteTerrain.dlc',1,'0',0,30,15000,0.0 005)

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