WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-17-2013, 08:58 AM
Jose Jose is offline
Member
 
Join Date: May 2013
Posts: 5
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.
Reply With Quote
  #2  
Old 06-18-2013, 05:14 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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))
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Playing a video on a object that is moving. Jose Vizard 8 01-29-2015 01:22 PM
moving object forward backward Zword Vizard 4 01-20-2011 08:21 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 04:26 AM
Attaching sound to a moving object GiudiceLab Vizard 6 08-21-2009 08:52 AM
Moving view with object Xliben Vizard 2 07-25-2005 05:36 PM


All times are GMT -7. The time now is 07:44 AM.


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