Giter Site home page Giter Site logo

kodze8 / 3d-rendering Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 43.48 MB

A linear algebra course-inspired 3D rendering application, ft. a PyGame visualization. Render, move, and rotate 3D figures.

Python 100.00%
3drendering linear-algebra pygame

3d-rendering's Introduction

3D render project

This project involves 3D rendering using linear algebra for the geometrical transformation of objects. Projection matrices are utilized to transform these objects and render them in 2D. The project includes the creation of standardized 3D coordinates for various geometric figures, which are then transformed through matrices to enable rotations and projections.

Example Render

Example Render

Features

  • Standardized 3D Coordinates: Defines standardized 3D coordinates for different geometric figures such as cubes, spheres, pyramids, and tori.
  • Geometric Transformations: Utilizes linear algebra to create transformation matrices for rotations in the x, y, and z directions.
  • Projection Matrices: Transforms 3D coordinates into 2D for rendering on the screen.
  • Rendering Options: Supports rendering figures both with and without edges.
  • User Interface: Implements a user interface with buttons to select different figures and actions.

Interactive Controls:

  • Mouse Motion: Rotate objects in 3D space. Press the mouse button during motion.
    • Z key: rotate around z axis.
  • Direction Keys: Move objects along the x, y, and z axes.
    • Up Arrow: Move up.
    • Down Arrow: Move down.
    • Left Arrow: Move left.
    • Right Arrow: Move right.
  • M Key: Enlarge object.
  • N Key: Shrink object.

3d-rendering's People

Contributors

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