WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Rendering different objects and fov's (https://forum.worldviz.com/showthread.php?t=4014)

andrewjworz 11-30-2011 10:23 AM

Rendering different objects and fov's
 
I am creating a virtual forest, and I am wondering if there is any way I can do these two things:

1) First, I would like to switch the field of view after an event occurs. For example, I would like to load the scene,take some screen shots, and after I'm finished with the original fov, I would like to switch to a different field of view with a something like a "yield viztask.waitKeyDown()" event. How can I do this? Can this be done without using multiple scenes?

2) I would also like to initially load the virtual forest with planar-billboards, move the viewpoint through the world, and then substitute the planar billboard object with a 3d object based on some rule relating to my position in the world. For example, if a tree billboard is within 5 meters of the viewpoint, then render the tree as its corresponding 3d object rather than as a billboard. If the billboard is greater than 5 meters, rendering the tree as a billboard is okay. Is is possible to do this? If so, can you please outline the steps I will have to take. Can this be done without using multiple scenes?

-Andy

Jeff 11-30-2011 06:44 PM

1) Yes, this is possible:
Code:

import viz
import viztask

viz.go()
gallery = viz.add('gallery.ive')

def changeFOV():
        yield viztask.waitKeyDown(' ')
        viz.fov(60)
       
viztask.schedule( changeFOV() )

2) You can check the distance between the viewpoint and each billboard using the vizmat.Distance command. The check can be done within a timer function on some regular interval. Based on the distance you can swap a new model in.

If you have access to Vizard 4 this can be accomplished using proximity sensors.

sleiN13 12-01-2011 12:27 AM

Those proximity sensors sound like a interesting feature, I can;t find any documentation about it in the vizard 4 help files. Do you have some examples of it's use?

farshizzo 12-01-2011 09:01 AM

Quote:

Originally Posted by sleiN13 (Post 13229)
Those proximity sensors sound like a interesting feature, I can;t find any documentation about it in the vizard 4 help files. Do you have some examples of it's use?

It's in the latest version. Go to Help -> Check for Updates to download the new version.


All times are GMT -7. The time now is 06:49 PM.

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