Giter Club home page Giter Club logo

42_c_raytracing's Introduction

42-C-Raytracing

This prgm use the technique of raytracing. I use vectors to solve differents equations in order to draw : sphere, cone, cylinder, plane. (ligths, shadow, filter, effects and animations etc...). This programm create an image according to their mathematics formula. Thus, you can create different forms : sphere, cylinder, cone and plane. Multi various bonus was necessary to have good results. This infography technology is used in diffents cinema animations studios.

Environment

Mac os x el capitan

install GTK(librairy for menu) if any problem to brew: rm -rf ~/.brew

export HOMEBREW_CACHE=/tmp/mycache

export HOMEBREW_TEMP=/tmp/mytemp

mkdir /tmp/mycache /tmp/mytemp

/usr/local/bin/brew update

~/.brew/bin/brew install โ€ฆ install gsl(mathematic librairy to solve 4-6 degre equations)

C langage

team project of 4 members (gantt diagramm to share tasks)

Run

brew gtk brew gsl git clone https://github.com/rim31/42_C_raytracing.git cd 42-C-raytracing make

./rt scenes/sujet1.rt

(choose a scenes in the folder scenes)

basic render :

multi ligths brigthness Esc to quit the prgm sphere plane cylinder cone

Texte alternatif

Bonus :

reflection, exotiques forms : ellipsoide, parabolloide, torrus, triangle, quadrilatere, limited forms, texture, loading info multi threads, various lights, editor scenes : set up yourself camera , lights, rotation and obejct

Texte alternatif

Ultimate bonus:

GTK menu : anti-aliasing, filter speia or various colors, save picture, open scenes in menu textures, homer, starfox, minion, a pokemon, solar system etc... Texte alternatif

Aninamtion : presse E key

Difficulties:

Initially, we wated to create a kind of softawre. Thus, i wanted to creat animation movie. Unforntunally, the code isn't really well optimized. Indeed, using GPU goes as fast as multi thread (8 cores). Moreover, i tried to code myself a calculator solving equation of 4 degres or more (using Ferrari method or Descart etc...) but it is also too slow. I had plenty of ideas or imagination making fun scene, like Homer, Bomberman or Starfox. It took 7 weeks.

42_c_raytracing's People

Contributors

rim31 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.