Randomized Color Map in ICE

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Randomized Color Map in ICE

Post by ajhorvath » 28 Oct 2009, 16:56

Hi,
How would I get Randomized Color Map in ICE instead of Randomized color by Gradient?So I could have 6-7 different snoweflakes in my snowfall simulation.
Please Help!
Thanks
Joseph
Attachments
texture.jpg
texture.jpg (230.88 KiB) Viewed 1788 times

clyder
Posts: 14
Joined: 08 Jun 2009, 20:35

Re: Randomized Color Map in ICE

Post by clyder » 29 Oct 2009, 10:08

You can make per particle integer attribute, make it random from 0 to 6 (if you have 7 different snowflake textures) and use that attribute in render tree with multi color switch.
Something like this:
Image

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 29 Oct 2009, 16:35

Thanks very much for the help.
I will do it.
Joseph

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 29 Oct 2009, 19:32

Just having one problem.How did you get the self.snowflake or an image into the Sat Data.
I have been rtying with no luck.
Please let me know
Thanks
Joseph
Attachments
Capture.JPG
Capture.JPG (112.62 KiB) Viewed 1744 times

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

Re: Randomized Color Map in ICE

Post by Hirazi Blue » 29 Oct 2009, 19:39

Double-click the "Set Data" node to open up its PPG and type "self.snowflake" in the text-box? It will probably stay red until you plug into some Execute port. ;)
Stay safe, sane & healthy!

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 29 Oct 2009, 20:07

Still does not work,I just can't get my texture in there.
?

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

Re: Randomized Color Map in ICE

Post by Hirazi Blue » 29 Oct 2009, 20:27

The trick is to create a custom attribute ("self.iceflake") in the "ICE Tree" and then to get the value of this custom attribute in the "Render Tree" using an "Attribute_Integer" node. Once you've set it in the "ICE Tree", your work there (in the "ICE Tree") is done and you can move on to the "Render Tree". In the "Render Tree" you plug your textures into a "Color_Multi_Switch" node to define all available options, using the "Attribute_Integer"-value as a switch between the different options...

While I am writing this (as I have no Softimage at hand at the moment), I hope this doesn't confuse the matter even more... :-ss Feel free to ask more, if it does... ;)
Stay safe, sane & healthy!

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 29 Oct 2009, 20:56

Thanks for the help.
How would I create the custom attribute ("self.iceflake") in the "ICE Tree?
I have created the material but I can't put it all together.
Joseph
'
Attachments
ice.JPG
ice.JPG (116.59 KiB) Viewed 1733 times

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

Re: Randomized Color Map in ICE

Post by Hirazi Blue » 29 Oct 2009, 21:04

Plug the "Set Data" node, you've set to "self.iceflake" into an "Execute On Emit" port in your emitter node. You could also plug it directly into the "ICE Tree" itself, but I don't know, if that would result in the same effect... :-\ ;)
Stay safe, sane & healthy!

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 29 Oct 2009, 21:15

The problem is that I can't find the ("self.iceflake") to plug into the set data.
Where would I find it?
Joseph
Attachments
problem.jpg
problem.jpg (138.34 KiB) Viewed 1729 times

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

Re: Randomized Color Map in ICE

Post by Hirazi Blue » 29 Oct 2009, 21:18

You simply type "self.iceflake" into the text field labeled "Reference". This should, after you've plugged the "Set Data" into some execute port create this custom attribute...
Stay safe, sane & healthy!

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 30 Oct 2009, 06:29

Thanks for the help,but I am still having problems.My snowflakes still are not random and the values areall over .
Probably missing something really simple.
What do I do?
Attachments
Untitled-1.jpg
Untitled-1.jpg (160.39 KiB) Viewed 856 times

clyder
Posts: 14
Joined: 08 Jun 2009, 20:35

Re: Randomized Color Map in ICE

Post by clyder » 30 Oct 2009, 09:45

snowflake parameter is a scalar at your ICE tree and it should be integer. Get a integer constant node and plug it in set data node to switch it from scalar to integer. Then you can delete integer node and plug randomize by range node again. Also in render tree on attribute integer node where it says "Use Default Value" should be selected integer attribute from ICE tree.

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 30 Oct 2009, 16:51

I got the scalar changed to integer but still the random snowflakes do not show up.
Any idea?
Thanks
Attachments
Capture3.JPG
Capture3.JPG (196.47 KiB) Viewed 846 times

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

Re: Randomized Color Map in ICE

Post by Hirazi Blue » 30 Oct 2009, 17:00

They should show up in a render region or a render preview as they are "created" at render time. Do they? :-\ ;)
Stay safe, sane & healthy!

ajhorvath
Posts: 53
Joined: 28 Oct 2009, 16:45
Location: Tokyo,Japan

Re: Randomized Color Map in ICE

Post by ajhorvath » 30 Oct 2009, 17:08

Yes ,they are random at render time.
Thanks very much
Joseph

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests