I have an application that uses video via
self.moviePlaybackObject.setTexture(loader.loadTexture(videolink), 1)
I’m trying to get that video to strech fully onto a simple plane
<CoordinateSystem> { Y-Up }
<Comment> {
"maya2egg plane.mb plane.egg"
}
<Group> groundPlane_transform {
}
<Group> pPlane1 {
<VertexPool> pPlaneShape1.verts {
<Vertex> 1 {
-0.5 -0.5 0
<Normal> { 0 0 -1 }
<UV> { 0 0 }
<RGBA> { 1 1 1 1 }
}
<Vertex> 2 {
-0.5 0.5 0
<Normal> { 0 0 -1 }
<UV> { 0 1 }
<RGBA> { 1 1 1 1 }
}
<Vertex> 3 {
0.5 -0.5 0
<Normal> { 0 0 -1 }
<UV> { 1 0 }
<RGBA> { 1 1 1 1 }
}
<Vertex> 4 {
0.5 0.5 0
<Normal> { 0 0 -1 }
<UV> { 1 1 }
<RGBA> { 1 1 1 1 }
}
}
<Polygon> {
<Normal> { 0 0 -1 }
<VertexRef> { 3 4 2 1 <Ref> { pPlaneShape1.verts } }
}
}
which is scaled in panda
plane.setScale(2,1,1)
Now, Applying an image texture to that plane, the entire image streches accross the plane, but when applying a video texture, the video only fills part of the plane (about 1/3), and fills the rest with black.
On one specific hardware configuration, textures-power-2 off made the video scale fully accross the texture, but textures-power-2 up and textures-power-2 down or not using textures-power-2 either makes the video fail to load or just scale inaccurately.
The videos in question are not Square videos. they are standard def or dvd def.
Any suggestions?
[/code]