Giter Club home page Giter Club logo

3dmodelsflatshading's Introduction

3dModelsFlatShading

The code represents a program for loading and rendering a 3D model using SDL (Simple DirectMedia Layer) and OpenGL.


pic

FilesFeaturesHow To Use

Files

  • configure.sh: A shell script to set up the project dependencies and environment.
  • build.sh: A shell script to build the project using CMake.
  • run.sh: A shell script to execute the compiled graphics application.
  • clean.sh: A shell script to clean up build artifacts and generated files.
  • src: A directory containing the source code files for the graphics application.
    • barycentric.cpp: Implementation of functions related to barycentric coordinates calculation.
    • border.cpp: Implementation of functions for drawing lines.
    • border.h: Header file declaring functions for drawing lines.
    • colors.h: Header file defining color structures and operations.
    • fragment.h: Header file defining fragment and shader-related structures.
    • framebuffer.cpp: Implementation of functions for handling the frame buffer.
    • framebuffer.h: Header file declaring functions and data structures for managing the frame buffer.
    • print.h: Header file containing functions for printing various data types.
    • shaders.h: Header file defining fragment and vertex shader functions.
    • trianglefill.cpp: Implementation of functions for loading 3D models.
    • trianglefill.h: Header file declaring functions and data structures for loading 3D models.
    • triangles.h: Header file declaring functions and structures related to triangle rendering.

Features

The main features of the graphics application include:

  • Loading and rendering 3D models.
  • Flat shading of the 3D models.
  • Use of barycentric coordinates for triangle rendering.

How To Use

To clone and run this application, you'll need WSL (Windows Subsystem for Linux) and the following tools installed on it: Git, C++ compiler, CMake, Make, glm, tbb, and SDL2. From your command line:

# Clone this repository
$ git clone https://github.com/bl33h/3dModelsFlatShading

# Open the project
$ cd 3dModelsFlatShading

# Give execution permissions
$ chmod +x configure.sh
$ chmod +x build.sh
$ chmod +x run.sh

# Run the app
$ ./run.sh

3dmodelsflatshading's People

Contributors

bl33h avatar

Stargazers

 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.