add KTX2/Draco loader to avatar-editor#6210
add KTX2/Draco loader to avatar-editor#6210kira924age wants to merge 2 commits intoHubs-Foundation:masterfrom
Conversation
|
It's great to see Draco support for avatars being added, but I thought KTX2 support was already present. I'm pretty sure I have created and uploaded an avatar with KTX2 texture compression to Hubs. |
we donot need to call this method in this case
|
Thank you for your comment. As you pointed out, I was able to upload the avatar using the KTX2 Texture even after removing the "setKTX2Loader" process. In this scenario, it seems that there is no need to call setKTX2Loader, so I have removed it. Perhaps in this case, only the uploading is being performed, and the texture loading might not be taking place. |
|
Perhaps, but I do see textures in the preview window with a KTX2 avatar, so not sure. Glad I could help anyway. |
|
KTX2 is used when rendering the model in the scene and in the avatar preview viewport (both via |
✅ Closes: #6209
I add KTX2/Draco Loader to avatar-editor.js.
Now we can upload KTX2/Draco glb file from avatar upload page.
Screenshot
Screencast.from.2023-08-14.12-39-52.webm