Skip to content

ilkou/RT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RT

an infrastructure capable of supporting different features and obtain sublime computer-generated images using the RAYTRACING method.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Mac OS

Nothing :)

Windows

  • terminal of ubuntu or other linux distributions (windows store)

to run graphical Linux programs on your windows 10 desktop you need a GUI server, such as X11. Such does not exist for Windows, but there are alternatives, one of which is Xming, which can be downloaded free of charge, from SourceForge (set private when ask) then enable bash to use xming which can be done by executing the following command:

echo "export DISPLAY=:0" >> ~/.bashrc

Linux

  • update and upgrade ur system:
apt-get update
apt-get upgrade
  • install gcc and make
  • install the following packages:
apt-get install libx11-dev
apt-get install libxext-dev
  • install SDL packages:
apt-get install libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev libsdl2-mixer-dev

Installing

- default window size:
  make
- for a specific window size:
  make WIDTH=1500

Run the program

Language: C

Libraries: SDL, miniLibX, pthread

Features implemented:

Voronoi noise, Perlin noise, UV mapping, Reflection, Antialiasing, Motion blur, Multi thread computing, slice different objects following its own axis, Point light, Parallel light, Soft shadow

Objects:

The Moebius ribbon, perforated cube, torus, paraboloid, hyperboloid, cube, cone, cylinder, sphere, plane, triangle..

Resources

Video

Pics

alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text alt text

About

Ray Tracing from scratch in C ❤️

Resources

Stars

Watchers

Forks

Languages