-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Add GLTF progressive example page #31625
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
Conversation
|
There is quite a lot of description text in the example. Would it be possible to move the second and third line as a comment into the source code? The fourth and fifth lines can be combined into one. |
Oh good catch. This seems to be caused by Draco when using |
I think some explanation is necessary on the website directly to understand what's happening on screen and what the library does, if that's hidden in the code I'd be afrait not many people would see that. I tried to move the info in one line now - is that better? https://three.needle.tools/examples/?q=prog#webgl_loader_gltf_progressive_lod The z-fighting is fixed too |
|
I still looks pretty crowded when opening the example with a mobile device. |
|
Apart from #31625 (comment), the PR looks good to me. If you have issues with generating the E2E screenshot, I can have a go after the merge. |
Thanks! That's great |
|
There's no progress bar, so I don't know when it has finished loading. Edit: I would also recommend a toggle to reload the asset with the built-in loader. |
|
Let's keep the example as simple as possible 😉 . |
Maybe we could add a button to reload the example with URLs to the same assets without progressive optimization to show the difference. What do you think about that? |
|
what Licence is @needle-tools/gltf-progressive? |
|
Is GLTF progressive LOD a blackbox? It looks impressive but to generate and host a compatible glb file it seems we need to pass through cloud.needle.tools? |
|
Hi @wass08 Currently files can be generated via Needle Cloud or via our integrations for Unity or Blender (in which case processing runs locally). We're looking into open sourcing more parts of that and providing documentation of the file format - If you want I can ping you again once that happened? |
|
Hi @marwie thanks for your reply! Great that there's a way through Blender. It's generating it to be downloaded/deployed outside of your cloud or it's a requirement to be on that? Yes please, ping me about updates on that 🙏 |
|
Hello @wass08 the files can be hosted on any webserver, there's no such requirement for them to be hosted on Needle infrastructure. |

Description
Hi, I've created an example for progressive GLTF mesh & textue LOD loading. It uses the
@needle-tools/gltf-progressivelibrary (npm).You can check the live page here:
https://three.needle.tools/examples/?q=progressive#webgl_loader_gltf_progressive_lod
Please let me know if this is OK or if there's that needs to be changed.