Material Color Inconsistencies: mudanças entre as edições

De TriLib
Ir para navegação Ir para pesquisar
Sem resumo de edição
 
Linha 1: Linha 1:
Sometimes when loading model materials, the color might differ from what other viewers are showing.
Sometimes, when loading model materials, the color might differ from what other viewers are showing.


By default, TriLib will convert material color values and texture colors to the gamma (sRGB) representation.
TriLib will convert material color values and texture colors by default to the gamma (sRGB) representation.


If you don't want this to happen, you can disable these behaviors by disabling your '''AssetLoaderOptions'''<nowiki/>'s "'''ApplyGammaCurveToMaterialColors'''" and "'''LoadTexturesAsSRGB'''" fields.
If you don't want this to happen, disable these behaviors by turning off your '''<code>AssetLoaderOptions</code> <code>ApplyGammaCurveToMaterialColors</code>''' and '''<code>LoadTexturesAsSRGB</code>''' fields.


Another reason for colors to differ happens when TriLib does not applies ambient color to FBX materials.
Another reason for colors to differ is when TriLib does not apply ambient color to FBX materials.


You can enable the "'''FBXReader.ApplyAmbientColo'''r" static field, so TriLib will apply ambient color to FBX materials.
You can enable the '''<code>FBXReader.ApplyAbientColor</code>''' static field so TriLib can apply ambient color to FBX materials.

Edição atual tal como às 09h07min de 18 de maio de 2024

Sometimes, when loading model materials, the color might differ from what other viewers are showing.

TriLib will convert material color values and texture colors by default to the gamma (sRGB) representation.

If you don't want this to happen, disable these behaviors by turning off your AssetLoaderOptions ApplyGammaCurveToMaterialColors and LoadTexturesAsSRGB fields.

Another reason for colors to differ is when TriLib does not apply ambient color to FBX materials.

You can enable the FBXReader.ApplyAbientColor static field so TriLib can apply ambient color to FBX materials.