#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. |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
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 and object by mouse but don't know how to stop the movement | nlfrnassimi | Vizard | 8 | 04-26-2009 07:23 AM |
Moving view with object | Xliben | Vizard | 2 | 07-25-2005 05:36 PM |