Skip to content

Josephbakulikira/Simple-3D-Graphic-pygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-3D-Perspective Projection-pygame From Scratch

checkout my youtube channel: https://www.youtube.com/c/Auctux

checkout another 3D engine that support lighting and implementation with python : https://github.com/Josephbakulikira/Pygame-3D-engine--Graphic


it still need a proper Z sorting of faces when moving the cube the occlusion is not finished , still looking for a better way to do that , the faces kinda overlap each other sometimes, and also apply the zsort to all the shapes in the scene, i might improve this code later,... any help is welcome


Inputs(Commands)

        " W A S D " to move
        " maintain the Right button of the mouse and move the mouse " to rotate the cube
        " click and maintain the mouse scroll wheel and move the mouse" to move  the camera up and down in scene up and down
        " numpad + and numpad -" to zoom in and out 

ezgif com-gif-maker (1)

ezgif com-gif-maker