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

large texture size after convert #170

Open
ang88myt opened this issue Aug 14, 2019 · 3 comments
Open

large texture size after convert #170

ang88myt opened this issue Aug 14, 2019 · 3 comments

Comments

@ang88myt
Copy link

OneCommanderV2_08-14

@ang88myt
Copy link
Author

how can I reduce it to the same size as gltf? why the texture conversion is not 1:1? Please help.

@kcoley
Copy link
Owner

kcoley commented Aug 15, 2019

Hi @ang88myt. Due to occlusion metallic roughness texture unpacking and texture transforms with pillow, new images get generated, though pillow does not preserve the original compression. This step was needed since texture swizzling was not working on iOS 12.

There is an —optimize-textures flag that attempts to reduce file size at the expense of a bit longer export time.

@ang88myt
Copy link
Author

Hi kcoley, thank you. could your confirm the usage below if it is correct way?
python gltf2usd.py -g ../path_to_read_glTF_file/file.gltf -o path_to_write_usd_file/file.usdz --optimize-textures

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

2 participants