Hello.
I have a link til a webcam picture on the internet, that is updating evry 15 seconds (on the internet).
How can I use that in my scene, always the updated picture?
Best regards Tue.
Hello.
I have a link til a webcam picture on the internet, that is updating evry 15 seconds (on the internet).
How can I use that in my scene, always the updated picture?
Best regards Tue.
Depending on which version of XPression you have, you can make a material that is a window capture, and you can just capture that webpage.
Might also look through like RSS feeds from datalinq and try to use that as a method to pull down the image.
You could set up a computer to do a CRON job that downloads the image as a file that is used as a texture.
However, you then might have a caching problem where Xpression doesn’t know the image is updated.
It is this image.
Randers_Viborgvej_Cam1.jpg (320×240) (trafikken.dk)
I tryed to make an xml file with the link, and added it by datalinq, but it does not update the picture when I load the graphic.
Any suggestions, on how to?
I tried doing a couple simple things, but they didn’t work. Xpression is caching.
I haven’t had a chance to try this, but maybe set up a loop that has a script in it. The script would download the image to a predefined name(s). Maybe use two different names and materials. Switch between materials linked to the images after download. This might get around the caching problem.
When using files on disk, XPression will reload the texture in cache if the last modified time changes. This setting is controlled here:
XPression > Edit > Preferences > Texture & Image Cache > ‘Reload textures when the file’s last modified time changes’.
This feature isn’t working here because the image is coming from a URL.
But if you did what Azathoth suggested and downloaded the image in a loop to disk, then this setting in XPression would continually update the image as the file was modified.
Any guide on how to make that loop?
Could it be done in XPression?
Is it possible to run a bat script that I have on the computer?
I have a bat script that gets the file from the web to the computer right now.
I just need a way to run this bat script form XPression, when the scene is online.
Sounds like something I need to try.
Best regards Tue.