Log in

View Full Version : How can we add movie file to Vizard program.


mustufahaider
03-11-2009, 02:56 AM
I have added a movie in the format of mpg. but only sound is coming and an error was there :

Warning: TextureRectangle::apply(..) failed, texture rectangle is not support by your OpenGL drivers.

I have wriiten this code for adding movie:
if key == 'm':
mymovie = viz.add('sami1.mpg')
mymovie.loop(viz.ON)
mymovie.play()
screen.texture(mymovie)

I have a file sami1.mpg in its resource folder.
Please tell me the possible solutions.

Thanx in advance.

farshizzo
03-11-2009, 09:06 PM
This means you either have a low-end or very old graphics card. Make sure your graphics driver is up to date. If you still have this problem, then you can work around the issue by resizing your video dimensions to a power of two (16,32,64,128,...).

mustufahaider
03-14-2009, 05:32 AM
Thanx 4 reply but can u tell me how we can change the video size for making it to the powers of 2 .