Bug: same material ID color used for different materials

Hi,

additional to the known bug that same materials are showing different colors over the rendered image I got the problem that different materials are using the same material id color - for example a metal rail, an emitter display and the window glass - all are green. So, I can’t select several objects. A quick fix would be very appreciated. My client like to get the mat id renders and I can’t deliver.

Best regards,

Micha

I sent an email to support@… . I’m not sure the bug reports are received, since there is no feedback.

The materialID color is a random color based on the material-ID. Since this is a statistical process, it can happen that you hit the same color twice.

We receive and answer the support@ emails, however it can take a few days from time to time.

@Thomas_Willberger I hope the color creation process can be optimized, so that colors are optimal spread over the possible color range. For example at Vray I never have seen the same colors.

I sent an example scene with 5 used materials and all got the same mat ID color. Looks like this isn’t caused by the statistical process … I got an idea now and tested it yet. If I duplicate a material and assign it to a new object, than this object get the same mat id color. Bug found. :slight_smile:

(So there there stay to fix the “to much colors for the same material” mat id bug. I suppose so this is caused since Rhino internal create a high count of the materials … . The Rhino material system is not the best. Maybe there is needed an other way to create the material id colors.)

Can you send me the project with only 5 materials having the same Material ID via personal message? That would be a good case to debug / improve it!

Is PM the same like conversation? Conversation doesn’t work for your profile, it’s disabled. I sent the file 26.4. 10:47 per email, but if you guide me, I can try the PM way too, maybe I have overseen the button.

see Ticket #38369

Any news? I’m working for some teams of design offices and larges companies. My client strongly need the material ID and ask me, when I can deliver renderings plus working mat id. Please help. I found no workaround. (I sent two emails with examples where several different materials are shown in the same color.)

I know in month may are a lot of holidays and so the work is slow down. Please, could the mat id fixed for the next preview version?

We’re working on that but I can’t promise anything yet.

@Micha we released a new preview version. It should work better now, please let me know if it helps.

@Thomas_Willberger Unfortunately no enhancement, same like before, no separate colors for different materials and some times different colors for the same material.

Here an example from my current project - all fields with a are one material, same for b. At the green field of c and d should be shown different materials. And there are a lot more objects in this render output, where I get the wrong colors. It’s a big problem for my client.

2 weeks later … @Thomas_Willberger Did you have seen that the problem isn’t solved?

Maybe the reason for the bug is known and I could work around. Is there any hint for me? My clients need the mask, really.

@Micha I have taken a look at your files, and although the material is shared between your objects, the Rhino API still reports different materials with different IDs to the Enscape plugin. So it’s not trivial from our side, but we try to come up with a solution.

@Simon_Weinberger Sounds like the McNeel team could help here and fix it at the Rhino side. On the other side render plugins like Octane got it working, maybe an other identification could be used to identify the materials. Good luck.

@Simon_Weinberger I ask at the McNeel developer forum and they can’t see the problem, but would like to help. Please read here:

https://discourse.mcneel.com/t/rhino-api-still-reports-different-materials-with-different-ids/64630/2

@Micha

Regarding the problem “same material has different IDs”: I contacted Nathan, and it looks like there might be an easy way for Rhino 6, but not for Rhino 5. It’s kind of an API problem. We still have to evaluate on further steps. Splitting the code for Rhino 5 and 6 would be one solution, but would complicate our development and does not work for Rhino 5. Merging the same materials manually would be another solution, but it’s error-prone and needs extensive testing in combination with live updates. Unfortunately it’s not as easy as it looks.

Regarding the problem “different materials have same ID”: That must be a bug on our side, we will take a closer look, but I can’t make any promises yet.

@Simon_Weinberger From my side I have no problem to use Rhino 6 for Enscape only. Rhino 5 is outdated and it’s nice move, if you release a Rhino 5 version, but if R5 is to limited to get it full working, than it’s fine so.

Thank your for your effort. Good luck for fixing “different materials have same ID”. Your work will be very appreciated, since it’s an often needed feature and there is no workaround.

@Simon_Weinberger Now we are 4 months later and the bug is still alive, the same material doesn’t show the same color at the Material ID output. Please find a solution soon.

(Maybe it helps not to use Rhino data, simple use the Enscape material names. I suppose so Vray for Rhino is going this way and use the materials on the render engine side to identify which object need the same ID color. Since we don’t see different materials, why not show the same ID color?)

@Micha For the easy solution for Rhino 6 we have to split our code for Rhino 5 & 6 which isn’t a small change. But we’re close to finish that project so it should be included in one of our next upcoming versions.