Coder Social home page Coder Social logo

znatri / basic-rasterization-graphics Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

A basic rasterization graphics pipeline implemented from scratch, demonstrating fundamental concepts such as triangle rasterization, line drawing, and transformations.

Python 100.00%

basic-rasterization-graphics's Introduction

Basic Rasterization Graphics Project

This project is a simple implementation of rasterization in computer graphics, which involves converting geometric primitives such as points, lines, and polygons into a raster format suitable for rendering on a display. The project is designed for educational purposes, helping students understand the fundamentals of rasterization and its role in computer graphics.

Project Overview

The main goal of this project is to practice the basic principles of rasterization, including:

  • Drawing points and lines using Bresenham's line algorithm
  • Filling polygons using scanline algorithm
  • Implementing transformations, such as translation, scaling, and rotation
  • Clipping lines and polygons using Cohen-Sutherland and Sutherland-Hodgman algorithms

The project is developed using C++ and OpenGL, and it provides a simple user interface to interact with the implemented features.

Getting Started

Prerequisites

  • C++ compiler with C++11 support
  • OpenGL and GLUT libraries

Compiling and Running the Project

  1. Clone the repository:
git clone https://github.com/znatri/cs3451_p1_rasterization.git
  1. Navigate to the project directory:
cd cs3451_p1_rasterization
  1. Compile the project:
make
  1. Run the compiled executable:
./rasterization

Usage

The user interface allows you to interact with the implemented features through keyboard shortcuts:

  • P: Draw points
  • L: Draw lines
  • F: Fill polygons
  • T: Apply translation
  • S: Apply scaling
  • R: Apply rotation
  • C: Clip lines and polygons

Contributing

This project is for educational purposes and is not actively maintained. However, if you have any suggestions, issues, or improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more information.

Acknowledgments

The project was developed as part of the CS3451 - Computer Graphics course at Georgia Institute of Technology.

basic-rasterization-graphics's People

Contributors

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