-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
GLTFExporter: Merge occlusion, roughness and metalness textures #23229
Conversation
This will need some tweaks probably but it'll easier to understand when people start using it. Merging. |
This looks good to me! I'd also be fine with omitting We could probably also change this line to just use PNG, if we're moving away from RGBFormat: three.js/examples/jsm/exporters/GLTFExporter.js Line 1053 in 0815182
^does that seem okay @Mugen87 ? |
Yes, that makes sense! |
Opened #23385. |
Hello, in the Also, in the case where |
#23463 fixed that.
Yes, that logic needs to be improved. |
Thanks for your reply. |
Oh, I was not aware that could happen. Does that also happen with metalnessMap and/or roughnessMap? |
Generally not. aoMaps use uv2, so it's possible to pack occlusion for multiple objects or even the complete scene in a single texture. |
Related issue: #14940 #16325
Description
The code in this PR only checks if texture has already been merged (which solves the actual issue in #14940).
Should we add additional parameters as suggested in #14940 (comment)?
/cc @fernandojsg @donmccurdy @elalish