Radiance-general Digest, Vol 45, Issue 1

Hi all

At first I`d like to say thank you very much, Thomas for your job!!!!

Google Sketchup (free) doesnt offer location settings (LAT/LONG), so SKY
settings are difficult!!!!
You must have SKETCHUP Pro version to do it.

Thomas, there is a way to overcome this limitation?

Regards,

Vangelis

···

2007/11/1, [email protected] < [email protected]>:

Send Radiance-general mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.radiance-online.org/mailman/listinfo/radiance-general
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Radiance-general digest..."

Today's Topics:

   1. Re: Sketchup to Radiance for win users? (Thomas Bleicher)
   2. RE: Sketchup exporter script (Terrance McMinn)
   3. Aw: [Radiance-general] RE: Sketchup exporter script
      ([email protected])
   4. Aw: [Radiance-general] RE: Sketchup exporter script
      (Mardaljevic John)
   5. Re: Aw: [Radiance-general] RE: Sketchup exporter script
      (Rob Guglielmetti)
   6. Aw: [Radiance-general] RE: Sketchup exporter script
      (Mardaljevic John)
   7. Re: RE: Sketchup exporter script (Thomas Bleicher)

----------------------------------------------------------------------

Message: 1
Date: Wed, 31 Oct 2007 19:50:37 +0000
From: Thomas Bleicher <[email protected]>
Subject: Re: [Radiance-general] Sketchup to Radiance for win users?
To: Radiance general discussion <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed

On 31 Oct 2007, at 14:24, Valère Paupelin-Huchard wrote:

> Hello everybody,
> I am trying to find a workflow tutorial of radiance after a
> sketchup export on windows...
> Do you have any idea?
> Someone could give me the main steps?

If this is about Radiance in general buy the book

     'Rendering with Radiance' by Ward/Shakespeare

or see here:

     http://luminance.londonmet.ac.uk/learnix/docs/radtutorial_basic.pdf

If this is about my script to export from Sketchup, here's the idea:

The script creates a common file structure of Radiance scene files
where you have at the top level

   - a materials.rad file with all material definitions
   - a <scenename>.rad file with references to the geometry files
   - a <scenename>.rif file as input for 'rad'
   - the 'objects/' directory with the actual geometry
   - the 'skies/' directory with the sky definition
   - the 'views/' directory with one file per exported perspective
   - a bunch of other directories

Because the script is incomplete the first thing you have to do
is to replace all the material definitions in the 'materials.rad'
file with actual physical materials. You can find a number of
materials in the Radiance distribution or on the internet. It's
worth to reduce the number of materials in the model before exporting.

The next thing you may want to do is to add some keywords to the
<scenename>.rif file. There are some standard options which I forgot
to add. You can use the free Radiance Control Panel to view and
change the settings in a GUI:

     http://squ1.com/download?radiancecp

If you want to do actual daylight analysis check also the parameters
of the sky description. In particular the meridian and skytype are
more or less guesswork.

If you have checked all the above, go to the directory of the '.rif'
and '.rad' file. All references in the '.rad' file assume that your
working directory is this directory when you start Radiance apps.

To start an interactive preview with rvu (not available on Windows)
type

     rad -o x11 <scenename>.rif

To render one perspective (as listed in the '.rif' file) type

     rad -v <viewname> <scenename>.rif

To render all pictures type

     rad <scenename>.rif

All these commands will work on Linux/OS X. I have not used Radiance
on Windows yet (as cygwin or mingw) but I think the commands should
behave similarly to the Unix versions.

Once you have rendered the images you can download the Radiance image
viewer from Square1 to view and analyse your images:

     http://squ1.com/download?radianceiv

The viewer that comes as part of Radzilla should also work on Windows.
Everyone else uses ximage.

One feature I have not mentioned yet is the feature to export points
on a working plane for calculation with rtrace. You have to create
a layer called 'numeric' in your SketchUp scene. All the polygons on
this layer will be exported as a grid of points with 0.25m distance.
The files will be exported to the 'numeric/' folder with a filename
based on the group or scene name.

Example:

You have created a room with windows etc. Copy the 'floor' of the room,
move it 0.75m up (Z-axis) and create an offset of 0.4m from the edge.
You have now a plane floating in space. Move this plane to the layer
'numeric' and create a group out of the plane only or the plane and
the room geometry (recommended because you can move or copy the whole
ensemble at once). Give the group a name (say 'room1' and when you
export the scene make sure the 'numeric/' level is visible.

This will create the file 'numeric/room1.fld' with one line for each
point in the form 'x y z 0 0 1'. This format can easily be piped to
rtrace for calculation:

     rtrace -ab 3 -ov <scenename>.oct < numeric/room1.fld > numeric/
room1.irr

(provided that there is already a <scenename>.oct). Don't forget to
check/edit the material for your window. It's very likely that your
glass material is not at all transparent.

If you modify this a bit and use '-oodv' as the output format you can
use the 'Plugins/Radiance/numeric input' menu entry to create a 3D
surface
from the calculated values.
... perhaps. This is highly experimental. Use at your own risk.

Have fun and report errors,
Thomas

--
When I'm old I want to be a wiki page at
http://www.bozzograo.net/radiancewiki/doku.php.
                        -- anonymous email

------------------------------

Message: 2
Date: Thu, 1 Nov 2007 14:10:35 +0900
From: "Terrance McMinn" <[email protected]>
Subject: [Radiance-general] RE: Sketchup exporter script
To: <[email protected]>
Message-ID:
        <
092BF7A1BC389E489A69DC764F23CD870D5C7969@exmsp2.perth.ad.curtin.edu.au>

Content-Type: text/plain; charset="us-ascii"

Hello All,

Thomas you have made an excellent contribution to the radiance community
with your SketchUP exporter. I assume this script would also work with
the free Google Version of SketchUP as well. That software was of
limited use to radiance modelling as it did not have the 3DS converter
available in the PRO version.

A point here, for the Google SketchUP (free version) users would be for
the user to manually modify the 'sky' file for location and orientation
as that option works differently from the PRO version of SketchUP.

To this effect a couple of extra comments in the 'sky' file for the
novices would be useful.

With regards to accuracy of modelling using SketchUP, simply use the
mouse to indicate direction and then enter the distance with the
keyboard. This allows wonderful unit conversions on the fly during data
entry. For example say your units are in metres and you want an offset
of 50mm, type 50mm or 2" and SketchUP will do the rest! It even
understands entries such as 2",100mm for a rectangle.

Regards

Terry Mc Minn
Faculty of Built Environment, Art and Design
Curtin University of Technology
GPO Box U 1987 Perth 6845 Western Australia
Email: [email protected]
CRICOS Provider Code: 00301J

------------------------------

Message: 3
Date: Thu, 1 Nov 2007 14:48:10 +0100 (CET)
From: [email protected]
Subject: Aw: [Radiance-general] RE: Sketchup exporter script
To: [email protected]
Message-ID: <18354529.1193924890340.JavaMail.ngmail@webmail10>
Content-Type: text/plain; charset=ISO-8859-1

Terrance McMinn wrote
> Hello All,
>
> Thomas you have made an excellent contribution to the radiance community
> with your SketchUP exporter. I assume this script would also work with
> the free Google Version of SketchUP as well. That software was of
> limited use to radiance modelling as it did not have the 3DS converter
> available in the PRO version.

Yes, of course. There would be no motivation for me to write a script
that doesn't work on the free version. But from the Ruby point of view
both versions are identical.

> A point here, for the Google SketchUP (free version) users would be for
> the user to manually modify the 'sky' file for location and orientation
> as that option works differently from the PRO version of SketchUP.

I am not aware of different settings between the two versions. The script
uses information stored in the 'location' and 'shadow' settings. You can
modify the sky appearance in SketchUp but I do not use this information
and don't even know if it's accessible via scripting.

> To this effect a couple of extra comments in the 'sky' file for the
> novices would be useful.

I can certainly add a few comments ...

About the interface 'design':

Sketchup has a very limited but simple dialog toolbox which is what I'm
using
right now. It looks odd but it does the trick. More soffisticated dialogs
are
possible with DHTML (JavaScript - the 'tip of the day' is an example for
that)
but I won't start working on that before I have a good idea about which
options
to present. And I have to be sure someone out there needs it because it
would
be useless for me.

Regards,
Thomas

Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur 29,95 € inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

------------------------------

Message: 4
Date: Thu, 1 Nov 2007 14:57:01 +0000
From: Mardaljevic John <[email protected]>
Subject: Aw: [Radiance-general] RE: Sketchup exporter script
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi Thomas,

Thanks for making the SU exporter plugin available -- I just tried
it out on a fairly complex model. The default mode seems to be to
export surfaces by material colour rather than layer name (unless
I've missed something). Is there (or will there be) an option to
export surfaces by layer name rather than material colour?

Cheerio,

-John

-----------------------------------------------
Dr. John Mardaljevic
Senior Research Fellow
Institute of Energy and Sustainable Development
De Montfort University
The Gateway
Leicester
LE1 9BH, UK
+44 (0) 116 257 7972
+44 (0) 116 257 7981 (fax)

[email protected]
http://www.iesd.dmu.ac.uk/~jm

------------------------------

Message: 5
Date: Thu, 01 Nov 2007 09:09:42 -0600
From: Rob Guglielmetti <[email protected]>
Subject: Re: Aw: [Radiance-general] RE: Sketchup exporter script
To: Radiance general discussion <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

[email protected] wrote:
> Terrance McMinn wrote
>
>> Hello All,
>>
>> Thomas you have made an excellent contribution to the radiance
community
>> with your SketchUP exporter. I assume this script would also work with
>> the free Google Version of SketchUP as well. That software was of
>> limited use to radiance modelling as it did not have the 3DS converter
>> available in the PRO version.
>>
>
> Yes, of course. There would be no motivation for me to write a script
> that doesn't work on the free version. But from the Ruby point of view
> both versions are identical.
>

Yeah, I kinda wish we knew about this script about ten days ago, because
we bought the pro version mainly for the export capabilities! Oh well...

And John M, how complex was your model? We just successfully used
Thomas' script to export an 80MB SketchUp model to Radiance! Worked
very well. I agree with John, a choice of "by color" OR "by layer"
would be very helpful.

------------------------------

Message: 6
Date: Thu, 1 Nov 2007 16:18:22 +0000
From: Mardaljevic John <[email protected]>
Subject: Aw: [Radiance-general] RE: Sketchup exporter script
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

Hi Rob,

> And John M, how complex was your model? We just successfully used
> Thomas' script to export an 80MB SketchUp model to Radiance!

My SU model was only a 1/3 the size of yours: about 26Mb (Edges
124168, Faces 60278). The Radiance export took about 13 mins on a
2.16GHz C2D MB (2Gb RAM). The exported rad file was of size 13Mb and
contained 60278 polygons. For comparison, exporting the same model
to Radiance via 3DS (& MGF) was much quicker but gave a rad file of
size 38Mb with 188043 polygons (because of the conversion to
triangles, of course).

The smaller rad file did produce a number of "non-planar vertex"
warnings (as one might expect). I haven't tried out the model much
since I would need to first change all the material colours in SU to
match the scheme used for the layers.

Hats off to TB for this very handy utility!

-John

-----------------------------------------------
Dr. John Mardaljevic
Senior Research Fellow
Institute of Energy and Sustainable Development
De Montfort University
The Gateway
Leicester
LE1 9BH, UK
+44 (0) 116 257 7972
+44 (0) 116 257 7981 (fax)

[email protected]
http://www.iesd.dmu.ac.uk/~jm

------------------------------

Message: 7
Date: Thu, 1 Nov 2007 18:49:28 +0000
From: Thomas Bleicher <[email protected]>
Subject: Re: [Radiance-general] RE: Sketchup exporter script
To: Radiance general discussion <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 1 Nov 2007, at 14:57, Mardaljevic John wrote:

> Hi Thomas,
>
> Thanks for making the SU exporter plugin available -- I just
> tried it out on a fairly complex model. The default mode seems
> to be to export surfaces by material colour rather than layer
> name (unless I've missed something).

It's neither. The one and only mode exports to files based on the
group or component instance name which is generated if it's not set.

This allows you to use the Sketchup hierarchy to model efficient
Radiance scenes with '!xform'. At the moment only components can
be reused but Sketchup keeps track of identical groups as well;
I just can't get this information from the API.

> Is there (or will there be) an option to export surfaces by
> layer name rather than material colour?

Since you already got another one voting for it I'll look into it
at the weekend. Should be easy to do.

Thomas

------------------------------

_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general

End of Radiance-general Digest, Vol 45, Issue 1
***********************************************