![]() |
#3
|
|||
|
|||
The following code has two scenes that are shown side by side. The viewpoint moves at different speeds in each one:
Code:
import viz import vizact viz.go() road1 = viz.addChild('tut_ground.wrl',scale=[0.02,1,1]) road2 = road1.copy(scale=[0.02,1,1],scene=2) leftWindow = viz.MainWindow leftWindow.setSize([0.5,1]) rightWindow = viz.addWindow(pos=[0.5,1],size=[0.5,1]) rightView = viz.addView(scene=2) rightWindow.setView(rightView) leftView = viz.MainView leftView.move([0,0,-25]) rightView.move([0,0,-25]) def moveViews(): leftView.move([0,0,.03]) rightView.move([0,0,.1]) vizact.ontimer(0,moveViews) |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
rotate around moving axis | moneim230 | Vizard | 1 | 07-14-2010 09:04 AM |
Stop moving after few seconds?? | Chrissy2009 | Vizard | 8 | 05-10-2009 02:47 PM |
Moving avatars lips with sound | dan12345 | Vizard | 5 | 01-29-2008 07:32 PM |
Moving view with object | Xliben | Vizard | 2 | 07-25-2005 05:36 PM |
moving viewpoint vs. translating Head_pos | bailenson | Vizard | 5 | 02-01-2005 01:51 PM |