├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── asset ├── bunny.obj ├── sdf_renderer.hlsl └── sdf_shadow.hlsl ├── cli └── main.cpp ├── ext ├── bvh │ ├── .gitignore │ ├── CMakeLists.txt │ ├── LICENSE.txt │ ├── README.md │ ├── chart.png │ ├── cmake │ │ └── RunBenchmarkTest.cmake │ ├── include │ │ └── bvh │ │ │ ├── binned_sah_builder.hpp │ │ │ ├── bottom_up_algorithm.hpp │ │ │ ├── bounding_box.hpp │ │ │ ├── bvh.hpp │ │ │ ├── heuristic_primitive_splitter.hpp │ │ │ ├── hierarchy_refitter.hpp │ │ │ ├── leaf_collapser.hpp │ │ │ ├── linear_bvh_builder.hpp │ │ │ ├── locally_ordered_clustering_builder.hpp │ │ │ ├── morton.hpp │ │ │ ├── morton_code_based_builder.hpp │ │ │ ├── node_intersectors.hpp │ │ │ ├── node_layout_optimizer.hpp │ │ │ ├── parallel_reinsertion_optimizer.hpp │ │ │ ├── platform.hpp │ │ │ ├── prefix_sum.hpp │ │ │ ├── primitive_intersectors.hpp │ │ │ ├── radix_sort.hpp │ │ │ ├── ray.hpp │ │ │ ├── sah_based_algorithm.hpp │ │ │ ├── single_ray_traverser.hpp │ │ │ ├── spatial_split_bvh_builder.hpp │ │ │ ├── sphere.hpp │ │ │ ├── sweep_sah_builder.hpp │ │ │ ├── top_down_builder.hpp │ │ │ ├── triangle.hpp │ │ │ ├── utilities.hpp │ │ │ └── vector.hpp │ ├── render.jpg │ └── test │ │ ├── CMakeLists.txt │ │ ├── benchmark.cpp │ │ ├── custom_intersector.cpp │ │ ├── custom_primitive.cpp │ │ ├── node_intersectors.cpp │ │ ├── obj.hpp │ │ ├── refit_bvh.cpp │ │ ├── scene │ │ ├── cornell_box.obj │ │ └── cornell_box_reference.png │ │ └── simple_example.cpp └── cxxopts │ ├── LICENSE-cxxopts │ └── cxxopts.hpp ├── gallery ├── 0.png └── 1.png ├── sample ├── camera.cpp ├── camera.h ├── common.h ├── main.cpp ├── sdf_renderer.cpp ├── sdf_renderer.h ├── sdf_shadow.cpp └── sdf_shadow.h └── src ├── bvh.cpp ├── d3d11-sdf ├── bvh.h ├── common.h ├── ray.h ├── sdf.h └── sdf.hlsl └── sdf.cpp /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/.gitmodules -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/README.md -------------------------------------------------------------------------------- /asset/bunny.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/asset/bunny.obj -------------------------------------------------------------------------------- /asset/sdf_renderer.hlsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/asset/sdf_renderer.hlsl -------------------------------------------------------------------------------- /asset/sdf_shadow.hlsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/asset/sdf_shadow.hlsl -------------------------------------------------------------------------------- /cli/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/cli/main.cpp -------------------------------------------------------------------------------- /ext/bvh/.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | -------------------------------------------------------------------------------- /ext/bvh/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/CMakeLists.txt -------------------------------------------------------------------------------- /ext/bvh/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/LICENSE.txt -------------------------------------------------------------------------------- /ext/bvh/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/README.md -------------------------------------------------------------------------------- /ext/bvh/chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/chart.png -------------------------------------------------------------------------------- /ext/bvh/cmake/RunBenchmarkTest.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/cmake/RunBenchmarkTest.cmake -------------------------------------------------------------------------------- /ext/bvh/include/bvh/binned_sah_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/binned_sah_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/bottom_up_algorithm.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/bottom_up_algorithm.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/bounding_box.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/bounding_box.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/bvh.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/bvh.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/heuristic_primitive_splitter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/heuristic_primitive_splitter.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/hierarchy_refitter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/hierarchy_refitter.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/leaf_collapser.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/leaf_collapser.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/linear_bvh_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/linear_bvh_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/locally_ordered_clustering_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/locally_ordered_clustering_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/morton.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/morton.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/morton_code_based_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/morton_code_based_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/node_intersectors.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/node_intersectors.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/node_layout_optimizer.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/node_layout_optimizer.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/parallel_reinsertion_optimizer.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/parallel_reinsertion_optimizer.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/platform.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/platform.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/prefix_sum.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/prefix_sum.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/primitive_intersectors.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/primitive_intersectors.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/radix_sort.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/radix_sort.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/ray.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/ray.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/sah_based_algorithm.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/sah_based_algorithm.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/single_ray_traverser.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/single_ray_traverser.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/spatial_split_bvh_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/spatial_split_bvh_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/sphere.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/sphere.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/sweep_sah_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/sweep_sah_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/top_down_builder.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/top_down_builder.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/triangle.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/triangle.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/utilities.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/utilities.hpp -------------------------------------------------------------------------------- /ext/bvh/include/bvh/vector.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/include/bvh/vector.hpp -------------------------------------------------------------------------------- /ext/bvh/render.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/render.jpg -------------------------------------------------------------------------------- /ext/bvh/test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/CMakeLists.txt -------------------------------------------------------------------------------- /ext/bvh/test/benchmark.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/benchmark.cpp -------------------------------------------------------------------------------- /ext/bvh/test/custom_intersector.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/custom_intersector.cpp -------------------------------------------------------------------------------- /ext/bvh/test/custom_primitive.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/custom_primitive.cpp -------------------------------------------------------------------------------- /ext/bvh/test/node_intersectors.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/node_intersectors.cpp -------------------------------------------------------------------------------- /ext/bvh/test/obj.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/obj.hpp -------------------------------------------------------------------------------- /ext/bvh/test/refit_bvh.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/refit_bvh.cpp -------------------------------------------------------------------------------- /ext/bvh/test/scene/cornell_box.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/scene/cornell_box.obj -------------------------------------------------------------------------------- /ext/bvh/test/scene/cornell_box_reference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/scene/cornell_box_reference.png -------------------------------------------------------------------------------- /ext/bvh/test/simple_example.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/bvh/test/simple_example.cpp -------------------------------------------------------------------------------- /ext/cxxopts/LICENSE-cxxopts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/cxxopts/LICENSE-cxxopts -------------------------------------------------------------------------------- /ext/cxxopts/cxxopts.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/ext/cxxopts/cxxopts.hpp -------------------------------------------------------------------------------- /gallery/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/gallery/0.png -------------------------------------------------------------------------------- /gallery/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/gallery/1.png -------------------------------------------------------------------------------- /sample/camera.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/camera.cpp -------------------------------------------------------------------------------- /sample/camera.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/camera.h -------------------------------------------------------------------------------- /sample/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/common.h -------------------------------------------------------------------------------- /sample/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/main.cpp -------------------------------------------------------------------------------- /sample/sdf_renderer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/sdf_renderer.cpp -------------------------------------------------------------------------------- /sample/sdf_renderer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/sdf_renderer.h -------------------------------------------------------------------------------- /sample/sdf_shadow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/sdf_shadow.cpp -------------------------------------------------------------------------------- /sample/sdf_shadow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/sample/sdf_shadow.h -------------------------------------------------------------------------------- /src/bvh.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/bvh.cpp -------------------------------------------------------------------------------- /src/d3d11-sdf/bvh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/d3d11-sdf/bvh.h -------------------------------------------------------------------------------- /src/d3d11-sdf/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/d3d11-sdf/common.h -------------------------------------------------------------------------------- /src/d3d11-sdf/ray.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/d3d11-sdf/ray.h -------------------------------------------------------------------------------- /src/d3d11-sdf/sdf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/d3d11-sdf/sdf.h -------------------------------------------------------------------------------- /src/d3d11-sdf/sdf.hlsl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/d3d11-sdf/sdf.hlsl -------------------------------------------------------------------------------- /src/sdf.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AirGuanZ/SDFGenerator/HEAD/src/sdf.cpp --------------------------------------------------------------------------------