Skip to content
Snippets Groups Projects
Commit 167ae6d5 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Lower color saturation in material files for better 3D visualization

parent 453fc5ee
No related branches found
No related tags found
No related merge requests found
...@@ -964,10 +964,10 @@ def write_obj(scatterer, geometry, max_rad): ...@@ -964,10 +964,10 @@ def write_obj(scatterer, geometry, max_rad):
out_model_path = Path(str(geometry['out_file']) + ".obj") out_model_path = Path(str(geometry['out_file']) + ".obj")
out_material_path = Path(str(geometry['out_file']) + ".mtl") out_material_path = Path(str(geometry['out_file']) + ".mtl")
color_strings = [ color_strings = [
"1.0 1.0 1.0\n", # white "0.5 0.5 0.5\n", # white
"1.0 0.0 0.0\n", # red "0.3 0.0 0.0\n", # red
"0.0 0.0 1.0\n", # blue "0.0 0.0 0.3\n", # blue
"0.0 1.0 0.0\n", # green "0.0 0.3 0.0\n", # green
] ]
color_names = [ color_names = [
"white", "red", "blue", "green" "white", "red", "blue", "green"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment