WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   video help (https://forum.worldviz.com/showthread.php?t=2051)

nasr 05-25-2009 02:58 AM

video help
 
hi...im trying to add a video to my application with the following code:
[code]
import viz

viz.go()

myroom=viz.add('room.wrl')
#Create a texture quad to display video texture
quad = viz.add(viz.TEXQUAD)
#Create a transform to scale coordinates to size of video
xform = viz.Transform()
xform.setScale(640,480,1)
#Apply texture matrix to quad
quad.texmat(xform)
#Create a video texture of type viz.TEX_RECT
myvideo = viz.add('video.mpg',viz.TEX_RECT)
#Apply video texture to quad
quad.texture(myvideo)
[\code]

and im getting the following warning..wats the reason?

nasr 05-25-2009 03:02 AM

sorry forget to post the warning..


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

farshizzo 05-26-2009 11:42 AM

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,...).


All times are GMT -7. The time now is 09:22 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC