-
Notifications
You must be signed in to change notification settings - Fork 107
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
Double-sided materials #4
Comments
Probably the problem is with bim-fragment. I will try solving it here: https://github.com/IFCjs/fragment/blob/main/library/src/fragment-loader.ts |
I managed to fix it myself. In order to fully fix the problem one will have to 1) Implement this PR in fragments, 2) Publish a new version of fragments on npm, 3) Implement this PR and 4) Bump the version of fragments used here. |
Hey, sorry for the late reply, I missed this. I think that with the current implementation, you can set all the materials of a fragment set to be double sided by just traversing them and setting them as such. Don't you think this is better, as double sided materials have a higher computational cost? That way, the scene will be more efficient by default, and only people that need double sides will be able to set it up. |
Closing this for now, but open to discussing this further! |
DoubleSided materials are not rendered correctly.
Below you see an example of the glTF taken directly from the zip loaded in an online viewer and here there is no problem.
![image](https://user-images.githubusercontent.com/13613073/209325224-8db809d3-faad-45d0-9cb3-2f9c614baecd.png)
The following fragments zip can be used for testing:
Duplex.zip
I tried making the following changes to
fragment-ifc-importer/geometry.ts
with no luckThe text was updated successfully, but these errors were encountered: