News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kore Nordman's Blog:
Raytracing with Image_3D
April 05, 2006 @ 07:48:36

Kore Nordman has been making even further advancements in the development behind the PEAR Image_3D library - this time, he looks at raytracing in PHP.

I was always writing, that implementing a raytracer (or the better german description) in PHP would be far to slow. And then, two days ago, I had the feeling I should prove this ... this was also the way Image_3D was born. With the infrastructure Image_3D offers, all the existing models, the abstraction etc. it wasn't such a big thing. You mainly need to write a short algorithm which gets the intersection point for a polygon with a line, and that's it. For sure, you should optimze the algorithm a bit. And it is really fun to implement such a simple mathematical model like raytracing is.

He talks about some of the problems that raytracers don't have that normal renderers do (shadows, reflections, etc) and notes that the images display in the post took about seven minutes to render on his system. He proved that it can work, but notes that it supports his original hypothesis - rendering like this with PHP is just too slow.

0 comments voice your opinion now!
raytracing image_3d pear package seven minutes raytracing image_3d pear package seven minutes


blog comments powered by Disqus

Similar Posts

Padraic Brady's Blog: PEAR::Encryption and Zend_Crypt Revisited

Pierre-Alain Joye's Blog: Zip-1.6.0, PHP 5.2.0 and ZipCode

Alison Holloway's Blog: Zend Core for Oracle 2.0 Released

Stoyan Stefanov's Blog: Text_Highlighter 0.7.1 and hiliteme.com updates

HowToBoard.com: Installing php-5.2.0 from srpm on CentOS 4


Community Events











Don't see your event here?
Let us know!


hack framework hhvm composer release introduction install package unittest application language performance component code podcast security overview opinion facebook symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework