Home › Forums › Bug Reports and Feature Requests › KTX texture support?
Tagged: compression, ktx
- This topic has 9 replies, 5 voices, and was last updated 3 years, 6 months ago by
Alexander Kovelenov.
-
AuthorPosts
-
2021-04-23 at 7:28 am #40446
precismoCustomerHi Verge!
We and our customers are commited to keeping 3D models as little as possible so that bandwith is used efficiently and loading times are kept to minimum. There seems to be new, efficient KTX format now: https://www.khronos.org/ktx/
It seems to be already implemented in three.js:
https://threejs.org/examples/webgl_loader_texture_ktx.htmlMay I ask when if/when this will be supported in Verge3D? It seems to be very practical feature for everyone.
thanks a lot in advance!
Petr from Precismo
2021-04-23 at 10:44 am #40455
Alexander KovelenovStaffHi,
This feature is in our TODO list, however we’d really like to see some support in the browser first (or perhaps even a hardware implementation). The decoder which is provided as a library seems to be quite slow.2021-04-29 at 11:02 am #40580
precismoCustomerThank you very much Alexander!
2022-01-17 at 12:23 pm #48685web
CustomerPushing that topic.
I’ve seen that KTX is listed as supported on that page:
https://www.soft8soft.com/docs/manual/en/introduction/Features.htmlBut it seems that you have to manually add the modules. Just using the
v3d.ImageLoader()and loading “ktx2” files doesnt seem to work.2022-03-14 at 7:22 am #50234
precismoCustomerThank you mr. web!
I do not have access to Verge source codes, meaning Im using uglified/minimised version of source code (but v3D object seems to be accesible Three.js implementation).
– Is it somehow possible to inject KTX loader to Verge on the fly?
– Is there any support for KTX export in Blender, ideally inside Verge plugin?thank you very much in advance,
Petr from Precismo
2022-03-15 at 6:45 am #50257
Yuri KovelenovStaff2022-05-30 at 6:57 pm #52517nooki
ParticipantI tested the 4.0 preview export with enabled texture compression on the “Damaged Helmet” asset (https://sketchfab.com/theblueturtle_)
texture compression off: 3.84 mb
texture compression on: 15.1 mbQuestion: I’m not familiar with the ktx2 format yet, I’ve read that it can be loaded faster from the graphics card and requires less gpu memory. On the other hand, in this case the filesize is ~4 times the size of the uncompressed version. Is this the expected behavior?
Reading the examples it makes it look like the file size will also get smaller using this compression
https://www.khronos.org/assets/uploads/apis/2021-ktx-comparing-ktx-with-basis-universal-to-image-formats-sml_2.jpg2022-06-01 at 11:51 am #52564
Alexander KovelenovStaffHi, compression can produce bigger files (especially ASTC kind). The idea of it is to reduce GPU memory consumption and improve performance. Try to switch compression type to ETC1 or, if the texture size is more important, switch back to JPG/PNG.
2022-06-02 at 11:16 am #52597nooki
ParticipantHi alexander,
thanks for your answer!
What’s the recommended workflow for this? Is there an option to switch to ETC1 when exporting the file? In Blender, there is only a checkbox “compress texture”.2022-06-20 at 7:18 am #53342
Alexander KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.
