From 167ae6d5d76863f3ba8cfd60a8204f315cfc4633 Mon Sep 17 00:00:00 2001 From: Giovanni La Mura <giovanni.lamura@inaf.it> Date: Tue, 15 Apr 2025 10:05:36 +0200 Subject: [PATCH] Lower color saturation in material files for better 3D visualization --- src/scripts/model_maker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scripts/model_maker.py b/src/scripts/model_maker.py index ab3b29a..6e2d3d5 100755 --- a/src/scripts/model_maker.py +++ b/src/scripts/model_maker.py @@ -964,10 +964,10 @@ def write_obj(scatterer, geometry, max_rad): out_model_path = Path(str(geometry['out_file']) + ".obj") out_material_path = Path(str(geometry['out_file']) + ".mtl") color_strings = [ - "1.0 1.0 1.0\n", # white - "1.0 0.0 0.0\n", # red - "0.0 0.0 1.0\n", # blue - "0.0 1.0 0.0\n", # green + "0.5 0.5 0.5\n", # white + "0.3 0.0 0.0\n", # red + "0.0 0.0 0.3\n", # blue + "0.0 0.3 0.0\n", # green ] color_names = [ "white", "red", "blue", "green" -- GitLab