Giter VIP home page Giter VIP logo

irg's Introduction

IRG

Course project for Interactive Computer Graphics.

Licence

Part of code is done by professors on FER. © 2012-2021 Marko Čupić, Željka Mihajlović and Hrvoje Nuić http://creativecommons.org/licenses/by-nc-nd/3.0/hr/

Content

  • Lab1
    • Drawing lines on raster units
    • Drawing and filling a polygon
  • Lab2
    • OpenGL program
    • 3D objects
    • Model, view and projection matrices
  • Lab3
    • Removing hidden polygons
    • Shading
      • Constant shading
      • Gouraud shading
      • Phong shading
  • Lab4
    • Textures
    • Shadow mapping

Work

Bresenham

Implementation of Bresenham's algorithm. Lines are drawn in the center of screen and lines cutting is implemented using Cohen Sutherland's algorithm. With left mouse button you determine two points and with right mouse button lines are drawn only in the screen center.

image

Polygons

Create a polygon with left mouse button and fill it with right mouse button.

image

Triangles

Drawing filled triangles using OpenGL VAO, VBO and EBO.

Wired model

Wired model of robot's head. image

OpenGL camera

Implementation of model, view and projection matrices. User can move his eye vector using keys Q, W, E, A, S, D.

Removing hidden polygons

Backface culling. Three different algorithms used for shading. Constant, Gouraud, Phong. image

Bezier curve

Eye is moving on Bezier's curve. User can set polygon's points using left mouse button and moving with Q,W,E,A,S,D.

Texture mapping.

Usage of minimaps, interpolation using nearest neighbour...

Shadow mapping

Scene is first drawn from light's perspective and with this we get depth's map. Then second time it's drawn from observer's position for obtaining correct shadow position. Bias of 0.005 is used for removing effect called shadown acne. image

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.