Create Octree File from SU2RAD

Interesting.

It seems that your rad version is out of sync with the oconv version and
produces commands that are not compatible with oconv. Can you check which
binary you are using? The commands are:

where rad
where oconv

Both should point to binaries in the same directory. Perhaps the rad binary
for Windows has not been updated along with the other apps.

To solve your problem you can save the commands that rad would execute into
a batch file and then manually remove the -sj option from the oconv command
lines with a text editor:

rad -n test.rif > rad_commands.bat

The -n option tells rad to list the generated commands but not to execute
them.

BTW: It's quite normal not to have any "render=" options in the rif file
generated by su2rad. They only show up when you use one of the option
overrides (the check boxes in export interface).

Regards,
Thomas

···

On Mon, Jun 23, 2014 at 2:44 AM, Thompson, Ross <[email protected]> wrote:

Hi Thomas,

Thanks for this. The *.rif file that gets exported doesn’t specify any
options for “Render =” this is possibly the real cause of the problem.

See below for the code, there is just a blank on that line.

Ross

# scene options file for rad

QUALITY= medium

DETAIL= medium

VARIABILITY= medium

INDIRECT= 2

PENUMBRAS= true

PICTURE= images/ExampleModel

RESOLUTION= 1916 848

ZONE= exterior 0 42.6 0 42.6 0 42.6

EXPOSURE= -2

REPORT= 0 logfiles/test.log

AMBFILE= ambfiles/test.amb

OCTREE= octrees/test.oct

scene= test.rad

render=

oconv= -w

materials= materials.rad

view= test -vf views/test.vf

objects= skies/Oxford_1108_1330.sky

## scene object files (total=8)

objects= objects/light4extfloor.rad
objects/light4extwall.rad objects/light4intceiling.rad

objects= objects/light4intfloor.rad
objects/light4intwall.rad objects/light4lightshelf.rad

objects= objects/light4windowframe.rad
objects/light4windowglass.rad

Ross Thompson

Senior Sustainability & Energy Engineer

T: 01865 864500

*Oxford:*
South House
3 Farmoor Court
Cumnor Road
Oxford OX2 9LU
*Phone*: 01865 864500
*Fax*: 01865 864584
*Email*: [email protected]

*London:*
Lector Court
151-153 Farringdon Road
London EC1R 3AF
*Phone*: 0207 833 8815
*Fax*: 0203 302 0050
*Email*: [email protected]

*For the latest CBG news visit **www.cbgc.com* <http://www.cbgc.com>
         [image: CBGConsultantsltd Facebook]
<http://facebook.com/cbgconsultantsltd> [image: CBG Consultants Twitter]
<http://twitter.com/CBGConsultants>

CBG Consultants Ltd Registered No. 538 4147/VAT Registration No. 860 3120
63

*Please consider the environment - do you really need to print this email?*

The views expressed in this e-mail are those of the sender and not
necessarily those of CBG Consultants.

The content of this email is private and may be confidential for the
intended recipient only. If misdirected, please notify us by telephone and
confirm that it has been deleted from your system and any copies destroyed.
If you are not the intended recipient you are strictly prohibited from
using, printing, copying, distributing or disseminating this e-mail or any
information contained in it.

We use reasonable endeavours to virus scan all e-mails leaving the company
but no warranty is given that this e-mail and any attachments are virus
free. You should undertake your own virus checking. The right to monitor
e-mail communications through our networks is reserved by us.

*From:* Thomas Bleicher [mailto:[email protected]]
*Sent:* 20 June 2014 18:22
*To:* Thompson, Ross
*Subject:* Re: Create Octree File from SU2RAD

Ross

I think that's where su2rad needs a bit of an update. Rpict has had a
change in the meaning of the command line parameters that is not yet
included in su2rad. To fix this manually you can edit the *.rif file and
remove the option "-sj 0.7" from the line that starts with "render=".
Su2rad writes the render parameters out explicitly and that option now
breaks rpict.

Regards,

Thomas

On Fri, Jun 20, 2014 at 9:43 AM, Thompson, Ross <[email protected]> wrote:

Hi Thomas,

Thanks very much for your help on this.

I now have radiance correctly set up with the commands working – there was
a problem with RAYPATH. I have also removed the unused materials from my
scene.

I can now get the scene to ‘preview’ in RVU or OBJVIEW.

However as you suggest below the best route for a beginner to render a
scene from SketchUp is to use the *.rif file.

However when I run $ rad test.rif

I get the following errors:

C:\Users\rosst.cbg\Desktop\Test>rad test.rif

set ROPT=-dp 512 -ar 13 -ms 1.1 -ds .2 -dj .5 -dt .1 -dc .5 -dr 1 -sj .7
-st .1

-ab 2 -af ambfiles/test.amb -aa .15 -ad 768 -as 196 -av 2 2 2 -lr 6 -lw
.002

        rpict -t 0 -e logfiles/test.log -vf views/test.vf $ROPT -x 64 -y
64 -ps

1 octrees/test.oct > test_overture_8032.unf

rpict: fatal - command line error at '-sj'

rpict: 0 rays, 0.00% after 0.0000 hours

rad: error in overture for view test

This time I can’t see any warnings in the rif file.

The SketchUp file and output are stored here:

https://www.dropbox.com/sh/uyokuvxiu9s1ifb/AAB5TXbez6p8-FAgl3EeR4f2a

Thanks again

Ross

Hi,

I am now looking to use radiance after learning daysim. I have successfully completed the tutorial and am now looking to produce renders from scenes set up in SketchUp.
Here is a link to the SketchUp output file:

My approach is to apply the OCONV function to the ‘test.rad’ file.
However unlike in the tutorial, materials and geometry are housed in separate directories.
And I get the following errors:
oconv test.rad > test.oct
xform: cannot find file "objects/Material133.rad"
oconv: warning - (!xform objects/Material133.rad): empty file

I don’t quite understand why the file can’t be found.
Am I using the correct approach?
Thanks in advance for your help.

Ross

Ross Thompson

Senior Sustainability & Energy Engineer

T: 01865 864500

Oxford:
South House
3 Farmoor Court
Cumnor Road
Oxford OX2 9LU
Phone: 01865 864500
Fax: 01865 864584
Email: [email protected]<mailto:[email protected]>

London:
Lector Court
151-153 Farringdon Road
London EC1R 3AF
Phone: 0207 833 8815
Fax: 0203 302 0050
Email: [email protected]<mailto:[email protected]>

For the latest CBG news visit www.cbgc.com<http://www.cbgc.com> [cid:[email protected]] <http://facebook.com/cbgconsultantsltd> [cid:[email protected]] <http://twitter.com/CBGConsultants>

CBG Consultants Ltd Registered No. 538 4147/VAT Registration No. 860 3120 63

[cid:[email protected]]

Please consider the environment - do you really need to print this email?

The views expressed in this e-mail are those of the sender and not necessarily those of CBG Consultants.

The content of this email is private and may be confidential for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it.

We use reasonable endeavours to virus scan all e-mails leaving the company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our networks is reserved by us.

Hi Ross,

You need to include the materials file in the oconv command, and have it before the geometry. Try:

oconv materials.rad test.rad > test.oct

or, to view the scene 'on the fly':

objview materials.rad test.rad

Cheers
John

John Mardaljevic PhD FSLL
Professor of Building Daylight Modelling
School of Civil & Building Engineering
Loughborough University
Loughborough
Leicestershire
LE11 3TU, UK

Tel: +44 1509 222630 (Direct)
Tel: +44 1509 228529 (Pam Allen, secretary)

[email protected]

http://www.lboro.ac.uk/departments/civil-building/staff/mardaljevicjohn

Personal daylighting website:
http://climate-based-daylighting.com

Ross

For a beginner it's usually easier to use the rad command with the *.rif
file to get scenes rendered.

$ rad test.rif

That will start rendering all scenes and create the images - in your case
only one.

However, looking at the *.rif file I see that there is a warning at the end:

## total number of objects too large

Unfortunately I don't remember why I put this message there. There may be a
built-in limit for oconv or another process in Radiance. What happens if
you combine all the output files to a single file with the xform command?

xform test.rad > test_combined.rad

If this works you can run oconv with the test_combined.rad file:

oconv test_combined.rad > test.oct

BTW: Is there a specific reason to have so many materials in your scene?
Most of your scene files contain only a few polygons. You can also try to
export the scene by group or by layer in su2rad. That (probably) reduces
the file count and can solve your problem.

Regards,
Thomas

···

On Tue, Jun 17, 2014 at 2:44 AM, Thompson, Ross <[email protected]> wrote:

Hi,

I am now looking to use radiance after learning daysim. I have
successfully completed the tutorial and am now looking to produce renders
from scenes set up in SketchUp.

Here is a link to the SketchUp output file:

https://www.dropbox.com/sh/uyokuvxiu9s1ifb/AAB5TXbez6p8-FAgl3EeR4f2a

My approach is to apply the OCONV function to the ‘test.rad’ file.

However unlike in the tutorial, materials and geometry are housed in
separate directories.

And I get the following errors:

oconv test.rad > test.oct

xform: cannot find file "objects/Material133.rad"

oconv: warning - (!xform objects/Material133.rad): empty file

I don’t quite understand why the file can’t be found.

Am I using the correct approach?

Thanks in advance for your help.

Ross

Ross Thompson

Senior Sustainability & Energy Engineer

T: 01865 864500

*Oxford:*
South House
3 Farmoor Court
Cumnor Road
Oxford OX2 9LU
*Phone*: 01865 864500
*Fax*: 01865 864584
*Email*: [email protected]

*London:*
Lector Court
151-153 Farringdon Road
London EC1R 3AF
*Phone*: 0207 833 8815
*Fax*: 0203 302 0050
*Email*: [email protected]

*For the latest CBG news visit **www.cbgc.com* <http://www.cbgc.com>
         [image: CBGConsultantsltd Facebook]
<http://facebook.com/cbgconsultantsltd> [image: CBG Consultants Twitter]
<http://twitter.com/CBGConsultants>

CBG Consultants Ltd Registered No. 538 4147/VAT Registration No. 860 3120
63

*Please consider the environment - do you really need to print this email?*

The views expressed in this e-mail are those of the sender and not
necessarily those of CBG Consultants.

The content of this email is private and may be confidential for the
intended recipient only. If misdirected, please notify us by telephone and
confirm that it has been deleted from your system and any copies destroyed.
If you are not the intended recipient you are strictly prohibited from
using, printing, copying, distributing or disseminating this e-mail or any
information contained in it.

We use reasonable endeavours to virus scan all e-mails leaving the company
but no warranty is given that this e-mail and any attachments are virus
free. You should undertake your own virus checking. The right to monitor
e-mail communications through our networks is reserved by us.

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