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.
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.
- Python 3.8+
- PySide6
- PyOpenGL
- NumPy
pip install PySide6 PyOpenGL numpypython 3dsimulator.py- 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
3dsimulator.py
├── Data Models (Resource, Building, Event, Achievement)
├── Business Logic (Company)
├── 3D Rendering (GLWidget, draw functions)
└── Graphical Interface (MainWindow)
| Action | Control |
|---|---|
| Rotate camera | Click & drag mouse |
| Zoom in / out | Mouse scroll |
| Movement | WASD Keys |
- 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