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

feat(3dtiles): add method to enable ktx2 loader for gltf #2172

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

jailln
Copy link
Contributor

@jailln jailln commented Aug 23, 2023

Description

Add a method to enable loading of gltf (and 3D tiles) with KTX2 compression. (similar to what was done for draco).

Note: should be moved to GLTFParser once #2124 is merged.

Motivation and Context

Motivated by #2170

Comment on lines 79 to 88
* This library is mandatory to load b3dm and gltf with KTX2 compression.
*
* The KTX2 library files are in folder itowns/examples/libs/basis/.
* You must indicate this path when you want to enable KTX2 decoding.
*
* For more information about KTX2, read /itowns/examples/libs/basis/README.md.
*
* @example <caption>Enable ktx2 decoder</caption>
* // if you copied /itowns/examples/libs/draco/ to the root folder of your project,you can set the path to './'.
* itowns.enableKtx2Loader('./', view.mainLoop.gfxEngine.renderer);
*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this part before @params documentation here and for enableDracoLoader ? I just figured that this part would appear in renderer param documentation, as it appears inconfig param doc in enableDracoLoader.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, done

src/Parser/B3dmParser.js Show resolved Hide resolved
@jailln jailln force-pushed the feat/add-ktx2-loader branch from 98d993e to 970fc65 Compare August 28, 2023 13:10
@jailln jailln requested a review from mgermerie September 5, 2023 16:07
src/Parser/B3dmParser.js Show resolved Hide resolved
@jailln jailln merged commit a260109 into iTowns:master Oct 5, 2023
7 checks passed
@jailln jailln deleted the feat/add-ktx2-loader branch October 16, 2023 14:06
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

Successfully merging this pull request may close these issues.

2 participants