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

gltfpack: LOD generation #539

Closed
blanxdev opened this issue Feb 28, 2023 · 2 comments
Closed

gltfpack: LOD generation #539

blanxdev opened this issue Feb 28, 2023 · 2 comments

Comments

@blanxdev
Copy link

Hi,

I thought it might be useful to add LOD generation support.

The settings can be specified like this:

-tc
-si 1.0,0.5,0.1
-tl 2048,1024,256
-sa false,false,true

So if one wants to modify settings per level, one has to always use the same count of options

@zeux
Copy link
Owner

zeux commented Mar 2, 2023

Currently, glTF does not have LOD extensions that are universally supported. The only vendor extension for this is MSFT_lod and it's in semi-deprecated status in that most renderers don't support it. There's a newer EXT_node_lod extension that's being proposed; I'm not sure what the status of that is.

Even with the LOD extensions, they only cover geometry/materials - not textures. So if multiple levels of texture detail are desired, it really just requires multiple glTF files -- which can be achieved today by running gltfpack multiple times with different options.

If EXT_node_lod or an equivalent vendor neutral extension gets added to glTF eventually then it would make sense to support it in gltfpack.

@zeux zeux added the gltfpack label Mar 2, 2023
@zeux zeux changed the title LOD generation gltfpack: LOD generation Mar 2, 2023
@zeux
Copy link
Owner

zeux commented Mar 27, 2023

Looking at the extension I mentioned it doesn't look like there's a lot of traction. For now I will close this since it requires changes to glTF spec to support, if/when they happen I'll reopen this.

@zeux zeux closed this as not planned Won't fix, can't repro, duplicate, stale Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants