su2rad full path name required at Xform?

Hello!

I have been playing with Thomas' su2rad exporter: very nice. I have one hopefully quick and easy fix. When I finish the export and run rad, I get file not found warnings from rpict, it can't locate the .sky file in the skies folder and the rad files in the objects folder. I have been having to go into the .rif file and add the full file path to these files, along with the full file path for these same files in the !xform function in the .rad file. I'm using OS X 10.5. any advice?

thanks

dave bosworth

Hello!

Howdy Dave...

I have been playing with Thomas' su2rad exporter: very nice. I have one
hopefully quick and easy fix. When I finish the export and run rad, I get
file not found warnings from rpict, it can't locate the .sky file in the
skies folder and the rad files in the objects folder. I have been having
to go into the .rif file and add the full file path to these files, along
with the full file path for these same files in the !xform function in the
.rad file. I'm using OS X 10.5. any advice?

Hmmm, two things:

1. Sometimes for whatever reason people's PATH statements do not include
the current directory (.) and so a reference to a file in scene/thing.rad
will fail, but a reference to ./scene/thing.rad would be found. Can you
confirm this?

2. Also, Thomas has a Google Code site for his su2rad project. There may
be some stuff there that is helpful:

http://code.google.com/p/su2rad/

···

On Thu, January 7, 2010 1:21 pm, Dave Bosworth wrote:

Hello!

I have been playing with Thomas' su2rad exporter: very nice.

And still getting nicer ...

I have one hopefully quick and easy fix. When I finish
the export and run rad, I get file not found warnings from
rpict, it can't locate the .sky file in the skies folder and
the rad files in the objects folder.

Are you starting rad in the folder of the *.rif and *.rad file?
The references only work when your current working directory
is this "project" folder.

Rob also wrote about the "." in the RAYPATH environment
variable. I'm not quite sure about that because I did run my
simulations using relative paths without this variable set.
Maybe the default value includes the current directory and
it only breaks if you have it set and not included the ".".

Hope that fixes it.
Thomas

···

On Thu, Jan 7, 2010 at 8:21 PM, Dave Bosworth <[email protected]> wrote:

Yes, I am starting rad from the folder with the *.rif and *.rad file. And as to Rob's suggestion, if the files are prefixed with ./ then everything works fine. I could add . to RAYPATH, I would also be perfectly happy to add ./ to the print statements in my copy of the su2rad plugins, if Thomas might guide me to the appropriate module...

thanks!

dave

···

-----Original Message-----

From: Thomas Bleicher <[email protected]>
Sent: Jan 7, 2010 6:07 PM
To: Dave Bosworth <[email protected]>, Radiance general discussion <[email protected]>
Subject: Re: [Radiance-general] su2rad full path name required at Xform?

On Thu, Jan 7, 2010 at 8:21 PM, Dave Bosworth <[email protected]> wrote:

Hello!

I have been playing with Thomas' su2rad exporter: very nice.

And still getting nicer ...

I have one hopefully quick and easy fix. When I finish
the export and run rad, I get file not found warnings from
rpict, it can't locate the .sky file in the skies folder and
the rad files in the objects folder.

Are you starting rad in the folder of the *.rif and *.rad file?
The references only work when your current working directory
is this "project" folder.

Rob also wrote about the "." in the RAYPATH environment
variable. I'm not quite sure about that because I did run my
simulations using relative paths without this variable set.
Maybe the default value includes the current directory and
it only breaks if you have it set and not included the ".".

Hope that fixes it.
Thomas

OK, never mind: I found all the appropriate write statements in the radiancescenes.rb files and added a ./ suffix to the appropriate statements. Now everything seems to work OK. Don't know why my defaults don't have that path....I haven't done anything to them.

onward and upward!

dave

···

-----Original Message-----

From: Rob Guglielmetti <[email protected]>
Sent: Jan 7, 2010 5:04 PM
To: Dave Bosworth <[email protected]>, Radiance general discussion <[email protected]>
Subject: Re: [Radiance-general] su2rad full path name required at Xform?

On Thu, January 7, 2010 1:21 pm, Dave Bosworth wrote:

Hello!

Howdy Dave...

I have been playing with Thomas' su2rad exporter: very nice. I have one
hopefully quick and easy fix. When I finish the export and run rad, I get
file not found warnings from rpict, it can't locate the .sky file in the
skies folder and the rad files in the objects folder. I have been having
to go into the .rif file and add the full file path to these files, along
with the full file path for these same files in the !xform function in the
.rad file. I'm using OS X 10.5. any advice?

Hmmm, two things:

1. Sometimes for whatever reason people's PATH statements do not include
the current directory (.) and so a reference to a file in scene/thing.rad
will fail, but a reference to ./scene/thing.rad would be found. Can you
confirm this?

2. Also, Thomas has a Google Code site for his su2rad project. There may
be some stuff there that is helpful:

http://code.google.com/p/su2rad/