rtcontrib problems

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \

rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \

-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

···

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image
for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long time
to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f" option
to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

Dear list,

I'm following Axel's tutorial on rtcontrib:
http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image for
Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \

./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long time
to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f" option
to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \

rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \

-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b tbin
\
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

On Problem 1: You are probably doing it right. Creating the hdr images in
Axel's tutorial on rtcontrib took us a couple of hours.

-John

···

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal -b
tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image
for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long time
to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f" option
to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

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

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

···

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]> wrote:

On Problem 1: You are probably doing it right. Creating the hdr images in
Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal -b
tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image
for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

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

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

Actually, the image generation part may take hours, but combining the patch
images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to work,
it seems to me that rcalc is waiting endlessly for input. But you don't
need to use pcomb to combine the images anymore, dctimestep provides a much
more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' | \
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

···

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]>wrote:

On Problem 1: You are probably doing it right. Creating the hdr images
in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal
-b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image
for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

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

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

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

Coincidentally, I'm working now to improve the speed & efficiency of rtcontrib, especially for multi-processors. If any Unix users are interested in trying it out, I've checked a working version into the HEAD. The program is (temporarily) named rcontrib, to segregate it from its predecessor, but the options and operation should be identical. Once it's fully tested, I plan to replace the existing rtcontrib with this new version, which has been substantially redesigned.

Cheers,
-Greg

···

From: Andrew McNeil <[email protected]>
Date: June 11, 2012 9:07:45 AM PDT

Actually, the image generation part may take hours, but combining the patch images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to work, it seems to me that rcalc is waiting endlessly for input. But you don't need to use pcomb to combine the images anymore, dctimestep provides a much more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' | \
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:
Thanks, John, I think I should press the button and go to sleep un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]> wrote:
On Problem 1: You are probably doing it right. Creating the hdr images in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:
Sorry, just figured out that the source for Problem 2: the "-fo" option should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal -b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:
Dear list,

I'm following Axel's tutorial on rtcontrib:
http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye image for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f" option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use here?

Thanks!
- Ji

Thanks, Andy! The script was still running when I woke up... So, I'll try
out your suggestion later.

Thanks, Greg! look forward to your new "rcontrib" program!

- Cheers, Ji

···

On Tue, Jun 12, 2012 at 2:11 AM, Greg Ward <[email protected]> wrote:

Coincidentally, I'm working now to improve the speed & efficiency of
rtcontrib, especially for multi-processors. If any Unix users are
interested in trying it out, I've checked a working version into the HEAD.
The program is (temporarily) named rcontrib, to segregate it from its
predecessor, but the options and operation should be identical. Once it's
fully tested, I plan to replace the existing rtcontrib with this new
version, which has been substantially redesigned.

Cheers,
-Greg

*From: *Andrew McNeil <[email protected]>

*Date: *June 11, 2012 9:07:45 AM PDT

*
*

Actually, the image generation part may take hours, but combining the
patch images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to work,
it seems to me that rcalc is waiting endlessly for input. But you don't
need to use pcomb to combine the images anymore, dctimestep provides a much
more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' | \
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]>wrote:

On Problem 1: You are probably doing it right. Creating the hdr images
in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal
-b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye
image for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

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

Hi Greg,

thanks a lot for your efforts in improving rtcontrib -- this makes a great
tool even more valuable

I just ran genBSDF for a specular lamella system generating a BSDF with
full Klems representation. To compare rcontrib to rtcontrib I just replaced
the
respective calls in the genBSDF perl script. I compared the resulting BSDFs
just by quick simulations of diffuse-diffuse transmissions and reflections
as well as diffuse transmissions and reflections from a CIE overcast sky, a
diffuse sky and a diffuse ground. Modulo MC noise the result seem to be
perfectly the same.

Using 8 cores the simulation times were appoximately 185min for the
existing version with rtcontrib and 104 min with the new rcontrib tool!!

Cheers,
David

···

2012/6/11 Greg Ward <[email protected]>

Coincidentally, I'm working now to improve the speed & efficiency of
rtcontrib, especially for multi-processors. If any Unix users are
interested in trying it out, I've checked a working version into the HEAD.
The program is (temporarily) named rcontrib, to segregate it from its
predecessor, but the options and operation should be identical. Once it's
fully tested, I plan to replace the existing rtcontrib with this new
version, which has been substantially redesigned.

Cheers,
-Greg

Hi David,

Thanks for testing this out! It's great to get the feedback. I've run my own (similar) tests and things look OK, but I haven't checked the data thoroughly, and I need to check corner cases, other operation modes, recovery, etc.

I just checked in some more changes that improve efficiency when you have a lot of processes. I tried it with 24 processes on my Mac Pro, and it went from 85% utilization to about 99% with these new changes. I don't think I ever got better than 20% utilization with the original code on as many cores.

Cheers,
-Greg

···

From: David Geisler-Moroder <[email protected]>
Date: June 12, 2012 9:10:41 AM PDT

Hi Greg,

thanks a lot for your efforts in improving rtcontrib -- this makes a great tool even more valuable

I just ran genBSDF for a specular lamella system generating a BSDF with full Klems representation. To compare rcontrib to rtcontrib I just replaced the
respective calls in the genBSDF perl script. I compared the resulting BSDFs just by quick simulations of diffuse-diffuse transmissions and reflections
as well as diffuse transmissions and reflections from a CIE overcast sky, a diffuse sky and a diffuse ground. Modulo MC noise the result seem to be
perfectly the same.

Using 8 cores the simulation times were appoximately 185min for the existing version with rtcontrib and 104 min with the new rcontrib tool!!

Cheers,
David

2012/6/11 Greg Ward <[email protected]>
Coincidentally, I'm working now to improve the speed & efficiency of rtcontrib, especially for multi-processors. If any Unix users are interested in trying it out, I've checked a working version into the HEAD. The program is (temporarily) named rcontrib, to segregate it from its predecessor, but the options and operation should be identical. Once it's fully tested, I plan to replace the existing rtcontrib with this new version, which has been substantially redesigned.

Cheers,
-Greg

Hi, Andy and the list,

I tried your suggestion to assign random color to the 145 sky patches when
following Axel's rtcontrib tutorial, but I got the following error message:
Usage: dctimestep Vspec Tbsdf.xml Dmat.dat [tregvec]

the script I used is (Mac OSX bash shell):
cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' \

dctimestep ./images/patches/p%03d.hdr > ./sky_colorcomb_dctimestep.hdr

I assume I missed something critical here...

Pls kindly advise!

Anyway, the other approach you suggested in the following post still works:
http://www.radiance-online.org/pipermail/radiance-general/2010-December/007529.html

- Cheers, Ji

···

On Tue, Jun 12, 2012 at 12:07 AM, Andrew McNeil <[email protected]> wrote:

Actually, the image generation part may take hours, but combining the
patch images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to work,
it seems to me that rcalc is waiting endlessly for input. But you don't
need to use pcomb to combine the images anymore, dctimestep provides a much
more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' | \
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]>wrote:

On Problem 1: You are probably doing it right. Creating the hdr images
in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo" option
should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal
-b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye
image for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal -b
tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should use
here?

Thanks!
- Ji

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

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

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

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

Hi Ji,
You need a more recent version of dctimestep. The current version give the
following usage:
Usage: dctimestep DCspec [tregvec]
   or: dctimestep Vspec Tbsdf.xml Dmat.dat [tregvec]

The ability to use a daylight coefficient matrix was added in July 2010,
you must be using a version of dctimestep that is older than that.
Andy

···

On Thu, Jun 21, 2012 at 10:54 AM, Ji Zhang <[email protected]> wrote:

Hi, Andy and the list,

I tried your suggestion to assign random color to the 145 sky patches when
following Axel's rtcontrib tutorial, but I got the following error message:
Usage: dctimestep Vspec Tbsdf.xml Dmat.dat [tregvec]

the script I used is (Mac OSX bash shell):

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' \
> dctimestep ./images/patches/p%03d.hdr > ./sky_colorcomb_dctimestep.hdr

I assume I missed something critical here...

Pls kindly advise!

Anyway, the other approach you suggested in the following post still works:

http://www.radiance-online.org/pipermail/radiance-general/2010-December/007529.html

- Cheers, Ji

On Tue, Jun 12, 2012 at 12:07 AM, Andrew McNeil <[email protected]> wrote:

Actually, the image generation part may take hours, but combining the
patch images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to work,
it seems to me that rcalc is waiting endlessly for input. But you don't
need to use pcomb to combine the images anymore, dctimestep provides a much
more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' |
\
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]>wrote:

On Problem 1: You are probably doing it right. Creating the hdr images
in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo"
option should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f tregenza.cal
-b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye
image for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal
-b tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should
use here?

Thanks!
- Ji

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

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

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

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

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

Noted with thanks, Andy! I'll try to install the latest version of Radiance
later.

- Cheers, Ji

···

On Fri, Jun 22, 2012 at 2:26 AM, Andrew McNeil <[email protected]> wrote:

Hi Ji,
You need a more recent version of dctimestep. The current version give
the following usage:
Usage: dctimestep DCspec [tregvec]
   or: dctimestep Vspec Tbsdf.xml Dmat.dat [tregvec]

The ability to use a daylight coefficient matrix was added in July 2010,
you must be using a version of dctimestep that is older than that.
Andy

On Thu, Jun 21, 2012 at 10:54 AM, Ji Zhang <[email protected]> wrote:

Hi, Andy and the list,

I tried your suggestion to assign random color to the 145 sky patches
when following Axel's rtcontrib tutorial, but I got the following error
message:
Usage: dctimestep Vspec Tbsdf.xml Dmat.dat [tregvec]

the script I used is (Mac OSX bash shell):

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)' \
> dctimestep ./images/patches/p%03d.hdr > ./sky_colorcomb_dctimestep.hdr

I assume I missed something critical here...

Pls kindly advise!

Anyway, the other approach you suggested in the following post still
works:

http://www.radiance-online.org/pipermail/radiance-general/2010-December/007529.html

- Cheers, Ji

On Tue, Jun 12, 2012 at 12:07 AM, Andrew McNeil <[email protected]> wrote:

Actually, the image generation part may take hours, but combining the
patch images into a single image should take only a few minutes.

Personally, I've never been able to get that pcomb based command to
work, it seems to me that rcalc is waiting endlessly for input. But you
don't need to use pcomb to combine the images anymore, dctimestep provides
a much more efficient option:

cnt 146 | rcalc -e '$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)'
> \
dctimestep ./images/patches/p%03d.hdr > ./images/sky_colorcomb.hdr

Andy

On Mon, Jun 11, 2012 at 8:39 AM, Ji Zhang <[email protected]> wrote:

Thanks, John, I think I should press the button and go to sleep
un-frustrated now ... zzzzzzz

- Ji

On Mon, Jun 11, 2012 at 11:36 PM, John Sullivan <[email protected]>wrote:

On Problem 1: You are probably doing it right. Creating the hdr
images in Axel's tutorial on rtcontrib took us a couple of hours.

-John

On Mon, Jun 11, 2012 at 11:06 AM, Ji Zhang <[email protected]> wrote:

Sorry, just figured out that the source for Problem 2: the "-fo"
option should be added in addition to the "-ffc" and "-f" options

the script should be:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-fo -ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -f
tregenza.cal -b tbin \

-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

- Ji

On Mon, Jun 11, 2012 at 10:54 PM, Ji Zhang <[email protected]> wrote:

Dear list,

I'm following Axel's tutorial on rtcontrib:

http://www.jaloxa.eu/resources/radiance/documentation/docs/rtcontrib_lesson.pdf

Problem 1:
on page 16-17, I use the following script to generate the fisheye
image for Tregenza sky patches in random colors:

pcomb `for i in {000..145}; do \
echo "-c $(rcalc -e \
'$1=rand(recno);$2=rand(recno+.3);$3=rand(recno+.7)') \
./images/patches/p$i.hdr"; done` \
> ./images/sky_colorcomb.hdr

However, the script seems to run forever. Does it really need a long
time to create the image, or Have I miss anything here?

Problem 2:
on page 17, I changed the script as suggested by changing the "-f"
option to "-fo" to overwrite the existing hdr files:

vwrays -ff -x 600 -y 600 -vf ./views/back.vf \
>rtcontrib -ab 3 -ad 4096 -ar 256 -aa .1 -lw 0.0003 -n 2 \
-ffc `vwrays -d -x 600 -y 600 -vf ./views/back.vf` -fo tregenza.cal
-b tbin \
-o ./patches_copy/p%03d.hdr -m sky_glow -w \
./testroom_whitesky.oct

However, I got the following error message:
rtrace: fatal - command line error at 'tregenza.cal'
rtrace: fatal - command line error at 'tregenza.cal'

Can anybody help to advise what the options for rtcontrib I should
use here?

Thanks!
- Ji

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

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

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

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

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

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