Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drkno/ray-tracer
COSC363 Assignment 2: Ray Tracer
https://github.com/drkno/ray-tracer
Last synced: 1 day ago
JSON representation
COSC363 Assignment 2: Ray Tracer
- Host: GitHub
- URL: https://github.com/drkno/ray-tracer
- Owner: drkno
- Created: 2015-05-24T01:30:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-23T23:44:14.000Z (over 9 years ago)
- Last Synced: 2023-08-16T21:33:55.797Z (about 1 year ago)
- Language: C++
- Size: 491 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Ray-Tracer
A multi-threaded ray tracer developed for a COSC363 assignment. Received full marks (A+, 100%).## Building
#### Prerequisites
- FreeGLUT
- C++11 Complient Compiler (Latest GCC, VS2012/VS2013)#### Linux/OSX/BSD
```cd``` into this directory and type ```make```. Clang has a bug regarding ```#pragma once```, it can safely be ignored.#### Windows
Open the Visual Studio 2013 solution file and press build.
NOTE: Using Visual Studio below 2013 is untested, and below 2012 is known not to work due to lack of C++11 support.## Running
Ensure both Earth.raw and Moon.raw are in the same folder as the compiled executable. Run the executable, no extra
CLI arguments are required.## Controls
| Key | Action |
|-------- |------------------------------------- |
| Up | Move eye forward |
| Down | Move eye back |
| a | Toggle Anti-aliasing |
| +/= | Increase number of threads |
| -/_ | Decrease number of threads |
| r | Force redraw |
| f | Toggle fog |
| [/{ | Move beginning of fog closer to eye |
| ]/} | Move beginning of fog away from eye |
| ;/: | Move end of fog closer to eye |
| ‘/” | Move end of fog away from eye |
| ,/< | Increase fog strength |
| ./> | Decrease fog strength |
| ? | Cycle fog colour |
| q | Quit |## License
All code that was not externally sourced is licensed under the MIT license.