Page 1 of 2

Material id colors not generating randomly

Posted: Thu Mar 24, 2011 3:37 am
by pipcleo
I have noticed that most material id colors are all genarated with the same color definition
when rendering a material id channel. This is cumbersome if you have many dozens of materials.
It never used to work like this until 2.5....material id was generated with all materials having unique id's.

The render below has approx 100 materials

Image

Uploaded with ImageShack.us

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 1:30 pm
by Bubbaloo
Rendered from a plug in or Studio?

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 2:21 pm
by pipcleo
rendered from studio

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 3:07 pm
by brodie_geers
Which plugin did you use before you got to studio?

The change in 2.5 is actually an improvement. The colors should (when working properly) still be pretty much random, but now we have the ability to edit those colors ourselves. This option was added to fix your exact problem. When this happened before, you had no way to fix it. Now if you were so inclined you could go into the materials themselves and change the MatID color. It may not be the best option, but unless you can find a fix for it, then at least it's something.

-Brodie

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 3:41 pm
by pipcleo
all mats applied in studio....appreciate the ability to change material id colors but they wouldn't require
changing if they were generated randomly per material to start with

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 4:28 pm
by brodie_geers
Interesting. I assume there isn't some bug that's changing the colors so your materials are coming into studio with that gray MatID? That is to say, if you open your material in MXED and check the MatID color, is it gray?

If that's the case then you may be out of luck as far as I know, and you'd just have to manually change the colors. The next question, then, would be why/how were all the matid's created with a gray matID. My first thought is that maybe they were created in version 1.x or something and when they got translated into the newer version and a MatID had to be applied, perhaps the conversion made them all with a gray ID?

-Brodie

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 4:36 pm
by Mihai
First question as stated would be: are these 2.5 materials or 1.x materials imported into Studio? Did you try and create a few new materials and apply them, render?

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 4:39 pm
by pipcleo
checking thru a random few dozen mats from 1.7 , 2 and 2.5....
Cant find a single one that doesnt show a grey material id in mxed.

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 4:43 pm
by pipcleo
all the exterior mats were created newly for this project...
the couple of non grey material id's are actually old 1.7 materials

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 6:24 pm
by Stoker
This has been mentioned on the wishlist: http://www.maxwellrender.com/forum/view ... =2&t=36183

Note that cloned materials inherit the material ID colour of the source.

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 7:44 pm
by Mihai
pipcleo wrote:checking thru a random few dozen mats from 1.7 , 2 and 2.5....
Cant find a single one that doesnt show a grey material id in mxed.
Then it's a mystery how they all got grey matIDs......I've tried creating materials both in Studio and MXED - each time they get a random matID color. If you do the same, what happens?

Can you remember how these materials where created?

Re: Material id colors not generating randomly

Posted: Thu Mar 24, 2011 7:52 pm
by Bubbaloo
Stoker wrote:Note that cloned materials inherit the material ID colour of the source.
There's the answer, I think.

Re: Material id colors not generating randomly

Posted: Fri Mar 25, 2011 3:43 am
by pipcleo
Creating a new mat in mxed or studio now gives a random color id...
cant understand why the new mats I created for this project all gave a grey mat id (no cloned mats) and why my entire
material library of 1.7 -2.5.1 has the same grey mat id

Re: Material id colors not generating randomly

Posted: Fri Mar 25, 2011 5:00 am
by rusteberg
What does the object id channel look like ?

Re: Material id colors not generating randomly

Posted: Fri Mar 25, 2011 5:11 am
by JDHill
Like the object ego channel, but more rational.