Base on ray tracing in one weekend/next week
g++ version: g++ (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0
environment: vscode + win10
Use the following code to compile generally:
g++ src/main.cpp -o output/t
Running:
./output/t
or
(tips: ./output/t screen_with screen_height samples_per_pixel ray_tracing_depth)
./output/t 400 100 20 10
- Add a menu that sets screen width, screen height, samples per pixel and ray trancing depth.
- Add a header file called sstream in common.h
- Adjust files structure.
- Optimize multithreaded.
- The numbers of threads is twice the numbers of cpu cores.
- Running time is from 1min34s to 24s, which running parameters is 400 100 20 10.
- Add some cross platform code.
- Add BVH(Bounding Volume Hierarchies).
- The speed of code has increased by 300% - 2000% (It depends on the number of objects).
- Add perlin.
- Add image texture.
- Add Rectangle Class.
- Add Box Class.
- Build classic scene: Cornell Box.
- Basically complete v1 version.