WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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


All times are GMT -7. The time now is 06:57 PM.


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