This commit is contained in:
Olivier
2015-10-21 03:23:06 +02:00
parent 475bc83ef3
commit fcad68bf2d
5 changed files with 599 additions and 706 deletions

View File

@@ -1,11 +1,9 @@
import tinyobjloader as tol
import json
model = tol.LoadObj("cornell_box.obj")
model = tol.LoadObj("cornell_box_multimaterial.obj")
#print(model["shapes"], model["materials"])
print( json.dumps(model, indent=4) )
#see cornell_box_output.json