fegennari / 3DWorld

3D Procedural Game Engine Using OpenGL
GNU General Public License v3.0
1.15k stars 89 forks source link

Support AVIF #21

Closed GrimPixel closed 11 months ago

GrimPixel commented 1 year ago

In some sources, it is more advanced than WebP. So I think AVIF format can be supported.

fegennari commented 1 year ago

AVIF is an image format mostly used by web browsers and not something I've ever seen used with 3D models. 3DWorld isn't intended to be used through the web, so it's not clear that AVIF format support is need. Do you have a 3D model that includes images of this format? If not, then why do you feel that AVIF needs to be supported?

In addition, the stb_image library used in 3DWorld doesn't support AVIF format. If this is added in the future, I will update the stb_image header and it should pick up AVIF support automatically.

GrimPixel commented 1 year ago

It is not only used for the web. It is supported by image viewers like nomacs and qView, as well as Godot as an extension. It is not supported by Blender yet. Available libraries are libavif and libheif.

fegennari commented 1 year ago

I've never come across any AVIF files, so I don't see the need to add support for this format to 3DWorld. Maybe some time in the future.

fegennari commented 11 months ago

No planned at this time. I will reopen if this comes up in an actual model or image I need to load.