View Single Post
  #6  
Old 10-08-2003, 12:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

In that case all you really need to do is add a texture and change its image every time your system updates it. In the following example I'm assuming the name of your image file is "image.bmp".
Code:
texture = viz.add('image.bmp')

def mytimer(num):
    #Reload the image file to the texture
    texture.load('image.bmp')

viz.callback(viz.TIMER_EVENT,mytimer)
#Start a timer that will continuously update the texture
viz.starttimer(0,0.01,viz.FOREVER)
This example isn't too good because it will constantly reload the image, it would be better if you only reloaded the image when it is changed.

If you need any consulting you can email support@worldviz.com
Reply With Quote