Materials getting mixed up

I’ve noticed this behaviour before, but was not sure if it was me doing something weird. Now I’m sure. There’s a bug somewhere making Rhino intermittently mix up materials on objects. Which is really bad.

Here for example - two beams changed to “yellow wood”, one beam changed to “orange”, and one metal plate changed to “green marble”.

I’m 100% sure that I did not do something like this. I think, but I’m not sure, that this happens when the file is opened. Not while using it.

How can we pinpoint where the bug is ?

/Erik

Another one … Glass changed to wood …

I’m pretty sure the folks at McNeel will want to see the output from the systeminfo command of your Rhino version and your .3dm (or at least an extract) that shows the issue.

Ok,

more clues to this:

This is the viewport, using a custom Display Mode that I use where all lines are black and thin (plus other tweeks).

Same, but now it is the Layout, with the same mode with the Detail activated.

Om the right in the “wall” there is something completely white.

If I change the mode to Rendered (in the activated Viewport), it looks like this:

Here the “wood” material works.

So this seems to have something with the Display Pipeline not working properly using the special mode I have “assembled”.

See System Info below.

I can send the file, but rather only to McNeel. (I saved the file and restarted Rhino. Same problem appears when I reopen. So it seems to be something repeatable.)

/Erik

System Info:

Rhino 8 SR7 2024-5-17 (Rhino 8, 8.7.24138.15431, Git hash:master @ 03702f889bdef32626af4bca510b5e8a85666d38)
License type: Commercial, build 2024-05-17
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 96GB)
.NET 7.0.0

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 4090 (NVidia) Memory: 24GB, Driver date: 5-13-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 555.85
> Accelerated graphics device with 4 adapter port(s)
- Secondary monitor attached to adapter port #0
- Windows Main Display attached to adapter port #1

Secondary graphics devices.
Intel(R) UHD Graphics 770 (Intel) Memory: 128MB, Driver date: 1-18-2024 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 5-13-2024
Driver Version: 32.0.15.5585
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 24564 MB

Rhino plugins that do not ship with Rhino
C:\Program Files\RhinoTerrain_7\Bin\RhinoDB.rhp “RhinoDB”
C:\Users\Erik\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\D5Conv (e0d5e210-02f6-4ee9-a2b0-1675e225d958)\0.10.1.0001\Rhino 7\D5Conv.rhp “D5Converter for Rhino”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\SolidTools.rhp “SolidTools”
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\RhinoBonusTools.rhp “Rhino Bonus Tools”
C:\Program Files\Rhino 8\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.7.24138.15431
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

Hi Erik - if you have a file you can share that shows this - the simpler the better - please post or send to tech@mcneel.com with a link back here in your comments.

-Pascal

Hello, I’ve shared it with you.

To me it now seems, that every time you open the file, materials get mixed up. A few of them each time (0-10 approx).

All the best
/Erik

Hi Erik - can you tell whether the material assignments for the objects are correct? One thing I see in your file is that the zoom is making some objects incorrectly display in front of others.

But as far as I can tell so far, objects have the material assigned that they are displaying.

-Pascal

Hello Pascal,

no, material assignments are getting mixed up all the time. For example, the roof beams changed several times from “wood” to bright orange material. It seems to happen when you reopen the file. At least here on my computer.

BringToFront might be mixing the display order in the Display. (There is a thread about that started by me as well.)

I’m trying to repeat the behaviour.

/Erik

More random changes … Should look like the one on the top right. The other three changes on their own …

Pretty annoying this …

Now suddenly it changed the material of the Layer, not single elements …

I wonder what is going in this file …

(Orange wall material, was “Pine” before …)

Anyway, it is beyond doubt, that something is wrong here. Will not post more about this, but try to pinpoint when this actually happens and why.

These changed from greygreen to other materials … When I selected all of them (using Layer selection) and then tried to apply the correct material, then this dialog came up. Can it somehow help to pinpoint what is going on ?

(All these objects do NOT have per object applied materials, only per layer)

Hello,

any action on this ? Hard to work on this file … having to change back materials all the time …

Thanks
/Erik

Hi Erik -

Pascal has retired and nobody here has access to your file. Please don’t share a link from your Google Drive but upload a file to us through Rhino Accounts
-wim

Hello Wim,

I’ve sent it again via Rhino Accounts to tech@mcneel.com.

Rather you keep it internal in the company.

You can see random materials in the image above. The glass for example turning into plywood …

/Erik

Wim,

I wrote you a lengthy e-mail about Documentation and Rhino. It’s now several weeks and I sent you a reminder as well …

Did you actually receive it?

/Erik

@erik6 the issue you are seeing is duplicate geometry in the same place but with different materials. Zooming in and out or looking from specific angles will change which object “wins” to be drawn “on top”.

For instance in the file you shared window marked W-3.1 FK-205, which is a group. Select that and run _Isolate. Then _Ungroup. Select the window pane, you’ll see that Rhino asks you which of the two objects to select:

Select either and move it away so you can see the other object.

Do the same with the frame:

So, to fix the issue you have to go through your objects and make sure you don’t have duplicate geometry in the same place. Remove those that are not supposed to be there.

3 posts were merged into an existing topic: Degeneration of Display Pipeline?

Did anyone try to solve the mixing up of materials problem? It’s causing a lot of trouble here.


step should be concrete, not oak

Also, I’m pretty sure this file causes my computer to hang in a catastrophic way. Computer freezes completely (everything not only Rhino) and only a full restart makes it work again.

This has happened many times now on this computer. Without having any real clues I’m guessing it is the graphics card in combination with a specific display mode that causes the crash. And it happens over and over. Possibly it could have something to do with the Clipping Planes.

All software updated. Graphics drivers from Ndivia updated.

How can we pinpoint this?

/Erik

Rhino 8 SR8 2024-6-11 (Rhino 8, 8.8.24163.12481, Git hash:master @ ded4d86ca901dbeaf13ee84f79b3e91b22da4880)
License type: Commercial, build 2024-06-11
License details: Cloud Zoo

Windows 11 (10.0.22631 SR0.0) or greater (Physical RAM: 96GB)
.NET 7.0.0

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce RTX 4090 (NVidia) Memory: 24GB, Driver date: 5-13-2024 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 555.85
> Accelerated graphics device with 4 adapter port(s)
- Secondary monitor attached to adapter port #0
- Windows Main Display attached to adapter port #1

Secondary graphics devices.
Intel(R) UHD Graphics 770 (Intel) Memory: 128MB, Driver date: 1-18-2024 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- There are no monitors attached to this device!

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 5-13-2024
Driver Version: 32.0.15.5585
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 24564 MB

Rhino plugins that do not ship with Rhino
C:\Program Files\RhinoTerrain_7\Bin\RhinoDB.rhp “RhinoDB”
C:\Users\Erik\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\D5Conv (e0d5e210-02f6-4ee9-a2b0-1675e225d958)\0.10.1.0001\Rhino 7\D5Conv.rhp “D5Converter for Rhino”

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 8\Plug-ins\RhinoBonusTools.rhp “Rhino Bonus Tools”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.8.24163.12481
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

@erik6 I stand by my initial analysis of the file you shared that you have duplicate geometry with different materials assigned, just as I explained in Materials getting mixed up - #27 by nathanletwory