WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-28-2010, 01:33 PM
Mike@vrs Mike@vrs is offline
Member
 
Join Date: Jun 2010
Posts: 7
Tutorial Example - inverted video

Hi

I am following through the example "Getting Your Feet Wet"
and notice that on the screen the video I have selected
is inverted and appears to be a mirror image of what it should be.


#Play a movie on the screen
def playMovie():

mymovie = viz.add('rockpool2.wmv')
mymovie.loop(viz.ON)
mymovie.play()

screen.texture(mymovie)

vizact.onkeydown('m', playMovie)

[question] Can this be adjusted to play correctly.

Thanks
Reply With Quote
  #2  
Old 06-29-2010, 02:42 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
It looks like the texture coordinates on the model are inverted. You can reverse them by using the node.texmat command and setting the wrap mode of the texture to REPEAT:
Code:
#Play a movie on the screen
def playMovie():

	mymovie = viz.add('rockpool2.wmv',wrap=viz.REPEAT)
	mymovie.loop(viz.ON)
	mymovie.play()

	screen.texture(mymovie) 
	screen.texmat(viz.Matrix.scale(-1,1,1))
	
vizact.onkeydown('m', playMovie)
Reply With Quote
  #3  
Old 06-30-2010, 09:49 AM
Mike@vrs Mike@vrs is offline
Member
 
Join Date: Jun 2010
Posts: 7
Inverted video

This solution appears to play the video, however the sound only is heard, the picture is a black screen?
Reply With Quote
  #4  
Old 06-30-2010, 10:26 AM
Mike@vrs Mike@vrs is offline
Member
 
Join Date: Jun 2010
Posts: 7
Inverted video

Hi

I was able to invert the video in windows movie maker (using effects) and the video was then inverted in vizard thus playing correctly. However getting a scripting solution would be good so any advice would be great.

Mike
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
synching video camera recording with vizard billjarrold Vizard 0 12-15-2009 11:43 PM
Adding Multimedia --inverted image adele Vizard 1 06-23-2009 12:00 PM
video help nasr Vizard 2 05-26-2009 11:42 AM
lat long mapped video Brett Lindberg Vizard 3 02-25-2009 07:41 PM
How to synchronize play/pause of 2 video streams in stereo Gilliard Vizard 1 09-01-2005 08:58 AM


All times are GMT -7. The time now is 08:38 AM.


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