Blender import warning #1106
Labels
BlenderImporter
Issues related to importing .blend files using jme3-blender
defect
Something that is supposed to work, but doesn't. Less severe than a "bug"
Milestone
When importing models from blender into JME, I constantly get this warning:
See multiple forum posts about this issue:
This is the check that logs the warning:
The warning is only logged when a linear colorspace is set on the image and the MatParam doesn't have a colorspace.
I looked a bit around the jme3-blender code and found I this:
in the file TextureBlenderAWT:146
The colorspace of the new created image is always set to
ColorSpace.Linear
although the original colorspace of the image wasColorSpace.sRGB
. When I adapt this line, and set the colorspace to the colorspace of the original image, the warning vanishes. The Image has now colorspaceColorSpace.sRGB
and the MatParam still has colorspacenull
. But the warning is only logged when the colorspace of the images is Linear.Looking further down the code, because the colorspace is not set on the MatParam, I noticed that in the
Material
class injme3-core
the colorspace is never set on the MatParam when a texture is specified:com.jme3.material.Material:540:
The colorSpace is set to null (
new MatParamTexture(type, name, value, null)
), although the value (Texture) has a ColorSpace value.I don't know any of the history of this, so maybe this is on purpose.
My questions:
The text was updated successfully, but these errors were encountered: