Git Product home page Git Product logo

minirt's Introduction

This is a 21 School/Ecole 42 Project. Worked in team with Dredfort

miniRT (Raytracing)

MiniRT is a program that can render 3D scenes using raytracing technique using MiniLibX library. Subject can be found here.

Project goals

  • Get familiar with raytracing
  • Render 3D scenes with geometric objects using linear algebra
  • Work with light, shading and texturing
  • Implement scene navigation, object selection and modification

Camera Rotation

To compile and run

Run the following commands in Terminal:

# to build
> make

# to run
> ./miniRT scenes_checklist/test01-sphere.rt 

The program accepts one .rt file as argument. Scene description files can be found at scenes_checklist/ folder. Scene includes Ambient lightning, Camera, one or more coloured Spot lights, and geometry objects (spheres, planes, cylliners and cones).

To close window press esc.

Scene control

Camera movement

Object modification

Click [left mouse button] to select/deselect object
Use [a] & [d] to move left or right Use [1] & [2] to increase/decrease object radius
Use [q] & [e] to move up and down Use [3] & [4] to increase/decrease object height
Use [w] & [s] to move forwards or backwards Use [+] & [-] to increase/decrease light brightness
Press [↑] rotatate camera upwards Press [T] apply/discard texture
Press [↓] rotatate camera downwards Press [B] apply/discard bump
Press [←] rotatate camera left Press [C] apply/discard checkerboard
Press [→] rotatate camera right

Reneder examples

Spheres scene White scene White scene Complex scene Complex scene Complex scene

Shading render on light movement

Light movement

Useful links

minirt's People

Contributors

rarakira avatar rupl-org avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.