Skip to main content

An attempt at 3D - 1.0

My attempt at 3D in PyGame, without using OpenGL. Formerly '3D spinning cube test'.

Just a test of the 3D maths I've been attempting to learn recently, which uses only pygame.draw.aaline() - and circles for drawing the points, but that doesn't really count ;-). I cheated slightly by making it simply project the 3D points onto the XY plane so that they're easily mapped to screen co-ordinates, which means that the camera is fixed, but I'll probably change that when I work out how to :P


Home Page


An attempt at 3D 1.0 — 8 Jan, 2009

An attempt at 3D 1.5 — 18 Jan, 2009 account Comments

  • Zeyital 2012-07-08 02:00:42

    It is pretty good. I was hoping it to be a little more real. But I don't think pygame is capable.

  • admin7777 2014-10-05 00:29:49

    The polorix URL is broke/deceased ( ). On [which is like some kind of weird duplicate page?], links are ok, but....

    Source at date of comment gave windows 7, 32 bit error ...........
    File "*\An attempt at", line 139, in Redraw, (255,255,255), (point[0], point[1]), 2)
    TypeError: integer argument expected, got float

    And there is no link for 1.5.