godotengine / godot-docs

Godot Engine official documentation
https://docs.godotengine.org
Other
3.93k stars 3.21k forks source link

Adding supported image types list #3132

Closed Lisapple closed 4 years ago

Lisapple commented 4 years ago

As suggested in issue #2992, it would be a great addition to add a complete list of all supported image/texture formats. That can be added to "Docs » Project workflow » Assets workflow » Importing images" page.

It would be useful to check for a particular workflow with Godot, even if most of the image type of wildly supported among 2D/3D software.

For Godot 3.2, so far I found the following image/texture formats supported (from /modules folder in Godot project, I haven't tested all formats):

I don't see the need to include more information (about pros/cons) for each format, Godot offers many options when generating textures that can override theses specifications.

Calinou commented 4 years ago

JPEG (.jpg, and not with .jpeg extension)

The .jpeg extension should work according to the source code: https://github.com/godotengine/godot/blob/dfcfa7d256809130af827f33d4cfeffcedc01dc3/modules/jpg/image_loader_jpegd.cpp#L126

I've just tested it in 3.2 stable and it works.

Lisapple commented 4 years ago

The .jpeg extension should work according to the source code: https://github.com/godotengine/godot/blob/dfcfa7d256809130af827f33d4cfeffcedc01dc3/modules/jpg/image_loader_jpegd.cpp#L126

Yes, exact! I edited the list.