-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Texture not showing when exporting scene #186
Comments
From the docs:
|
Either way this is an issue related to an exporter if three.js is not exporting geometry as it's rendered in the application and should be reported elsewhere. At least a warning should be logged. |
I tried with other CSG libraries and the exporting works fine so i thought the implementation in this library does something different with the materials |
Here is a fix:
With the help of thrax, we found out, that the geometry is not indexed after the subtraction. setting an index fixed the issue with exporting. So you were right i think, it is an Exporter issue |
I used this library to cut stuff from simple geometries when i want to export the newly built geometries the material on it is not correct. In the renderer everything looks fine. As soon as i export the scene via GLTFExporter the mesh has two seperate textures on top of each other. Resulting in this (opened in Blender):
In the renderer it looks like this:
![Subtraction](https://private-user-images.githubusercontent.com/41572877/291623151-2cf16eb7-ae2d-4828-94ac-b2d747e983b6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTQ3NTMsIm5iZiI6MTcyMDU5NDQ1MywicGF0aCI6Ii80MTU3Mjg3Ny8yOTE2MjMxNTEtMmNmMTZlYjctYWUyZC00ODI4LTk0YWMtYjJkNzQ3ZTk4M2I2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA2NTQxM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRlNTgzMmRmMGM1MWI4ZmFiNDE5YjM3NWFiNTE3MzY2MTY0MTUwYTlmNGYxOGZiNTdjZTg3NmViN2ZjOGYxOGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c47gEE9HKDV96h0wvAJvI84gwo9VWk8JGPKjD2Gwr_c)
This is the code i'm using (i played with useGroups / consolidateMaterials without sucess):
The text was updated successfully, but these errors were encountered: