WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Video on moving object (https://forum.worldviz.com/showthread.php?t=4647)

Jose 06-17-2013 08:58 AM

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.

Jeff 06-18-2013 05:14 PM

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))



All times are GMT -7. The time now is 04:12 PM.

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