Branch master was renamed to main.

2026-02-09 15:07:45 +01:00
2026-02-09 15:07:45 +01:00
2024-04-04 00:15:07 +02:00
2024-04-04 00:15:07 +02:00
2026-02-09 23:39:31 +01:00
2026-02-09 14:17:46 +01:00

3D Renderer

A simple 3D renderer that allows you to move around the scene using the keys.

3D Renderer was written using Python and PyGame library. This project was part of "Computer Graphics" course at Warsaw University of Technology.


Informations

Important

App is no longer maintained, but should work properly

Features

  • Create your own scene
  • Move around the scene using the keys

Installation

Download latest package version from Releases tab, unpack, install requirements and you good to go

Requirements

  • Python installed
  • PIP packages:
    • pygame
    • numpy

You can also use requirements.txt file to install PIP dependencies

pip install -r requirements.txt

Usage

python 3d_renderer

Create the scene:

You can define your own scene in main method of App class in 3d_renderer/app.py file.

  1. Create object builder: obj_builder1 = ObjectBuilder()
  2. Add as many vertices to the object as you want: va = obj_builder1.add_vertex(-1, 1, 1)
  3. Connect vertices to make edges: obj_builder1.add_vertices_connection(va, vb)
  4. Build object and add it to the scene: self.renderer.add_object(obj_builder1.build())

Controls:

  • W - move forward
  • S - move backward
  • A - move left
  • D - move right
  • Space - move up
  • LShift - move down
  • = - FOV up
  • - - FOV down
  • F - Pitch up
  • R - Pitch down
  • E - Yaw up
  • Q - Yaw down
  • C - Roll up
  • Z - Roll down

Attribution

You can copy this repository and create your own version of the app freely. However, it would be nice if you included URL to this repository in the description to your repository or in README file.

Other sources:

Description
A simple 3D renderer that allows you to move around the scene using the keys.
Readme MIT 131 KiB
1.0.0 Latest
2026-02-09 15:08:27 +01:00
Languages
Python 100%