Page 1 of 1

Loading an image into a presentation during runtime

Posted: 01 Dec 2016, 12:44
by Luke47921
I have a button in my presentation that shows an image which can be selected using my remoting app. My app takes the path of the image, and copies it into Ventuz' image folder, and then sets the scene data to the new path in the Ventuz image folder. This works fine in designer, but when I try to do this in a presentation, the only images that will show are images that are already used elsewhere in the scene.

Does Ventuz do something special when it copies an image over into the images folder? Is there something that I'm doing wrong here?

Re: Loading an image into a presentation during runtime

Posted: 01 Dec 2016, 13:34
by lerou
How do you set the path? You should use a URL node with FILE scheme. Use a path like: .\images\myimage.png. The .\ in the beginning makes it relative to the project or vpr. Use the URLs output (local filename) as input for the texture loader.

If you have problems, put a 2D text into the scene, set it to the filename. That way you can see the path Ventuz is assuming even when running a VPR.

cheers,
rou

Re: Loading an image into a presentation during runtime

Posted: 01 Dec 2016, 15:08
by Luke47921
That's fixed it, thanks! Instead of using URL with the file scheme I was trying to set the path directly as ventuz://images/myimage.png