Skip to content

About

Interactive application that combines OpenGL real-time 3D rendering with economic simulation mechanics. The core premisse of this craft was to increase and imerge one-self in the knowledge of Primitives, OpenGL, 3D, Lighting, Animation, etc.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

3D Economic Simulator

Description

An interactive application that combines economic simulation mechanics with real-time 3D rendering using OpenGL. The player manages a company by constructing buildings, buying and selling resources, and watching their industrial city evolve visually as the business grows.

Image

Requirements

  • Python 3.8+
  • PySide6
  • PyOpenGL
  • NumPy

Installation

pip install PySide6 PyOpenGL numpy

Running

python 3dsimulator.py

Computer Graphics Concepts Applied

  • 3D Primitives: boxes, cylinders, and triangular prisms
  • Transformations: hierarchical translation, rotation, and scaling
  • Lighting: Phong shading model with directional light
  • Animations: real-time procedural effects (smoke, water, rotations)
  • Materials: colors and reflection properties

Project Structure

3dsimulator.py
├── Data Models (Resource, Building, Event, Achievement)
├── Business Logic (Company)
├── 3D Rendering (GLWidget, draw functions)
└── Graphical Interface (MainWindow)

Controls

Action Control
Rotate camera Click & drag mouse
Zoom in / out Mouse scroll
Movement WASD Keys

Features

  • 8 building types, each with a unique 3D model
  • Upgrade system (5 levels per building)
  • Dynamic market with price volatility
  • Random events and achievement system
  • Save / Load support in JSON format

Authors

  • Andrey Justen Júnior
  • Bárbara Prim de Souza
  • Mateus Nunes Lehmkuhl
  • Leonardo Alves Silva

An economic simulator with low-poly 3D visualization, developed for the Computer Graphics and Virtual Reality course.

About

Interactive application that combines OpenGL real-time 3D rendering with economic simulation mechanics. The core premisse of this craft was to increase and imerge one-self in the knowledge of Primitives, OpenGL, 3D, Lighting, Animation, etc.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages