WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-16-2013, 02:03 PM
Jose Jose is offline
Member
 
Join Date: May 2013
Posts: 5
Playing a video on a object that is moving.

Hi,

Some background to understand my problem.

In my code I have a car that you can drive with the keyboard.

I added a plane (geometric plane, not an airplane) in front of the car. I have a parent relationship between the plane and the car. So that the plane moves with the car.

Then I want to project a video in the plane that is in front of the car. So I apply the video with a texture (myScreen.texture(LCVideo))

I get this error message:

** ERROR: Failed to construct graph (Pins cannot connect due to not supporting the same transport.)
** ERROR: Failed to load video: 'LandoltCTest.avi'

I'm able to play the video on another code so its not the video.

Below is the part of the code of interest:

LCVideo = viz.addVideo( 'LandoltCTest.avi' )
myScreen = vizshape.addPlane( size=(0.5,0.5),axis=vizshape.AXIS_Y,cullFace=True)
myScreen.parent(self.body)
myScreen.setPosition([0,.75,1])
myScreen.setEuler([0,-90,0])
myScreen.texture(LCVideo)

Thank you of any help that can be given here. This is my first post.
Reply With Quote
  #2  
Old 05-17-2013, 04:01 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The code you posted looks fine. Was the other code that loaded the video running on a different machine?
Reply With Quote
  #3  
Old 05-20-2013, 08:21 PM
Jose Jose is offline
Member
 
Join Date: May 2013
Posts: 5
It was the same machine, same video for both codes.
Reply With Quote
  #4  
Old 05-21-2013, 02:42 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you attach or upload a simple script with the video that reproduces the issue?
Reply With Quote
  #5  
Old 05-22-2013, 12:23 PM
Jose Jose is offline
Member
 
Join Date: May 2013
Posts: 5
Here are the files. (https://notredame.box.com/s/96epe30c57whx3ynq1o7)

The Racetrack.py file is the one to run. The code posted in the first post is from Car.py line 257 to 270.

The code where the video work is Vizard1TestMovie.py

Thanks
Reply With Quote
  #6  
Old 01-29-2015, 09:52 AM
lee.cofer lee.cofer is offline
Member
 
Join Date: Apr 2014
Posts: 6
Has this problem been resolved?

I am getting the same error when I try to use .addvideo, as the original poster did.

It does work when I run it in Vizard4, but when I run it in Vizard5 it throws the error.

Any thoughts?
Reply With Quote
  #7  
Old 01-29-2015, 09:57 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Are you running the 64-bit version of Vizard 5?
Reply With Quote
  #8  
Old 01-29-2015, 02:02 PM
lee.cofer lee.cofer is offline
Member
 
Join Date: Apr 2014
Posts: 6
Yes, its the 64 bit version.
Reply With Quote
  #9  
Old 01-29-2015, 02:22 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Do you have the 64-bit version of any necessary video codecs installed on your system?
Reply With Quote
Reply


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
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 and object by mouse but don't know how to stop the movement nlfrnassimi Vizard 8 04-26-2009 08:23 AM
Moving view with object Xliben Vizard 2 07-25-2005 06:36 PM


All times are GMT -7. The time now is 02:14 PM.


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