3d library for PHP
Image_3D is a 3D library for PHP 5.
Rendered Formula 1 carIt may surprise you, that someone writes a 3D library in PHP - and you're right. This is not very useful, fast or featurerich (compared with povray, opengl, or whatever). But it is amazing what you are able to do with PHP and how fast you can do this (bearing in mind, it's PHP). So let's take a look at the features:
Finite count of RGBA lights (pointlights, spotlights, ambient)
Several different objects (cube, sphere, torus, cone, pie, map, ..)
Import of 3ds objects
Full support for transparent polygons
Different output formats and output drivers (svg, gd, imagick, ASCII)
Different renderers (isometric, perpectively)
Colored spotlightsAnd everything of the above mentioned is easy extendable, so you can easily write own drivers, renderers, objects and lights. The package is available at pear . If you have pear installed on your system just type:
pear install -f Image_3DOtherwise you can grap the archive or check it out from cvs. Richard Davey wrote a great article on Image_3D. And you can get some more information from the talk I gave at the last International PHP Conference on this topic.