Hello, I am having issues with having an animated video texture. The program runs without errors but where the video texture should be the texture is only a single color that changes rapidly.
I am using a video that has been proven to work before in panda. I have tried on another computer so I know it is not my video card or something. I tried to scale the texture down, as you can see in the code excerpt.
Are you sure that there are UV’s on your screen geometry? Is 0.1 really an appropriate scale for your UV’s?
What happens if you apply some other texture instead? Does it render on the screen as a solid color, or do you actually see the texture? If it’s a solid color, it indicates a problem with your UV’s.
You can also try applying the texture to a card with good UV’s, for instance as generated by the CardMaker.
I had a similar problem which I suspect to be a bug.
Try adding nodepath.clearTexture() immediately before your setTexture call.
Also, which version of Panda are you using?
Thanks for the quick reply. I was able to solve the problem by adding a file texture to the object in maya, then deleting the filename and path to the image in the egg file, so it looks like this:
So it is only this (very hacky) method that works for me. A texture file must be assigned, but it must be missing when panda looks for it. Then the movie file texture can be assigned to the object and it looks fine.
I’m not sure the underlying problem but maybe this workaround sheds some light on the issue?
ps. i’m on panda 1.6.2 (this version is necessary)
It is possible that maya2egg will omit the UV’s if it does not believe there is a texture on the model.
That sounds likely to be the culprit in your case, particularly because the symptoms you describe sound like what you would get if you apply a video texture to a model with no UV’s.