renderrr

所属分类:GPU/显卡
开发工具:Cuda
文件大小:0KB
下载次数:0
上传日期:2020-08-05 14:44:04
上 传 者sh-1993
说明:  简单光线跟踪器的GPU实现。
(A GPU implementation of a simple ray tracer.)

文件列表:
CMakeLists.txt (780, 2020-08-05)
driver/ (0, 2020-08-05)
driver/CMakeLists.txt (748, 2020-08-05)
driver/many_balls.cpp (2699, 2020-08-05)
driver/three_balls.cpp (1829, 2020-08-05)
include/ (0, 2020-08-05)
include/color.h (408, 2020-08-05)
include/cuda_error_helper.cuh (38156, 2020-08-05)
include/cuda_header.cuh (311, 2020-08-05)
include/image.h (734, 2020-08-05)
include/light.h (323, 2020-08-05)
include/material.h (788, 2020-08-05)
include/object.h (697, 2020-08-05)
include/ray.h (364, 2020-08-05)
include/renderer.h (995, 2020-08-05)
include/scene.h (1507, 2020-08-05)
include/util.h (254, 2020-08-05)
include/vector.h (1014, 2020-08-05)
many_balls.png (585149, 2020-08-05)
renderrr.ipynb (7674, 2020-08-05)
src/ (0, 2020-08-05)
src/CMakeLists.txt (1240, 2020-08-05)
src/color.cpp (593, 2020-08-05)
src/image.cpp (2071, 2020-08-05)
src/light.cpp (304, 2020-08-05)
src/material.cpp (992, 2020-08-05)
src/object.cpp (1615, 2020-08-05)
src/ray.cpp (538, 2020-08-05)
src/renderer.cpp (5620, 2020-08-05)
src/scene.cpp (4879, 2020-08-05)
src/util.cpp (643, 2020-08-05)
src/vector.cpp (2996, 2020-08-05)
three_balls.png (455835, 2020-08-05)

# renderrr A GPU implementation of a simple ray tracer. Some of the ray tracing features are from [Ray Tracing in One Weekend](https://raytracing.github.io/books/RayTracingInOneWeekend.html#rays,asimplecamera,andbackground/sendingraysintothescene) and some are from [Building a Ray Tracer in Python](https://www.youtube.com/watch?v=KaCe63v4D_Q). ![](three_balls.png) ![](many_balls.png) ## Running the code First clone the code: ```console git clone https://github.com/siavashadpey/renderrr.git ``` To compile the NVIDIA GPU implementation of the code, run the following commands from the main directory `renderrr`: ```console mkdir build_parallel cd build_parallel cmake -DCUDA=ON .. make ``` To compile the CPU implementation of the code, run the following commands from the main directory `renderrr`: ```console mkdir build_serial cd build_serial cmake .. make ``` Finally, run the code from `build_parallel` (or `build_serial`) to generate the ppm file: ```console ./driver/three_balls ```

近期下载者

相关文件


收藏者