This page describes the use of the Ruby script su2rad.rb for the popular and free-of-charge 3D modelling software Sketchup.
The current version is 0.0d: download
This is an update release with plenty of fixes and a few new features:
It is released under LGPL.
NOTE: With version v00d there is a preferences dialog in the Radiance menu. There is no need to edit the configuration file directly. I have updated the section on configuration options on the code.google.com site. Please refer to this site for information about the available options.
The script creates the following menu entries
After the start of the export function you will see a first dialog to set the export options of su2rad.
Here you should check in particular that the export directory and scene name are those you want (they are taken from the Sketchup file and scene name). The text boxes show only a small part of the directory path. You have to click into the field and move the curser to the right to see the rest.
Depending on you installation of replmarks you will see the global coords option or not. There is no point in offering an option when it’s not actually available.
The default values for these option can be set in the config section at the top of the script.
If you have selected to see the Radiance options the following dialog will appear:
These are the standard rad options you should be familiar with. Note that the scene size spec is only 3 values long (xmax, ymax and zmax). The default values are taken from the Sketchup scene size which might be too large for the part you want to export.
su2rad creates a sky description for you Radiance scene. The defaults for the sky type (and location) are taken from the shadow settings of your scene. If you want to use the scene for daylight studies with Radiance it’s worth checking that the exported values are correct.
SketchUp allows you to assign different materials to the front and the back of a polygon or not to use any material at all. Radiance requires one material per polygon which can lead to conflicts.
su2rad.rb performs the following tests to identify the material of a polygon:
Use directly assigned materials only where necessary (for example the glass in a window component) and assign the same material to both sides of the polygon. Do not assign a material to the rest of the elements. Use the group/component colour instead. This should avoid most differences between Radiance scene and Sketchup model. Use the material conflicts menu to count and resolve/remove conflicts before exporting.
Build the Sketchup model as you would create a Radiance scene. You can group elements to handle them as one entity or assign materials but only component instances can be reused in !xform commands and need to be exported only once (if not mirrored).
Do not mirror instances. This is not fully supported yet and a mirrored instance has to be exported in a separate file.