Skip to content

helenhsn/raycasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Small raycaster in C, allowing the user to cast light on edges and curves.

The user can draw curves by placing points on the screen. Each fragment of curve is modelled by a Cubic Bézier curve which is connecter with one another by a $C^2$ junction.

The user can also move the curve as he wants by sliding the white points.

You can see examples of this graphical interface below :

Prerequisites

In order to compile this program, you need to install the following libraries :

  • the SDL2 library (available here : don't forget to choose the version according to your OS)

  • the SDL_ttf library which isn't included in the default SDL2 library and therefore needs to be downloaded separately (available here. This library handles the use of fonts.

  • the GSL library which is a C library for numerical computations that I used to calculate cubic roots (available here).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published