-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Is your feature request related to a problem? Please describe.
From what I can tell these are the loader examples that still are not setting renderer.outputEncoding = sRGBEncoding on the page meaning they don't appropriately set the model color spaces for linear lighting calculations on load where I think the color space should be known at parse time:
Material Colors & Textures
- ColladaLoader examples (ColladaLoader: Convert color from srgb to linear on load #23401)
- OBJLoader examples (OBJ / MTLLoader: Label and convert textures and colors correctly in MTLLoader #23296)
- SVGLoader (example logic only) (SVGLoader Example: Use srgb output in the svg example #23280)
- ColladaExporter (ColladaExporter: Convert vertex, material colors to sRGB before export #23400)
- KMZLoader Example (ColladaLoader: Convert color from srgb to linear on load #23401)
- FBXLoader examples (Examples: Update FBXLoader examples to .outputEncoding = sRGBEncoding #25441)
- IFCjs example (Examples: Move IFC demo to sRGB. #26121)
- MMDLoader example (Examples: Updates for color management (pt3) #25889)
- VOXLoader example (Examples: Clean up legacy .outputColorSpace = LinearSRGBColorSpace examples (part 2) #25849)
- LottieLoader example (Examples: Clean up legacy .outputColorSpace = LinearSRGBColorSpace examples (part 2) #25849)
- VRMLLoader example (VRMLLoader: Move to sRGB. #26111)
Vertex Colors
- ColladaLoader (ColladaLoader: Convert color from srgb to linear on load #23401)
- ColladaExporter (ColladaExporter: Convert vertex, material colors to sRGB before export #23400)
- DRACOLoader (DRACOLoader, DRACOExporter: Convert vertex colors to/from Linear-sRGB #25390)
- DRACOExporter (DRACOLoader, DRACOExporter: Convert vertex colors to/from Linear-sRGB #25390)
- FBXLoader(Examples: Update FBXLoader examples to .outputEncoding = sRGBEncoding #25441)
- OBJLoader (OBJLoader: Convert vertex colors to Linear from sRGB #23340)
- OBJExporter (OBJExporter: Convert Linear vertex colors to sRGB #23374)
- PCDLoader (Examples: More sRGB usage. #26119)
- PLYLoader (PLYLoader: convert vertex colors to linear #23342)
- PLYExporter (PLYExporter: convert vertex colors to srgb before export #23399)
- STLLoader (Examples: More sRGB migration. #26120)
- VRMLLoader (VRMLLoader: Move to sRGB. #26111)
- VTKLoader (#Examples: More sRGB migration. #26120)
- XYZLoader (Examples: More sRGB usage. #26119)
I was taking a look at ColladaLoader and OBJLoader, as well. It doesn't look like there's very explicit documentation on color spaces for these formats and they're more specification by convention. Given that our demos don't adjust the default output color space for the renderer it seems like the assumption is that the textures and colors are sRGB. Is there any evidence or example models that show this isn't always the right thing to do?
Describe the solution you'd like
All loaders look correct when setting WebGLRenderer.outputEncoding to sRGBEncoding by appropriately labeling all color textures and converting colors to Linear before setting materials.
Describe alternatives you've considered
--
Additional context