Skip to content

ShuaLyons/Python3dModelViewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3D Model Viewer

Python Version License Last Commit

A simple, interactive 3D model viewer built with Python, Pygame, and PyOpenGL.
Supports loading .obj models and allows intuitive mouse controls for rotation, zooming, and panning. Includes a fixed HUD showing XYZ axes for orientation.

Features

  • Load and render Wavefront .obj 3D models using PyWavefront
  • Mouse-based controls:
    • Left-click + drag: Rotate the model
    • Right-click + drag: Pan the camera view
    • Mouse scroll wheel: Zoom in/out
  • Fixed Heads-Up Display (HUD) showing XYZ axes:
    • Red = X axis
    • Green = Y axis
    • Blue = Z axis (diagonal)
  • Easily customizable background color
  • Lightweight dependencies: Python, Pygame, PyOpenGL, PyWavefront

Demo

Demo Screenshot

Installation

  1. Clone this repository:
git clone https://github.com/shualyons/python3dmodelviewer.git
cd yourrepo

---

About

A simple 3D model viewer built with Python, Pygame, and PyOpenGL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages