WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   environment maps, scenes, and you! (https://forum.worldviz.com/showthread.php?t=274)

vadrian 01-12-2005 02:06 PM

environment maps, scenes, and you!
 
so i want to make an experiment where i change the scenes (each with a different environment map). the code i have from the examples is:

env_map = viz.add(viz.ENVIRONMENT_MAP,'Terrain.png')
sky = viz.add('skydome.dlc')
sky.texture(env_map)

however, this only adds the terrain to the first scene. i have tried

env_map = viz.add(viz.ENVIRONMENT_MAP,'Terrain.png', viz.WORLD, scene)

and

sky = viz.add('skydome.dlc', scene)

and

sky = viz.add('skydome.dlc', viz.WORLD, scene)

but the code either throws an error, or it doesn't change anything.

farshizzo 01-12-2005 04:04 PM

Hi,

To add the skydome to the second scene you would do the following:
Code:

skydome = viz.add('skydome.dlc',0,'',0,0,0,0,viz.WORLD,2)


All times are GMT -7. The time now is 03:29 AM.

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