#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
The code you posted looks fine. Was the other code that loaded the video running on a different machine?
|
#3
|
|||
|
|||
It was the same machine, same video for both codes.
|
#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 |
#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? |
#7
|
|||
|
|||
Are you running the 64-bit version of Vizard 5?
|
#8
|
|||
|
|||
Yes, its the 64 bit version.
|
#9
|
|||
|
|||
Do you have the 64-bit version of any necessary video codecs installed on your system?
|
|
|
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 |