Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Radiance Exercise from Radiance Tutorial

asked 2017-10-22 08:32:39 -0600

huntan's avatar

updated 2017-10-22 08:33:47 -0600

I'm Currently at page 15 of Radiance Tutorial by Axel Jacbos. There's a part I don't understand:

Specifically, number 5: 'Create a file called furniture.rad from which you call xform to place a table in the scene and a couple of chairs around it. You'll find them in objects/table.rad'

xform hasn't been mentioned in the previous tutorials so I just searched for what the program does, apparently it applies transformations/rotations to an object. I'm not sure how to use xform in general, nor how to use it in this example.

Here's what I tried:

Inside objects/furniture.rad:
!C:\Radiance\bin\xform table >> furniture
!C:\Radiance\bin\xform chair >> furniture

I just called xform without any options because I'm assuming table and chair are already in the proper places? Which is I know, is probably wrong.

Apparently, objline is not available in Windows, so I use Honeybee for GH to view the rad files. And as expected, my rad files don't generate anything. I also tried importing the furniture and chair rad files but the Rhino viewport doesn't show anything.

What's the correct way to do it? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-10-23 14:37:18 -0600

updated 2017-10-23 14:43:31 -0600

There are a couple of ways to use xform; you're sorta trying to use them both at the same time. Try calling xform on the object rad files without the redirect. From the context of Axel's tutorial, I'm guessing (it's been a while since I've read that) you are supposed to be creating a file called "furniture.rad" in the main working directory, and that "objects" is a subdirectory thereof. Create a new text file called "furniture.rad" and put the following lines in it:

!C:\Radiance\bin\xform .\objects\table.rad
!C:\Radiance\bin\xform .\objects\chair.rad

Presumably you will call "furniture.rad' in a similar way, in some other scene file, to "assemble" your model. This is the same approach we use in OpenStudio; we have a subdirectory for glazing, another one for opaque construction, and one for materials. Then in the main directory there is a single file called "model.rad", which merely has calls to xform e.g.:

!xform ./scene/Space_1.rad
!xform ./scene/glazing/WG0.rad

At runtime, we make an octree by adding materials files and the "model.rad" file, along with any design iteration-specific geometry. Make sense?

P.S. The first example's syntax is for Windows users, the second for Unix peeps (and presumes your Radiance executables are in your PATH). The leading dot in the file references is not needed if you have the "current directory dot" in your system PATH.

edit flag offensive delete link more

Comments

Thanks! I'll check this out on a weekend.

huntan's avatar huntan  ( 2017-10-25 10:38:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2017-10-22 08:32:39 -0600

Seen: 417 times

Last updated: Oct 23 '17