Image I\O From ICE

Plugins linking to this thread: (hide)

Image I/O from ICEAuthor: Oleg Bliznuk
Originally developed for testing his Implosia FX toolset, Mr. Core recently released these compounds that allow to import and export image (.BMP/.TIFF/.PNG/.JPG) and mesh files (.OBJ, UV not yet supported) within ICE.

For image handling, this package includes the Build PCloud from Image compound that converts the output array from the IFX Read Image node into a pointcloud, which can be further modified by ICE and then written back to an image file through the factory build array from set node plugged into IFX Write Image. This allows a PixelParticles-like workflow (See PixelParticles description further below) for doing for example image manipulations inside ICE.

The local backup archive contains all files collected from the si-community thread (see below) including some additional compounds by Fabricio Chamon which handle file name/format string conversions. To install, copy the .xsicompound files into the Data/Compounds folder of the USER or a workgroup/addon directory. The .dll file goes into the Plugins subfolder — demo scene file is included.

Related plugins: Pixel Particles, Image ICE Node

local backup: ImageIO_packed_1.0.zip

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: Image I\O From ICE

Post by Mr.Core » 16 Dec 2011, 22:31

I am using third party libs for that, not si SDK

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 01:41
Contact:

Re: Image I\O From ICE

Post by EricTRocks » 17 Dec 2011, 11:56

I don't see the IFX Assembly Sequence Name node in the ICE tree at all. Is there a way to use the standard tools to get it to write out an image sequence based on the frame? I'm not reading a sequence in, I just want to write out my own from scratch. I'm able to write out a single frame which is awesome. :D

This is definitely an awesome plugin!! Thanks so much!
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 01:41
Contact:

Re: Image I\O From ICE

Post by EricTRocks » 17 Dec 2011, 12:14

Something else that would be cool to have, is a node that autmatically builds a point cloud in the correct order and a node that builds the color array in the correct order from that pointcloud. Just tossing out ideas.
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: Image I\O From ICE

Post by Mr.Core » 17 Dec 2011, 13:59

>>I don't see the IFX Assembly Sequence Name node in the ICE tree at all.
It is just a simple compound that I builded from factory nodes :)
>>is a node that autmatically builds a point cloud in the correct order and a node that builds the color array in the correct order from that pointcloud.
That is very simply to implement, fisrt case I have attached as compound called "Build PCloud From Image" , and in the second case you can just use "build array from set" node to get array of colors and connect this array to "Write Image" node
Attachments
IFX Assembly Sequence Name.xsicompound
(35.57 KiB) Downloaded 260 times
Build PCloud From Image.xsicompound
(10.41 KiB) Downloaded 265 times

EricTRocks
Moderator
Posts: 754
Joined: 25 Nov 2009, 01:41
Contact:

Re: Image I\O From ICE

Post by EricTRocks » 18 Dec 2011, 03:24

Awesome got it working! Thanks so much. Just did a simple setup using a null to modulate the color of particles inside it and output the sequence of the null moving from one side to the other.

I have to say this is really fast as well. Just played back the timeline and it zipped along as if it wasn't doing any extra calculations. :) Great job! Now I just have to figure out or dig up a compound that what pixel particles does and stick some particles to a mesh via UVs and we have a custom "pixel particles" setup.

Also anyone who is thinking of doing an ICE based renderer has an option now too. :)
Eric Thivierge
Lead Kraken Developer, Fabric Engine
http://fabric-engine.github.io/Kraken

fabricio.chamon
Posts: 94
Joined: 09 Jun 2009, 23:47

Re: Image I\O From ICE

Post by fabricio.chamon » 18 Dec 2011, 15:11

Man, this is soooo awesome! thanks a lot Mr. Core.
all kinds of image processing inside the ice tree! that's fantastic and will surely open up for a lot of possibilities.

here's a quick image blur test, along with 2 compounds that might be useful to some of you.

"Change File Name" compound: changes or appends file name of a file path input with option to keep or change extension.
(also outputs a no extension string to be fed into IFX Write Image, since it appends the format itself)

"Get IFX File Format from File Path": outputs an integer to be fed into "Format" port of IFX Write Image.
bmp = 0, jpg = 1, png = 2, tiff = 3 (defaults to bmp in case of unsupported file format)


I can't thank you enough!
Attachments
screenshot
screenshot
change_file_name.jpg (197.7 KiB) Viewed 3756 times
Get IFX File Format from File Path.xsicompound
get IFX file format from file path compound
(25.91 KiB) Downloaded 238 times
Change File Name.xsicompound
change file name compound
(37.96 KiB) Downloaded 239 times

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: Image I\O From ICE

Post by Mr.Core » 18 Dec 2011, 15:25

Fabricio
That's really awesome example of usage! You boosts me to take a deeply look into it, because I didnt spent too much time with the image processing :)

Chris_TC
Posts: 411
Joined: 22 Mar 2010, 17:43

Re: Image I\O From ICE

Post by Chris_TC » 18 Dec 2011, 17:32

Image processing with ICE? Aw, hell yeah! :-bd

Matic
Posts: 70
Joined: 18 Jun 2009, 19:58

Re: Image I\O From ICE

Post by Matic » 18 Dec 2011, 18:22

This is fantastic. There are an incredible number of uses, we can use this in a way similar to how houdini users use chops in conjunction with particles etc. Fantastic!

Here's a selfish request, do you see any way to add .exr or .dpx I/O? It would be awesome to be able to do some operations on film plates with this.

Honestly, in the long run I think this will have more impact on ICE/VFX than anything you've written to date - and that's saying something. :)

User avatar
Mr.Core
Posts: 148
Joined: 10 Aug 2011, 12:35
Skype: giga-core
Location: Kharkov, Ukraine

Re: Image I\O From ICE

Post by Mr.Core » 18 Dec 2011, 18:37

I think I will add these format a little bit later as well as alpha channel :)
But I still think that it is more a toy than real tool because representation of each pixel as particle and work on this - it is very sloooow way

User avatar
Tekano
Posts: 488
Joined: 09 Jun 2009, 14:49
Location: London, UK

Re: Image I\O From ICE

Post by Tekano » 19 Dec 2011, 00:11

hang on a minute.. this means we can render image files using ICE, right? and can build the array of particles out of what a camera would see and write to an image sequence? who needs Mental Ray ?! ;)
Gossip is what no one claims to like, but everybody enjoys.

User avatar
blaxxun
Posts: 48
Joined: 04 Mar 2014, 13:23
Location: Austria
Contact:

Re: Image I\O From ICE

Post by blaxxun » 25 Aug 2014, 11:26

Hello,

Its been a while on this thread, but i wonder if there is a way to make this plugin work with
Softimage 2014 SP2.

Softimage is crashing as soon as i plug the "IFX Read Image Node" into the "Generate 3D Grid Node"

Since iam researching on how to do a Terrain LOD i think that this plugin would be really important.

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: Image I\O From ICE

Post by Hirazi Blue » 25 Aug 2014, 17:58

Sorry, but someone has to ask: did you install the prerequisite Visual C++ runtime.
I can't test this on 2014SP2 as I never installed that specific SP,
but I cannot reproduce the crash you describe on either 2014SP1 nor 2015.
Where does your ICE Tree "live"? On an empty PointCloud, where I believe it should?
Stay safe, sane & healthy!

User avatar
blaxxun
Posts: 48
Joined: 04 Mar 2014, 13:23
Location: Austria
Contact:

Re: Image I\O From ICE

Post by blaxxun » 26 Aug 2014, 01:58

Hello,

Yes, i have

Microsoft Visual C++ 2010 x64 Redistributable v10.0.40219
Microsoft Visual C++ 2010 x64 Runtime v10.0.40219
Microsoft Visual C++ 2010 x86 Redistributable v10.0.40219
Microsoft Visual C++ 2010 x86 Runtime v10.0.40219

installed.

Also 2012 and 2013.

Also i created an empty PointCloud with ICE Tree.
So the ICE Tree lives IN the PointCloud.

When i check the link provided i end up with an older version of "Microsoft Visual C++ 2010 x64 Redistributable"
which i dont install since i have a newer one already installed.

User avatar
Hirazi Blue
Administrator
Posts: 5107
Joined: 04 Jun 2009, 12:15

Re: Image I\O From ICE

Post by Hirazi Blue » 26 Aug 2014, 10:51

Try installing the older one also. It doesn't make sense, but from my own experience IIRC it sometimes does help.

PS I don't say that IS "the" problem, it may however something you can relatively easily rule out... ;)
Stay safe, sane & healthy!

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests