Skip to content
This repository has been archived by the owner on Nov 26, 2022. It is now read-only.

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
raywan committed Aug 9, 2019
1 parent 91a2c45 commit 9a4c6d7
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 24 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -710,5 +710,7 @@ MigrationBackup/
toy
renders
*.png
!screenshots/*.png
render.png
build.ninja
build.ninja
TODO.txt
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# rays

### Ray's Ray Tracer - A (Forever In-progress) Monte Carlo Path Tracing Renderer

**2019/08/08** - Project still needs a lot of work and I haven't worked on it in a while, but I need to open-source this repo for reasons.

## Features
- **Currently:** 3.2 million rays/second
- Multi-threaded tile-based rendering
- Bounding Volume Hierarchy (BVH) as an acceleration structure
- Procedural texturing
- Wavefront OBJ file parsing and rendering
- Lambertian BRDF
- Stratified sampling
- Math (vectors, matrices), high-resolution timing, memory arena allocator and more via [raywan/rw](https://github.com/raywan/rw)

## Screenshot

- Suzanne and 3 Spheres (2048spp, max depth of 3)

![3 depth, 2048spp](screenshots/render_3d2048spp.png)

## Building

This project supports Windows, Mac and Linux and uses [Ninja](https://ninja-build.org) for building. There's also a `build.bat` file for Windows.

```
python configure.py
ninja
```

## Dependencies

- [raywan/rw](https://github.com/raywan/rw) - everything
- [nothings/stb](https://github.com/nothings/stb) - stb_image_writer.h

## Resources

- [PBRT](http://www.pbr-book.org/)
17 changes: 0 additions & 17 deletions TODO.txt

This file was deleted.

Binary file added screenshots/render_3d2048spp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/world.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ void create_world(World *world) {
100.0f, // intensity
});

// world->lights.push_back({
// LT_SPHERE,
// rwm_v3_init(-2.0, 2.0, -3.0), // position
// rwm_v3_init(0.0f, 0.0f, 1.0f), // color
// 600.0f, // intensity
// });
world->lights.push_back({
LT_SPHERE,
rwm_v3_init(-2.0, 2.0, -3.0), // position
rwm_v3_init(0.0f, 0.0f, 1.0f), // color
600.0f, // intensity
});

#if 1
world->lights.push_back({
Expand Down

0 comments on commit 9a4c6d7

Please sign in to comment.