Genambpos does not work well

Hello

I tried to visualize the sampling points with genambpos, but I get the following error message.

"Missing -aa setting in header "

The parameter settings are as follows

rtrace -I -h -dp 2048 -ar 2 -ms 0.063 -ds .2 -dt .05 -dc .75 -dr 3 -dj 1 -st .01 -ab 2 -aa 0.5 -ad 1 -as 0 -lr 12 -lw .0005 -af test.amb test.oct < test.pts > test.dat

How can I use genambpos?

Please answer.

Are you running genambpos on the ambient file “test.amb”? Are you on a Unix machine, or is it Windows? What is the output of “getinfo test.amb”?

I didn’t explain it well enough. I’m sorry.

Are you running genambpos on the ambient file “test.amb”?

Yes.

Are you on a Unix machine, or is it Windows?

I use Windows.

What is the output of “getinfo test.amb”?

It is “ambinfo.txt”.

The contents of the .bat file are all written below.

@ECHO OFF
@REM ===========================================
@REM By: Autodesk Ecotect Analysis 2011
@REM ===========================================
@ECHO ECO2RAD: SETTING UP ENVIRONMENT VARIABLES...
@REM ===========================================

SET RAYPATH=.;C:\Radiance\LIB
PATH=C:\Radiance\BIN;C:\Program Files (x86)\Autodesk\Ecotect Analysis 2011;$PATH
SET DOS4G=QUIET

@REM ===========================================
@ECHO ECO2RAD: DELETING AMBIENT AND OCTREE FILES...
@REM ===========================================

IF EXIST test.oct DEL test.oct
IF EXIST test.amb DEL test.amb
IF EXIST test*.pic DEL test*.pic
IF EXIST test.ok DEL test.ok

@REM ===========================================
@ECHO ECO2RAD: RUNNING RADIANCE TO GENERATE VIEWS...
@REM ===========================================
@rem RAD test.rif

oconv test.rad test_sky.rad > test.oct

@REM ===========================================
@ECHO ECO2RAD: CALCULATING GRID POINTS...
@ECHO WARNING: THIS COULD TAKE QUITE A WHILE...
@REM ===========================================

rtrace -I -h -dp 2048 -ar 2 -ms 0.063 -ds .2 -dt .05 -dc .75 -dr 3 -dj 1 -st .01 -ab 2 -aa 0.5 -ad 1 -as 0 -lr 12 -lw .0005 -af test.amb test.oct < test.pts > test.dat
@RENAME test.dat test.ok

getinfo -d test.oct > oct.txt
getinfo test.amb > ambinfo.txt
lookamb test.amb > ambtext.txt
genambpos test.amb > amblocation.rad

@ECHO ECO2RAD: GRID POINTS COMPLETE.
@REM ===========================================
@ECHO ECO2RAD: LAUNCHING IMAGE VIEWER...
@REM ===========================================
@rem RadianceIV .\test*.pic
@ECHO ECO2RAD: DONE!

Pause

Thank you in advance.

I think the problem is that genambpos.pl only runs under Unix. Most of the Radiance Perl scripts will run under Unix or Windows, but not this one. It was never adapted properly for Windows.

Greg,

Thanks for letting me know.
I just tried it on Linux and was able to use it successfully.
That was a very rudimentary question…

Thank you very much.

Not rudimentary at all. How were you supposed to know it doesn’t work under Windows? We need to add an error message!

Cheers,
-Greg

1 Like