WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Plain Infinite Terrain + Sky (https://forum.worldviz.com/showthread.php?t=3202)

kovitch 12-23-2010 05:29 AM

Plain Infinite Terrain + Sky
 
Hi,

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

Code:

terrain = viz.add('InfiniteTerrain.dlc',1,'0',0,30,15000,0.0005)
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?
Code:

import viz
viz.go()

viz.MainWindow.clip(1, 1000)

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

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



All times are GMT -7. The time now is 05:18 PM.

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