Skip to content

narajaon/RTv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Rtv1 is RayTracer written in C. It uses a custom library called minilibx wich, you can guess by it’s name, is a minimalist version of the Xlib. Basic shapes are supported, including the sphere, the cone, the cylinder and the plane

Getting Started

Start by compiling the project using the command Make

Then you need to launch the program (replace scene_file.rt with an appropriate file)
./rtv1 scene_file.rt

Some template scenes are included in ‘scenes’ directory

Usage

After launching the program, you will see a window showcasing the scene you selected

alt text

You can then move in the scene in real time

X axis : A or D
Y axis : W or S
Z axis : page up or page down
Reset scene : R Close window : esc

alt text alt text alt text

And of course, you can also rotate your POV to look around with the arrow keys

About

A raytracer written in pure C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published