![]() |
|
#7
|
|||
|
|||
|
The following code adds texture quads to each window and textures them. Is this what you are looking for?
Code:
import viz
import vizact
viz.go()
texture = viz.addTexture('ball.jpg')
road = viz.addTexQuad()
road.texture(texture)
road.visible(0)
for i in range(1,100):
road.clone(pos=[0,0,i],euler=[0,90,0])
road.clone(pos=[0,0,i],euler=[0,90,0],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
def moveViews():
leftView.move([0,0,.03])
rightView.move([0,0,.1])
vizact.ontimer(0,moveViews)
|
|
|
Similar Threads
|
||||
| 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 |