I'm working on a 3D engine using only the standard python libraries. I'm using Tkinter to display points. I'd like to convert a given 3D (x, y, z) point to a 2D (x, y) coordinate to be displayed on a screen by drawing a line from one to the other. I have tried searching online for how to do this but the answers don't seem to cover for all of my inputs. I'd like to get a function that uses
- Camera X
- Camera Y
- Camera Z
- Camera Rotation X
- Camera Rotation Y
- Point X
- Point Y
- Point Z
to produce my 2D coordinate. I don't really have any code to show since nothing I tried got close to doing what I want. Thanks