Visual Sun Chart - Solar Geometry Software
 Home – Introduction
 Tutorials
 System Requirements
 Purchase

 Solar Access
 Declination

 Upgrade
 Support

 Visual Sun Chart > Support > Pov Ray
 
Using POV Ray with Visual Sun Chart
 
This web page shows how to use POV Ray version 3.5 with Visual Sun Chart.  POV Ray (or simply “POV”) is a free ray tracing program that you can download from:
 
http://www.povray.org/download/
 
In this example, we'll learn how to use Visual Sun Chart and POV 3.5 to find out if a tree will shade a building.
 
Visual Sun Chart
Visual Sun Chart is a graphics
program for visualizing solar
shading from proposed buildings.
For more information see:
www.VisualSunChart.com
 
First, create a new Sun Chart, and set the latitude to 42.5 degrees North.
Then create a new Building with these dimensions:
 
Object Name              Main Wall Width = 10
 House 1                Main Wall Height = 8

Offset from           Main Wall Gable Height = 10 ON
Scene Origin
 X = 0                    Depth of Object = 10
 Y = 0                     Rotation Angle = 0
 Z = 0
                                     Roof:  ON
Door/Window#1                     Eave Overhang = 2
Width = 4     X LeftWall          Rake Overhang = 2
Height = 4                      Vertical Height = 1
Horz.Offset = 2       
Vert.Offset = 2
 
Then select to create a new Tree with these dimensions:
 
Object Name                Height #4     Width #4
 Tree 1                      14            12

Offset from                Height #3     Width #3
Scene Origin                 11            14
 X = 10 West(-)
 Y =  4 South(-)           Height #2     Width #2
 Z =  0                       8            12

Tree Top    Trunk Base     Height #1     Width #1
Height:     Width:            7             2
 15.5        2
 
The Sun Chart should look like this (from the viewing direction shown at right):
 
Scene of house and tree Viewpoint Direction of Skydome Sun Chart
 
Next we'll get ready to export the scene as a POV file. Before exporting the file, select File > Export > POV Export Settings and make sure “Launch POV” is checked:
 
Export Settings window
 
Now we're ready to export the scene. Select File > Export, or simply click on the POV button:
 
Export Button
 
Then you'll be prompted to give the file a name and choose a directory (folder) to put it in. Give it a suitable name and folder, and then the POV Ray 3.5 program should be launched with the POV text file of this scene opened in the POV text editor.
 
If the file was already open in POV, you should be prompted to reload it with this window:
 
File Changed notification window
 
This notification window says we named the file “POV_Tutorial,” and it was already open in POV, in which case we would select “Yes” to have the new version of the file loaded.
 
If the file was not already loaded in POV, you won't see that notification window.
 
Before rendering, tell POV what size the rendering bitmap should be. For this example, we'll select 640 x 480 with anti-aliasing:
 
Size of rendering bitmap
 
After selecting the bitmap size, we're ready to render the scene. Click on the Run button to begin rendering:
 
Run button
 
Allow rendering to take a few seconds, if necessary. After rendering is completed, the rendering will look like this:
 
First Rendering
 
This rendering is for March/Sept. 21, 1:00 pm. It shows the shadow of the tree striking a corner of the eave fascia, and the wall where a window would be. Shade is not striking the roof top.
 
Now we'll look at shading for a different day and time. You change the position of the Sun by changing the light_source vector. You can select a vector for any hour of the 21st day of any month. The default, shown in the example rendering above is March/Sept. 21, 1:00 pm. That line is uncommented in the light_source command:
 
Light source vectors
 
To see shading for a different time and/or day, comment out that vector (by putting two slashes at the beginning of the line), and uncomment the vector for the desired time and day.
 
Let's try viewing the scene for December 21 at 3:00 pm. First comment out the March line. Then uncomment the Dec. 21, 3:00 pm line:
 
Light source vector for Dec. 21
 
Rendering the scene again shows shading for December 21, 3:00 pm:
 
Rendering for Dec. 21
 
Shade is striking the roof top in this rendering.
 
You may try other days and times. Remember to leave only one date/time uncommented.
 
This concludes the POV Ray tutorial. Happy ray tracing!
 
 
 
Copyright © 2008 by Visual Sun Chart. All rights reserved.
Visual Sun Chart is a trademark of: Visual Sun Chart, P.O. Box 221190, Sacramento CA 95822 USA
www.VisualSunChart.com     Contact us
Tuesday, 06-Jan-2009 09:11:16 GMT