Skip to content
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

Draco compression problem in 3ds max 2024 #1111

Closed
AlexZhigin opened this issue Jan 25, 2024 · 9 comments
Closed

Draco compression problem in 3ds max 2024 #1111

AlexZhigin opened this issue Jan 25, 2024 · 9 comments
Assignees
Milestone

Comments

@AlexZhigin
Copy link

Hello! When exporting to glTF with draco compression, the code has incorrect indexes for transmissionTexture and thicknessTexture. They are also not in the "textures" and "image" sections. The textures themselves are created, but for now you have to write them in the code manually. Without draco compression everything is fine. I would be very grateful if you could fix it in exporter.

@bghgary
Copy link
Contributor

bghgary commented Jan 25, 2024

Can you provide a max file for repro?

@AlexZhigin
Copy link
Author

AlexZhigin commented Jan 25, 2024

@bghgary
Cream 2024.zip

@thomlucc thomlucc added this to the Future milestone Jan 30, 2024
@FrogsInSpace
Copy link
Contributor

@bghgary @AlexZhigin
I found the reason for this:
apparently gltf-pipline strips the two textures from the gltf. I don't really see a reason for this ( possibly some bug in gltf-pipeline ), but adding "--keepUnusedElements" to the command arguments fixes this.
As i'm currently fixing some other smaller issues too, i'll include that in an upcoming PR

BTW:
i also created a PR for 3ds Max 2025 support, would be happy if someone would review it
see #1121

FrogsInSpace added a commit to FrogsInSpace/babylonjs-Exporters that referenced this issue Oct 26, 2024
FrogsInSpace added a commit to FrogsInSpace/babylonjs-Exporters that referenced this issue Oct 26, 2024
@AlexZhigin
Copy link
Author

AlexZhigin commented Oct 26, 2024

@FrogsInSpace @bghgary
Thanks Joseph. Actually I think the gltf pipeline is the problem too.

I've faced another problem since then.
issue
https://doc.babylonjs.com/features/featuresDeepDive/Exporters/3DSMax_to_glTF

This doesn't work. When trying to combine the base color texture and the transparency weight parameter value, the texture is not exported and the log says "Texture path is missing".
This is an annoying bug for the company I work for, because contrary to the documentation, we have to manually make color textures with an alpha channel.
I saved a simple scene to test this.
Transparency test.zip

@FrogsInSpace
Copy link
Contributor

@AlexZhigin Thanks , i will look into this alpha problem - no guaranties though :)

@FrogsInSpace
Copy link
Contributor

BTW: just for completeness, could you please create a seperate issue for the alpha weight problem , thanks

@AlexZhigin
Copy link
Author

BTW: just for completeness, could you please create a seperate issue for the alpha weight problem , thanks

Thanks for the quick response @FrogsInSpace. Done:
#1122 (comment)

@FrogsInSpace
Copy link
Contributor

argghh .. jsut created one myself -> will delete it :)
Fix is already done and working too

@AlexZhigin
Copy link
Author

))))

FrogsInSpace added a commit to FrogsInSpace/babylonjs-Exporters that referenced this issue Oct 30, 2024
SergioRZMasson pushed a commit that referenced this issue Oct 31, 2024
…output folder and other issues (#1126)

* fix log window not scrolling to the bottom (#1117)

* fix draco texture indexing problem (#1111)

* fix alpha weight problem (#1122)

* fix installer crashes to desktop when network is not available (#1124)

* disable copying of UiViewmodel.dll to output folder

* convert UTF8-BOM encoding to UTF8
NOTE: this fixes failing babylon menu creation in the 3ds Max 2025 build

* convert tabs to spaces

* fix another tab left
@bghgary bghgary closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants