amerkoleci / alimer

Cross-platform .NET 8 C# 12 game engine.
https://amerkoleci.github.io/alimer-docs/
MIT License
381 stars 19 forks source link

Imaging/Texture loading #12

Open amerkoleci opened 2 years ago

amerkoleci commented 2 years ago
roy-t commented 2 years ago

I've got a small C++/CLR project here: https://github.com/roy-t/SuperCompressedDotNet where I've made a small wrapper around BasisU, definitely not production ready but it runs and has some tests. I've also verified the code actually works since it decodes a few textures in my game engine.

Could be useful for inspiration.

I think BasisU also has a C API for the transcoder, which might be more natural to use directly from C#. I haven't investigated that yet.

amerkoleci commented 2 years ago

Why didn't use ktx library and make sure you load basisu compressed textures? I recently switched to my C based GPU library https://github.com/amerkoleci/vgpu and will add texture loading there.

In my content pipeline I do plan to add basisu compression starting from png or other imahe formats.