lasa01 / Plumber

A Blender addon for importing Source 1 engine maps, models, materials and textures. This addon makes it possible to import full CS:GO, TF2, CS:S or other Source 1 game maps into Blender.
MIT License
389 stars 30 forks source link

Wrong normal maps textures color space / Custom color spaces/profiles incompability #177

Closed XyozaxeR closed 2 months ago

XyozaxeR commented 7 months ago

By default color space of normal maps is the same as any other texture, but normal maps store data and not color and custom color profiles will break normal maps like on this screenshot

sRGB OETIF (Custom sRGB profile) sRGB_OETIF To fix this issuse color space must be "Non-Colour Data".

Non-Colour Data Non-Colour Data Please make default color space (ONLY FOR NORMAL MAPS) "Non-Colour Data" because changing color space of every normal map is very tideous when there's thousands of materials and overall this is just how normal maps work.

lasa01 commented 7 months ago

The color space of normal maps is set to Non-Color already. The issue is probably that you seem to have custom color profiles in Blender, and the "Non-Color" color space is renamed to "Non-Colour Data" so the addon cannot find the proper color space.

I don't think it's worth it to add kind of fixes for these on my side unfortunately. I'm not sure how exactly the custom profiles work in Blender, but I would suggest you use ones that do not rename the default profiles, or if it's possible, add a color space with the name "Non-Color" for compatibility.

XyozaxeR commented 7 months ago

Well, I'll try to fix it myself but if you will fix it the custom color space name is "Filmic Blender"

XyozaxeR commented 2 months ago

In case someone has the same issue with filmic blender or other color spaces heres the solution

  1. You should edit the config.ocio in {version}/datafiles/colormanagement and duplicate the colorspace that represents non-color data and name it "Non-Color" ( I additionally copied it once more and named "Raw" but I dont think that is exactly necessary )

  2. Import the map/model/material in a version of blender without having the color profiles installed ( because for me for some reason it only changed the color profile of detail textures if I did that on the version of blender with edited color profiles installed )

  3. Copy and paste the whole map collection from version without custom color profiles to version with edited color profiles