![]() |
|
#1
|
|||
|
|||
|
Video on moving object
Can a video be rendered on an object that is moving.
Or Can a video be rendered to a part of the screen (e.g. top right corner) independent of the movement of the subject in the scene? Thank you for your help. |
|
#2
|
|||
|
|||
|
Video can be applied as a texture to stationary or moving objects in the environment. Video can also be applied to the screen using a texture quad:
Code:
import viz
import vizact
viz.go()
dojo = viz.addChild('dojo.osgb')
video = viz.addVideo('vizard.mpg')
video.play()
video.loop()
quad = viz.addTexQuad(parent=viz.ORTHO, scale=[100,100,0])
quad.texture(video)
viz.link(viz.MainWindow.RightTop,quad,offset=(-50,-50,0))
movingQuad = viz.addTexQuad(pos=[0,1.8,2])
movingQuad.texture(video)
movingQuad.runAction(vizact.move(0,0,1,time=6))
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Playing a video on a object that is moving. | Jose | Vizard | 8 | 01-29-2015 02:22 PM |
| moving object forward backward | Zword | Vizard | 4 | 01-20-2011 09:21 AM |
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
| Attaching sound to a moving object | GiudiceLab | Vizard | 6 | 08-21-2009 09:52 AM |
| Moving view with object | Xliben | Vizard | 2 | 07-25-2005 06:36 PM |