This project demonstrates acceleration performed by kd-tree employed for ray-tracing.
We used examples provided by this repo.
Our ray-tracer accepts only triangle meshes without color and material properties. To apply on the
input from the repo you need to preprocess input obj files
by our processor input_transform.py
. Change input filepath inside the file
file = open("data/input_obj_file")
to your filename. The output will be in output.obj
. Modify accordingly. To apply ray-tracer on your file
update this line in main.cpp
:
ObjParser obj_parser = ObjParser("demo_data/bunny.obj");
Build and run the project:
cmake . && make && ./raytracer
with your filename.