Git Product home page Git Product logo

42-scop's Introduction

42 - Scop

Goal

  • Your goal is to create a small program that will show a 3D object stored in a .obj file. You will be at least in charge of parsing to obtain the requested rendering.
  • In a window, your 3D object will be displayed in perspective, rotate on itself around its main symmetrical axis.
  • By using various colors, it must be possible to distinguish the various sides. The object can be moved on three axis, in both directions.
  • A texture must be applicable simply on the object when we press a dedicated key, and the same key allows to go back to the different colors. A soft transition between the two is requested.

Constraints

  • C Language
  • Modern OpenGL (min v4)
  • Shaders
  • No external library other than libc and libm, except for Window and Events handling

Here's the list of whats working and what not.

Bold elements are mandatory.

Whats working

  • Shader parsing and building
  • Object parsing (vertices, texture coords, normals and face)
  • Face format (v, v/vt, v//vn, v/vt/vn)
  • Object display
  • Rotation around object center
  • Object translation
  • Texture display (with UV mapping)
  • Texture display ( without UV mapping )
  • Camera transformation
  • Model transformation
  • Polygon triangulation
  • Multiple objects
  • MTL File parsing
  • Texture file parsing
  • Generating missing normals
  • Keybinding to switch between multiple rendering mode
  • Mouse camera rotation
  • Keyboard camera translation
  • Directional light
  • Automatic multi-object positioning

42-scop's People

Contributors

sylrelo 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.