page logo, three tetrahedra
intersecting a sphere
home
research gallery
  • origami
  • programming
  • bifurcation
    php raytracer
    projects
    wireworld
  • biology inspired
  • photography
  • number notes
  • rants
  • games
  • misc


  •   PHP Raytracer
    This is a very experimental PHP raytracer, based off of the documentation at Povray.org.

    This probably falls under the catagory of things that should not ever be done, but that I've done anyhow.

    The raytracer is now 'complete', insofar as it replicates the povray example. I suspect any attempts to make it more fully functional would result in me being labeled as among the completely insane, so I'll not do so.

    The script can try to make a jpeg image if you have GDlib installed, but I wouldn't rely on it.

    I'm not going to run it here because it is a rather heavy load on the server, but these images should give you an idea of what the script can do.

    Specular highlights, diffuse lighting, and reflections.
    Specular highlights and reflections. No diffuse lighting.
    Diffuse lighting and reflections. No specular highlights.
    Specular highlights and diffuse lighting. No reflections.
    Diffuse lighting. No specular highlights or reflections.
    Specular highlights. No diffuse lighting or reflections.
    Reflections. No specular highlights or diffuse lighting.
    No specular highlights, diffuse lighting, or reflections.
    Specular highlights, diffuse lighting, and reflections. Random sphere selection.
    Specular highlights, diffuse lighting, and reflections. Random sphere selection.
    Copyright © Darren Abbey.