Skip to content

Interactive 3D cube renderer with custom perspective, translation, and axis rotation.

Notifications You must be signed in to change notification settings

jodi-ivan/3d-perspective-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

3D Perspective Cube – Transformations & Rotation Demo

Interactive 3D cube renderer with custom perspective, translation, and axis rotation.


πŸ“Œ Note on Project Origin

This project was originally developed as part of my 3D Computer Graphics and Animation course (September 2015). In 2025, I migrated the code from an old local machine into GitHub, so commit dates reflect the upload, not the original development time.


🎨 Overview

A simple graphical application that visualizes a 3D cube using perspective projection and allows the user to interactively modify:

  • the vanishing point
  • cube position in 3D space
  • rotation along X, Y, or Z axes (real-time animation)

This project demonstrates the fundamentals of the 3D graphics pipeline: projection, transformation matrices, and rotation.


✨ Features

🧭 Customizable Perspective

  • Manually set the vanishing point (X, Y, Z)
  • Observe how the cube shape changes under different projection parameters

πŸ”„ Rotation Controls

  • Choose the rotation axis (X / Y / Z)
  • Start rotation animation with one click
  • Switch axes on the fly without restarting the program

πŸ“¦ 3D Cube Manipulation

  • Translate the cube along all three axes (X, Y, Z)
  • View how transformations affect projection and geometry

πŸŽ₯ Real-Time Rendering

  • Canvas auto-refresh
  • Immediate feedback as you adjust parameters

πŸ–Ό Screenshot

Interface Rotated Far Away

About

Interactive 3D cube renderer with custom perspective, translation, and axis rotation.

Topics

Resources

Stars

Watchers

Forks