-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3DM geometry appears black in large/certain files after upgrading to latest version #27752
Comments
For comparison this is how it renders in Codesandbox: https://codesandbox.io/p/sandbox/three-rhino-v7-v99r8c |
Yes, |
/ping @fraguada |
Thanks @tb-viktor, I had missed the notification here. Will update the issue once I understand what's going on. |
I've pushed a fix that fixes the logic of creating materials and comparing them. What was happening is that objects with no material assignments get assigned a default material. In this case, there were objects with and without vertex colors, and at some point, the default material would get the vertex color flag set to true, meaning meshes without vertex colors would be rendered black. |
Description
Hello,
We've encountered a regression with the
Rhino3dmLoader
after upgrading to the latest version ofthree
. We've upgraded from version0.156.1
to0.161.0
and with that loaded[email protected]
which is required by the loader. After doing so, certain geometries seem to break the loader and result in the loaded geometry appearing black. After loading the file that causes this, the following files that are loaded also appear black for that loader instance.I've put together a quick codesandbox with the file in question, I am not sure whether it is the file size (around 50 MB) or something in the file that causes this: https://codesandbox.io/p/sandbox/three-rhino-latest-sxz2fy
I've uploaded the file separately here: https://filebin.net/a258vmwnae1nj10a - it has an expiration, so in case the link goes dead I will reupload.
Any ideas what is causing this?
Reproduction steps
Rhino3dmLoader
in the latest three version, with[email protected]
.Code
Quick React example:
Live example
Screenshots
Version
r161
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: