-
-
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
R3F doesn't handle transparency correctly. #30684
Comments
three.js reads the green channel when sampling the alpha map.
I expect you are assuming otherwise, since a single texture is serving as both the diffuse map and the alpha map in your example. |
You are speaking Martian to me here. What am I supposed to do here exactly? I just want to display the model like the one displayed by the 3D viewer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Hi, I originaly post the issue in the R3F repo: pmndrs/react-three-fiber#3487, but the maintainers suggest that I should post the issue here instead: pmndrs/react-three-fiber#3487 (comment).
Here is the copy of the issue:
I have a 3D model that has transparent vertices. When I use 3D Viewer app in Windows, the model is displayed correctly. As you can see from the image below, the head is transparent with mask on its face:
However, when I try to display it on R3F, the display is kinda broken. As you can see from the image below, many parts are not supposed to be transparent:
Here is a sandbox to reproduce the transparency problem: https://codesandbox.io/p/sandbox/objloader-forked-74fq8g. I also attached the relavant .obj files in the sandbox, so that you can view it in other apps.
Besides, in another web app: https://www.roblox.com/users/84743203/profile?friendshipSourceType=PlayerSearch, if you take a look at the 3D currently viewing section, they do not experience the same transparency issue.
Let me know how to fix this problem . Cheers!😄
Furthermore, the maintainer makes the following comment: pmndrs/react-three-fiber#3487 (comment)
Cheers!😄
Reproduction steps
Code
Live example
Screenshots
No response
Version
0.174.0
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: