Thread: video help
View Single Post
  #1  
Old 05-25-2009, 02:58 AM
nasr nasr is offline
Member
 
Join Date: Apr 2009
Posts: 27
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?
Reply With Quote