Site map

Site map

Update
20 Jul 2009

Ray tracing

by François de Dardel

Violon

Music



Desk with Macintosh
Introduction

For those curious: the picture on the left is a synthetic (or "virtual") image created on the Macintosh using Persistence Of Vision (POV) Ray-tracing. The image is built geometrically, using so-called "Constructive Spatial Geometry".

All the objects and other textures or patterns are created and assembled "by hand" using POV. A virtual camera and virtual light sources are then set, and the picture is created ("rendered") by "ray tracing". By moving the camera around, you can take any number of pictures of the same scene.

The real Mac fans will notice that the iMac G4 is a little simplified. The screen itself however is a dump from my own Mac. More about ray-tracing under other pictures, with the new Italian villa, but first have a look at my house.

The house project

This is an exercise with one single picture file and many resulting images. Here, I started (in August 2005) from a file made by Sascha Ledinsky, and I added many details, including the tree, the pavement, the fountain, the bench and the landscape around the house. Then I placed furniture inside the house to take interior views. See the position map to orient yourself and the floor plan to get acquainted with the the house indoors.

Map of the house Everything is defined geometrically, except the pictures on the walls and the tapestry. There are three source files totalling 144 kB of text to describe the house, its environment and the furniture, plus another 12 kB for the tree adapted from Jean-Laurent Pradel, and 24 kB for the sea plane borrowed from Kurt Bangert. Moving the "camera" around and into the house demonstrate that it is indeed a geometric object and not a series of drawings. I only vary the position of the camera, and the lighting, to get all the images on the right. I also occasionally move around the balloon and adjust the weather fane. I have changed the environment in August 2007, and the island landscape is now somewhat more realistic.

I designed the pavement with individually random-coloured cobblestones.

In the outdoor pictures, there is a little amount of fog, so that the distant objects are not as clear as the close ones. I am not completely satisfied with the results, and hope to do better at a later stage. The POV program is very powerful, and quite complicated to learn. There are hundreds of commands to adjust light, colours, textures, reflection, refraction, and everything is hard coding. Clicking on the close-up of the roof, you will see the arrangement of the tiles, courtesy of Sascha Ledinsky. I would never have found the complicated algorithm used for this purpose, but I learnt from it to make the pavement around the house.

House This is the first version, made in August 2005. It had no landscape, was smaller, and empty. The door opened on the wrong side, too... Today, there are many items in the house. I created most of them, but I also borrowed and modified several objects from files made available by the community of POV ray tracers.

I started ray-tracing around 1993 with DKB (by Eduardo Schwan), the ancestor of POV. I am still not a big expert, although I improved a lot through practicing after mid 2005. Several of the pictures made their way to my employer's web pages, which I created early 1998. If anybody has comments or suggestions about these pictures, I will be delighted to read them.

More information on the ray-tracing software and principles can be found in the POV site pages. See also my links page.

Pictures will open in a separate window. JavaScript is required for proper display.
House
Situation
(800 x 600, 74 kB)
House
General view
(960 x 540, 124 kB)
House
House
(800 x 600, 100 kB)
House
House at night
(800 x 600, 60 kB)
Detail
North end
(800 x 600, 70 kB)
Detail
The roof
(800 x 600, 81 kB)
Detail
Detail
(800 x 600, 84 kB)
Moored Boeing 314
With my sea plane
(800 x 600, 61 kB)
Bird´s view
Bird's view
(800 x 600, 72 kB)
Inside out
Other bird's view
(800 x 600, 84 kB)
Detail
Inside
(800 x 600, 64 kB)
Detail
Inside, inversed
(800 x 600, 72 kB)
Book shelf
The book shelf
(800 x 600, 70 kB)
Detail
The fireplace corner
(800 x 600, 60 kB)
iMac G4
The glass table
(800 x 600, 48 kB)
Inside out
Inside out
(800 x 600, 64 kB)
Stairs
Stairs
(800 x 600, 40 kB)
Detail
Inside, back
(800 x 600, 52 kB)
Detail
Inside, zoomed
(800 x 600, 68 kB)
Bathroom
The bathroom
(800 x 600, 55 kB)
Stairs
Stairs, above
(800 x 600, 56 kB)
Attic
The attic
(960 x 540, 48 kB)
Bed
Iron bed
(800 x 600, 56 kB)
iMac G4
iMac
(800 x 600, 56 kB)
iMac G4
iMac zoomed
(800 x 600, 48 kB)
Panoramic view of the South room

With POV Ray-Tracing, you can create a panoramic view that you can then convert to a Quick Time movie. If you have the Apple Quick Time plug-in installed on your computer (it is available for Windows as well as for the Macintosh) you can navigate with your mouse and see the complete picture of the room. You can also zoom in and out. The definition is not quite as good as that of the individual pictures, but I find the effect amazing.

In this view, the camera is located between the glas table and the desk. Move your mouse in the picture on the right.

If you see only an empty frame instead of the panoramic picture, you must download and install the (free of charge) Apple Quick Time plugin.


This is the South room with desk, fireplace and sitting area
Panoramic view of the North room

Here you see the kitchen, the flight of stairs going to the attic, and you have a glimpse to the outside through the open glass door. Also, you can see the shower through the open bathroom door. Here, I have put the camera at the end of the kitchen table.

Move your mouse in the picture on the right. You can also zoom in and out using the + and – signs.


This is the North room with the kitchen
Panoramic view of the landscape

Finally, now that I have changed the landcape (August 2007) we can look around the house and have a better view of the islands. See the general position for orientation. Note that the balloon may change place from a picture to the next.

Move your mouse in the picture on the right. You can also zoom in and out using the + and – signs.


Exterior panorama of the house and islands
Other pictures
F. de Dardel's virtual desk
The image above is a picture I created in 1999. You will see that I re-used the pencil holder with coloured Apple logo, as well as a few other elements in the more recent iMac picture at the top of this page. In this "desk" picture, 5 items are imported in form of "Image Maps": these are the Tintin picture on the wall, the photo on the desk, the apple logo on the pencil holder, the "Happy New Year" text on the desk and the "Δαρδελ" signature in Greek on the metal sign. The other items are all constructed geometrically.

Detail of the deskOn my Macintosh G4 with biprocessor at 1 GHz (2002), the desk picture is rendered (calculated by the computer) in 3 minutes 17 seconds in a 1024 x 768 pixel size. On my Mac 8500 (1998), it took one to two hours, and on my previous Mac IIci (1993), rendering the same image could take as long as a full day... The image above is a compressed jpeg of 640 x 480 pixels. Here on the left, I have rendered only a detail at a larger scale, and under a slightly different view angle.

To be totally honest, I have borrowed the blue vase from another ray-tracing author (Dan Farmer), the pencil (which I modified) from Jorge Arreguin and the wooden textures from Dan Farmer again and Paul Novak. These are supplied together with the (free of charge) ray tracing software of POV.

So, I only created the other objects: the column, the table, the paperweight, the golden sign with my name, the pencil holder and the picture frames, and assembled them to this picture. It took me about three days (in 1999)...

The plant and the tree — that I have re-used in my house project — is a creation of Jean-Laurent Pradel (1998), that I have slightly modified. There are (in my version) 21 parameters to play with and change the style of the tree. You see thus two examples with different settings. However, it still looks somewhat artificial. On the other hand, it renders quite fast, because the algorithm used to create it is very compact, which does not mean it is simple. The splendid yellow flying boat was created by Kurt Bangert. It is a very faithful reproduction of the Boeing 314 "Yankee Clipper" operated by Pan American between 1939 and 1951. For interest, here are the specifications of the original big plane.

Other ray-tracing pictures I made include:
Chaise-longue
Deckchair
(800 x 600, 104 kB)
Arbeitstisch
Desk detail
(800 x 600, 64 kB)
Pot
Pot with plant
(800 x 600, 108 kB)
Tomb
Tree
(800 x 600, 112 kB)
Island
Island
(800 x 600, 80 kB)
Boeing 314
The flying boat
(800 x 600, 40 kB)
Balloon
Balloon
(640 x 480, 40 kB)
Pencil
Pencil
(640 x 480, 23 kB)
Dodecaedre
Dodecahedron
(640 x 480, 24 kB)
Reflections
Reflections
(640 x 480, 28 kB)
Dice
Dice
(800 x 600, 27 kB)
Tomb
Tomb
(800 x 600, 68 kB)
Rotating bead
Rotating bead
(320 x 240, 264 kB)
animation
 
The Italian villa

PalazzoI created the Italian villa based on a painting by Francesco Granacci. See my version and the original, viewed under the same angle. Unfortunately, it is impossible to describe human beings geometrically, and vegetation is very difficult to model, as you can see from the tree, and takes a long time to render. On the left here the wide angle view of the villa. I borrowed the statue from an unknown expert.

Palazzo
My version
with POV ray-tracing
Granacci painting
The original
by Granacci
Chemistry
Sieves
Laboratory sieves
(600 x 600, 50 kB)
Acetic acid
Acetic acid
(500 x 500, 14 kB)
Aspirin
Aspirin
(500 x 500, 15 kB)
Here a few molecules. The "building blocks" (atoms) are simple, but their arrangement in space gave me some trouble. Just in case you didn't guess, I am a chemist...
Citric acid
Citric acid
(500 x 500, 24 kB)
Glutamic acid
Glutamic acid
(500 x 500, 24 kB)
Glutamate
Sodium glutamate
(500 x 500, 12 kB)
Filter
Amberpack filter
(600 x 600, 36 kB)

Site map

Site map

The music, if you have clicked on the icon at the top, is J.S. Bach's fugue BVW577 (see my music page). To François´ homepage
Home