Does PyGame do 3d?

No, Pygame is a wrapper for SDL, which is a 2D api. Pygame doesn’t provide any 3D capability and probably never will. 3D libraries for Python include Panda3D and DirectPython, although they are probably quite complex to use, especially the latter.

Plotting a 3d cube, a sphere and a vector in Matplotlib

It is a little complicated, but you can draw all the objects by the following code: from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from itertools import product, combinations fig = plt.figure() ax = fig.gca(projection=’3d’) ax.set_aspect(“equal”) # draw cube r = [-1, 1] for s, e in combinations(np.array(list(product(r, r, r))), 2): … Read more

How do I compose a rotation matrix with human readable angles from scratch?

So the question really is Understanding 4×4 homogenous transform matrices well without the math behind the only thing that left is geometric representation/meaning which is far better for human abstraction/understanding. So what the 4×4 matrix is? It is representation of some Cartesian coordinate system and it is composed of: 3 basis vectors (one for each … Read more