diff options
Diffstat (limited to 'python/howto.py')
-rw-r--r-- | python/howto.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/python/howto.py b/python/howto.py new file mode 100644 index 0000000..a4c6e04 --- /dev/null +++ b/python/howto.py @@ -0,0 +1,9 @@ +import tinyobjloader as tol +import json + +model = tol.LoadObj("cornell_box_multimaterial.obj") + +#print(model["shapes"], model["materials"]) +print( json.dumps(model, indent=4) ) + +#see cornell_box_output.json |