Skip to main content

An attempt at 3D

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


David
(animatinator)
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

Changes

Links

Home Page
http://exesoft.blogspot.com

Releases

An attempt at 3D 1.0 — 8 Jan, 2009

An attempt at 3D 1.5 — 18 Jan, 2009

Pygame.org account Comments

  • Zeyital 2012-07-08 02:00

    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

    The polorix URL is broke/deceased ( http://www.pygame.org/project-... ). On http://www.pygame.org/project-... [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 3D.py", line 139, in Redraw
    pygame.draw.circle(screen, (255,255,255), (point[0], point[1]), 2)
    TypeError: integer argument expected, got float

    And there is no link for 1.5.

    Cheers