Clone Polygon Mesh materials?

Discussions about SOFTIMAGEs© Interactive Creative Environment©
Post Reply
Bullit
Moderator
Posts: 2621
Joined: 24 May 2012, 09:44

Clone Polygon Mesh materials?

Post by Bullit » 03 May 2014, 01:39

I cloned an object that has clusters with materials , what is the best practice to have them render? Clone Polygon Mesh help says it doesn't export the clusters.

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

Re: Clone Polygon Mesh materials?

Post by Bullit » 05 May 2014, 07:39

okay i should have read more througly the manual. But there wasn't a link in the clone poly mesh to the material page.

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: Clone Polygon Mesh materials?

Post by NNois » 11 May 2014, 21:03

just use a merge polygon mesh with an empty mesh, then you can update it when you want

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

Re: Clone Polygon Mesh materials?

Post by Bullit » 11 May 2014, 22:24

Nopes, at lest in my test, when i merge polygon mesh i loose the clusters.

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: Clone Polygon Mesh materials?

Post by NNois » 11 May 2014, 22:41

you're doing it wrong, merge keeps clusters if you specify so

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

Re: Clone Polygon Mesh materials?

Post by Bullit » 12 May 2014, 02:17

I only find that option with non ice merge not with ice one.

NNois
Posts: 754
Joined: 09 Jun 2009, 20:33

Re: Clone Polygon Mesh materials?

Post by NNois » 12 May 2014, 09:09

Sorry for wasting your time, yes ICE never create cluster but you haven't specified you're talking about ice clones

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

Re: Clone Polygon Mesh materials?

Post by Bullit » 12 May 2014, 12:39

If that so it is me that i wasted your time :), not you mine. Just when i said "Clone Polygon Mesh" or when i made the post in ICE to Houdini transition and you said that Houdini preserves functionalities that ICE don't i inferred that will be noticed.

Does ICE makes possible to get poly ID from the master clusters and give them to the clone and then put the materials in clone?

grahamef
Posts: 281
Joined: 23 Jun 2009, 21:01

Re: Clone Polygon Mesh materials?

Post by grahamef » 12 May 2014, 18:47

You can read cls.clustername.IsElem on the source and use that to set a custom Boolean attribute. You can then use this attribute in place of a cluster by checking whether it is 0 or 1.

For setting materials, it's a bit more complicated. You need to add each material in use to the Materials array, and then set the MaterialID attribute on each polygon to determine whether it will use element 1, 2, 3, etc. from the Materials array based on cls.clustername.IsElem.

Depending on what you are doing, it might be a good idea to write a script that creates ICE trees that set Materials and Material ID on the source objects (or even group) and then just copy them over to the cloned or merged geometry.

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

Re: Clone Polygon Mesh materials?

Post by Bullit » 14 May 2014, 00:16

Thanks.
That is much more difficult than what i thought and i guess explains why Clone Polygon Mesh doesn't have the option. I would think that giving materials interactively would be one of first things to make with ICE.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests