naavis / remonttimies

Hobby-project raytracer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remonttimies v0.2

A hobby-project raytracer with real-time OpenGL preview of the scene. Currently the raytracer supports pathtracing with Russian roulette.

Cornell box rendered with Remonttimies Cornell box rendered with Remonttimies

Requirements

Remonttimies requires the following libraries to run:

The project is currently being developed with Visual Studio 2013. The libraries are included in the project via NuGet packages. NupenGL Core was used instead of GLEW and GLFW because the existing GLEW package refused to work with VS2013. Unfortunately NupenGL Core includes the FreeGLUT library, which is not actually needed. opengl32.lib had to be linked manually to get the project to work.

How to run

The program is simply run by giving the 3D model filename as the command-line parameter:

Remonttimies.exe foo.obj

The program has only been tested with a few OBJ files so far.

WASD keys move the camera forward, backward and sideways. R and F move the camera up and down. The arrow keys turn the camera. Pressing the spacebar renders the image, shows it on screen and saves to output.ppm. Pressing spacebar again hides the rendered image.

License

The project is licensed under the MIT license, reproduced below.

The MIT License (MIT)

Copyright (c) 2014-2015 Samuli Vuorinen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Hobby-project raytracer.


Languages

Language:C++ 99.3%Language:C 0.7%