facebookincubator / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color space issues in texture conversion

alexkuz opened this issue · comments

Today I found out that FBX2gLTF converts all non-transparent images to jpg files. Unfortunately, due to stb_image limitations the colors of original png files are getting all wrong (if I get it right, stb_image intentionally doesn't try to correct source files in sRGB).

Is it possible to use some more powerful alternative, like CImg?
(I don't know if this particular lib would actually help, though, but I see at least one project that replaced stb_image with this)

I would be happy to help with that, but my C++ knowledge is very very limited.