WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-25-2009, 02:58 AM
nasr nasr is offline
Join Date: Apr 2009
Posts: 27
video help trying to add a video to my application with the following code:
import viz


#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()
#Apply texture matrix to quad
#Create a video texture of type viz.TEX_RECT
myvideo = viz.add('video.mpg',viz.TEX_RECT)
#Apply video texture to quad

and im getting the following warning..wats the reason?
Reply With Quote
Old 05-25-2009, 03:02 AM
nasr nasr is offline
Join Date: Apr 2009
Posts: 27
sorry forget to post the warning..

Warning: TextureRectangle::apply(..) failed, texture rectangle is not support by your OpenGL drivers.
Reply With Quote
Old 05-26-2009, 11:42 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
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,...).
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
lat long mapped video Brett Lindberg Vizard 3 02-25-2009 07:41 PM
Video Texturing cheezus69 Vizard 2 04-14-2008 03:26 AM
Video Texture Not Working on Some Objects paulgoldberg Vizard 1 04-17-2006 12:41 PM
How to synchronize play/pause of 2 video streams in stereo Gilliard Vizard 1 09-01-2005 08:58 AM
video jebber Vizard 1 09-28-2004 05:20 PM

All times are GMT -7. The time now is 01:46 AM.

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