Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

3D graphics rendered by PHP

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,469
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 20, 2009

I wanted to try out 3D rendering, so I wrote a PHP script to render 3D graphics.

The balls aren't really balls, they are just points with filled circles drawn around them. They don't interact with anything other than the reflecting floor ... that actually isn't there-the reflections are just points mirrored in the x,y-plane.

Hm, maybe I will code a website in C++ tomorrow. =P

Category:

Film & Animation

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (NeitSotm)

  • I'm interested to see how this is done. Can you share the php code.

  • @varinder101 Sorry, I don't have it any more. I used a 3D perspective projection (look it up on wikipedia) to project points on a 2D plane. Then I drew a circle around the projected points. This isn't entirely correct because the projections should actually be ellipses.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • Not bad not bad :D I tried to wrote a 3d graphic engine with php and phpgd + javascript and i have maybe 3-4 FPS with 100x100 output hehe

    You know, im good at maths, not at programming, damn it.

  • So once you had the 3d plan setup within php you render a set of images to show the progression of the points and then combined it into a video?..!

  • Where do I learn how to do this?

  • nice!

  • Wow cool !! how did you do that ??

  • lol that's awesome. Just for the hell of it, too! Turned out very well.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more