Raytracing and POV-Ray - the POV-Ray scene description language
Here you can get a rough idea how scenes can be created with the POV-Ray scene description language. Of course this can only offer a minimal introduction, to get an idea of the full set of features POV-Ray offers see the POV-Ray documentation.
Here is a fairly short example of a POV-Ray scene. It shows a classical motive of raytracing, a reflective sphere over a checkered plane. This scene contains all basic elements of a POV-Ray scene: a light source, a camera and some geometry.
the scene source code
global_settings { assumed_gamma 1.0 } |
|
Note there aren't any tricks required to achieve realistic reflections and shadows, all this is automatically generated by the raytracer. Also note the sphere is really a sphere, no approximation with many planar facets and there plane is a truly infinite planar surface. All this would be much more difficult in a scanline renderer.
Obviously the real strength of POV-Ray does not become visible in such a small scene, but if we replace the single sphere in the above scene with the following code you might get an idea what a powerful tool the POV-Ray scene description language can be.
#macro Sphere(Pos, Radius) |
POV-Ray of course offers much more - a lot of different shapes, light sources etc. as well as effects like media, global illumination, photon mapping, ... And if there is something missing you are in need of you can always implement it yourself :-).