View Single Post
  #1  
Old 05-16-2013, 01: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