Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
update: change obj opacity from 0.4 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
uysalibov committed Feb 14, 2024
1 parent 51fd28e commit bd06961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marble-sculp/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def convert_obj(self, filename: str) -> str:

material = ""
for ind in range(len(self.objects)):
material += f"newmtl Material.{ind}\nNs 360.000000\nKa 1.000000 1.000000 1.000000\nKd {random.randint(0, 1000000)/1000000} {random.randint(0, 1000000)/1000000} {random.randint(0, 1000000)/1000000}\nKs 0.500000 0.500000 0.500000\nKe 0.000000 0.000000 0.000000\nNs 0.000000\nd 0.400000\nillum 9\n\n"
material += f"newmtl Material.{ind}\nNs 360.000000\nKa 1.000000 1.000000 1.000000\nKd {random.randint(0, 1000000)/1000000} {random.randint(0, 1000000)/1000000} {random.randint(0, 1000000)/1000000}\nKs 0.500000 0.500000 0.500000\nKe 0.000000 0.000000 0.000000\nNs 0.000000\nd 1.000000\nillum 9\n\n"

with open(f"./static/{filename}.mtl", "w") as fp:
fp.write(material)
Expand Down

0 comments on commit bd06961

Please sign in to comment.