Load pictures in runtime from folder

Discussions about SOFTIMAGEs© Interactive Creative Environment©
User avatar
Superpositivo
Posts: 123
Joined: 18 Feb 2013, 13:48

Load pictures in runtime from folder

Post by Superpositivo » 24 Aug 2015, 17:09

Hi, friends!

- Situation:
about 1000 photos are emitted as particles. All these photo must be different, so not repeated, and they are floating in the screen (well, I don't stay here to tell about the animation, these details are not important).
Normally, with much less pictuers, I'd put the pictures already in the scene and then use them as instances to be emitted.
But they are 1000!

- Request:
Is it possibile, in Softimage, Ice, or with whatever script, to load pictures from a folder, without the need to have them on the scene?
Pratically the best would be that every emitted particle should take a photo from a specific folder and so on for every particle.

I'm afraid it cannot do it, but, well...maybe?....

Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 07:44

Re: Load pictures in runtime from folder

Post by Bullit » 24 Aug 2015, 22:09

I think a request like that already appeared here.

User avatar
FXDude
Posts: 1145
Joined: 19 Jun 2012, 19:59

Re: Load pictures in runtime from folder

Post by FXDude » 25 Aug 2015, 21:55

Yes it did, along with a setup scene I beleive.

Let me try and find it..

User avatar
FXDude
Posts: 1145
Joined: 19 Jun 2012, 19:59

Re: Load pictures in runtime from folder

Post by FXDude » 26 Aug 2015, 17:24

Here:
www.si-community.com • View topic - ICE Task

It was for an image gallery, & links are on the second page

Hope it helps!


(Edit: sorry, orig link is on the first page, and links to modified versions and movie clip is on the second)

User avatar
Superpositivo
Posts: 123
Joined: 18 Feb 2013, 13:48

Re: Load pictures in runtime from folder

Post by Superpositivo » 28 Aug 2015, 16:39

First of all, THANKS dudes, Bullit and FXDude!!!

I remembered that gallery, actually I downloaded it and tried to do something, but I have to admit that it's more complex than my need (and than what I can understand about). But that example of gallery have ONE thing that I need and that I don't know how to do it.

I saw that all the pictures are loaded as a sequence on an grid that is instantiated.

I can emit particles based on the picture number in the sequence, but the emission would be related on the timeline, like Frame 1 > Pic 1, Frame 2 Pic 2 etc.
It means that to emit the 1000th photo I need to arrive at the 1000th frame. And I cannot do that.

The thing I don't know how to do is how to emit a certain number of particles on frame 1 (or 2), and assign to each one a picture from the sequence. It means that if I emit 10 particles, they will have pictures from 1 to 10.
I see in the gallery file it does it. But I cannot figure it out how.

So maybe some of you have a clue about it?

User avatar
FXDude
Posts: 1145
Joined: 19 Jun 2012, 19:59

Re: Load pictures in runtime from folder

Post by FXDude » 29 Aug 2015, 20:38

Superpositivo wrote:I remembered that gallery, actually I downloaded it and tried to do something, but I have to admit that it's more complex than my need
By the sound of it, this seems more like what you're looking for no? :

http://xsisupport.com/2010/02/21/sprite ... particles/

User avatar
rray
Moderator
Posts: 1810
Joined: 26 Sep 2009, 13:51
Location: Bonn, Germany

Re: Load pictures in runtime from folder

Post by rray » 30 Aug 2015, 10:27

FXDude wrote:By the sound of it, this seems more like what you're looking for no? :

http://xsisupport.com/2010/02/21/sprite ... particles/
Here's a scene that uses this "time source" input method.
"time source" is a little odd, it expects an attribute input that's somehow related to the sequence number, and also related to the fps settings, couldn't quite figure it out but got something that works.
Also renders only with mental ray, so I don't know how useful it is.
Viewport shouldn't be set to textured either because this is very slow (1 fps here for 100 images)
You do not have the required permissions to view the files attached to this post.
softimage resources section updated Sep 26th 2026

User avatar
Superpositivo
Posts: 123
Joined: 18 Feb 2013, 13:48

Re: Load pictures in runtime from folder

Post by Superpositivo » 31 Aug 2015, 21:37

Thanks a lot!
@FxDude It was really helpful! I didn't do it exactly as the example from Stephen. I made it simple (more because I don't know why, but I wasn't able to create a custom attribute, then with the RRay example it was clear why...), anyway, it worked.

@RRay, I saw the scene and pratically is the same as the one from Stephen, but that let me undestand something more about it and it's good for the generation of the particles. Interesting. Thanks a lot! Actually for only 100 images is slow, but I think it's ICE that slow. My scene is a little faster with 100 images, but slow, anyway.

I was looking for a way to add a unique picture to each particle at the first frame without any repetition. So now I think this is done.

Thanks a lot to everybody!!!

Here it is my Render Tree and Ice (images and scene are not the real work).
You do not have the required permissions to view the files attached to this post.

User avatar
FXDude
Posts: 1145
Joined: 19 Jun 2012, 19:59

Re: Load pictures in runtime from folder

Post by FXDude » 06 Sep 2015, 02:03

Sorry missed your reply! cool then! and that (all of this) is actually pretty good knowledgebase material! :) Thanks!