Add KHR_texture_basisu version of the FlightHelmet#285
Add KHR_texture_basisu version of the FlightHelmet#285emackey merged 3 commits intoKhronosGroup:masterfrom
Conversation
|
Since there are no fallback textures, this model must include basisu under We should update any automated tools to include this when fallback textures are not provided. |
Options for this:
I think 2 makes more sense, but I don't think we've done this before. |
Good point, though we may want to check with @donmccurdy since this was generated with his tool. I'll update it manually for now. |
|
Will be fixed in glTF-Transform in next release, thanks! 👍🏻 |
|
I experimentally added this model to gltf-test. I think two libraries currently support this extension. |
|
It seems like the count of the last three accessors (accessorTangents, accessorNormals, accessorUVs) is too big and needs to be reduced by 1. If one calculates the byte offset of the last element of those accessors, it exceeds the length of the buffer. Apparently the last vertex does not have a tangent, normal and UV. |
|
I'm not seeing anything in the validator report, but will look into it - thanks! |
|
Hm sorry, I'm not able to see what you're finding. These interleaved accessors use the last buffer view, which has 436 vertices and a stride of 48, for a total length of 436 * 48 = 20,928. The last accessor is vec2 floats starting at an offset of 40 bytes, and fits within the last 8 bytes of that stride, so the size seems to work out here. Perhaps you're trying to allocate |
|
A yes that was the problem. Thanks for the clarification :) |
|
Is this blocked by anything? It'd be great to have a KTX2 sample model in the repo when the PR goes out. Would also be nice to an official test asset for those of us demonstrating support. |
|
There are two TODOs in my original comment. Other than that, I don't think so? |
|
Well, I'd rather have something imperfectly optimized than nothing. Shall we just document it and then update it later if we find improvements? |
|
I'm okay with that. Can we get some opinions on the documentation? #285 (comment) |
I think the model's main README should have a section that explains the BasisU flavor. |
|
Given the decisions made in #292, the new folder here should be called |
f639371 to
0272057
Compare
|
I updated the model using the latest KTX tools and glTF-transform and added a new section to the README. Should be ready to go unless someone has comments. |

UASTC used for non-color textures (normal, ORM). ETC1S used for color textures (baseColor).
TODO: