rcontrib for rendering - missing required modifier argument

Hello Greg,
This is the command line:

C:\Radiance\test\20150505>vwrays -ff -vf -vtv -vh 94 -vv 70 -vp 1.5 5 1.75
-vd 0
-1 0 -x 600 -y 600 | rcontrib "vwrays -vtv -vh 94 -vv 70 -vp 1.5 5 1.75
-vd 0 -
1 0 -x 600 -y 600 -d" -ffc -fo -o vmx/window_%03d.hdr -f klems_ang.cal -b
kbinS
-bn Nkbins -m windowglow -ab 2 12 -ad 50000 -lw 2e-5 model_vmx.oct
-vtv: no view in file
rcontrib: fatal - missing required modifier argument

I attach you the window.rad file (material + geometry)
Urtza.

Greg Ward <[email protected]> escribió:

Can you show us the command line that reports an error, exactly as you
are giving it? (Cut and paste if you can.)
  
  -Greg

FROM: [email protected]

   SUBJECT: [Radiance-general] rcontrib for rendering - missing
required modifier argument

   DATE: May 6, 2015 2:38:37 AM PDT

   

  Hello,

I have problems with rcontrib program with Windows 8 SO. I am trying to do
Example 1 of A McNeil The Three-Phase Method. I would like to render with
vwrays with a windowglow in a test room. However, missing required modifier
argument message script. Does anyone know what is the problem with the
modifier?

Thank you in advance,
Kind regards,
Urtza.

window.rad (204 Bytes)

Hi Greg,
Thank you very much!
I will try to follow your indications.
Best wishes,
Urtza.

Greg Ward <[email protected]> escribió:

···

Hi Urtza,

The problem is the use of double-quotes for "vwrays -vtv -vh 94 -vv 70 -vp 1.5 5 1.75 -vd 0 -1 0 -x 600 -y 600 -d", which used singe back-quotes under Unix. This replaces the command with its output on the command line, something Windows does not do. Substituting with double-quotes is the wrong thing to do. Instead, execute this command yourself, then cut and paste the output into the rcontrib command line in its place.

The output is "-x 600 -y 392 -ld-", so you would use:

  vwrays -ff -vf -vtv -vh 94 -vv 70 -vp 1.5 5 1.75 -vd 0-1 0 -x 600 -y 600 | rcontrib -x 600 -y 392 -ld- -ffc -fo -o vmx/window_%03d.hdr -f klems_ang.cal -b kbinS -bn Nkbins -m windowglow -ab 2 12 -ad 50000 -lw 2e-5 model_vmx.oct

As the actual command in Windows.

Cheers,
-Greg

From: [email protected]
Subject: Re: [Radiance-general] rcontrib for rendering - missing required modifier argument
Date: May 7, 2015 12:19:37 AM PDT
Hello Greg,
This is the command line:

C:\Radiance\test\20150505>vwrays -ff -vf -vtv -vh 94 -vv 70 -vp 1.5 5 1.75 -vd 0
-1 0 -x 600 -y 600 | rcontrib "vwrays -vtv -vh 94 -vv 70 -vp 1.5 5 1.75 -vd 0 -
1 0 -x 600 -y 600 -d" -ffc -fo -o vmx/window_%03d.hdr -f klems_ang.cal -b kbinS
-bn Nkbins -m windowglow -ab 2 12 -ad 50000 -lw 2e-5 model_vmx.oct
-vtv: no view in file
rcontrib: fatal - missing required modifier argument

I attach you the window.rad file (material + geometry)
Urtza.

Greg Ward <[email protected]> escribió:

Can you show us the command line that reports an error, exactly as you are giving it? (Cut and paste if you can.)

-Greg

From: [email protected]
Subject: [Radiance-general] rcontrib for rendering - missing required modifier argument
Date: May 6, 2015 2:38:37 AM PDT

Hello,

I have problems with rcontrib program with Windows 8 SO. I am trying to do Example 1 of A McNeil The Three-Phase Method. I would like to render with vwrays with a windowglow in a test room. However, missing required modifier argument message script. Does anyone know what is the problem with the modifier?

Thank you in advance,
Kind regards,
Urtza.

Hi Greg,

I tried following your indications and it worked, although, I had to remove
Nkbins because it is undefined variable. I do not way but it could be not
having such as the Tregenza skydiscretization...
I removed and thus, the default number is 0:

  C:\Radiance\test>vwrays -ff -vtv -vh 94 -vv 70 -vp 1.5 5 1.75 -vd 0 -1 0
-x 600
  -y 600 | rcontrib -x 600 -y 392 -ld- -ffc -fo -o vmx/window_%03d.hdr -f
klems_an
  g.cal -b kbinS -bn Nkbins -m windowglow -ab 12 -ad 50000 -lw 2e-5
model_vmx.oct
  rcontrib: Nkbins`RC: undefined variable

   C:\Radiance\test\20150505>vwrays -ff -vtv -vh 94 -vv 70 -vp 1.5 5 1.75
-vd 0 -1
   0 -x 600 -y 600 | rcontrib -x 600 -y 392 -ld -ffc -fo -o
vmx/window_%03d.hdr -m
   windowglow -ab 12 -ad 50000 -lw 2e-5 model_vmx.oct

However, generated window_000.hdr file does not have light. It is a black
image, even though, the render generated by rvu of the room it is ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

----- Mensaje reenviado de [email protected] -----

···

Fecha: Thu, 07 May 2015 19:35:42 +0200
De: [email protected]
Asunto: Re: [Radiance-general] rcontrib for rendering - missing required
modifier argument
Para: Radiance general discussion <[email protected]>

Hi Greg,
Thank you very much!
I will try to follow your indications.
Best wishes,
Urtza.

Greg Ward <[email protected]> escribió:

Hi Urtza,

The problem is the use of double-quotes for "vwrays -vtv -vh 94 -vv 70

-vp 1.5 5 1.75 -vd 0 -1 0 -x 600 -y 600 -d", which used singe back-quotes
under Unix. This replaces the command with its output on the command
line, something Windows does not do. Substituting with double-quotes is
the wrong thing to do. Instead, execute this command yourself, then cut
and paste the output into the rcontrib command line in its place.

The output is "-x 600 -y 392 -ld-", so you would use:

    vwrays \-ff \-vf \-vtv \-vh 94 \-vv 70 \-vp 1\.5 5 1\.75 \-vd 0\-1 0 \-x

600 -y 600 | rcontrib -x 600 -y 392 -ld- -ffc -fo -o vmx/window_%03d.hdr -f
klems_ang.cal -b kbinS -bn Nkbins -m windowglow -ab 2 12 -ad 50000 -lw 2e-5
model_vmx.oct

As the actual command in Windows.

Cheers,
-Greg

From: [email protected]
Subject: Re: [Radiance-general] rcontrib for rendering - missing required

modifier argument

Date: May 7, 2015 12:19:37 AM PDT
Hello Greg,
This is the command line:

C:\Radiance\test\20150505>vwrays -ff -vf -vtv -vh 94 -vv 70 -vp 1.5 5

1.75 -vd 0

-1 0 -x 600 -y 600 | rcontrib "vwrays -vtv -vh 94 -vv 70 -vp 1.5 5 1.75

-vd 0 -

1 0 -x 600 -y 600 -d" -ffc -fo -o vmx/window_%03d.hdr -f klems_ang.cal -b

kbinS

-bn Nkbins -m windowglow -ab 2 12 -ad 50000 -lw 2e-5 model_vmx.oct
-vtv: no view in file
rcontrib: fatal - missing required modifier argument

I attach you the window.rad file (material + geometry)
Urtza.

Greg Ward <[email protected]> escribió:

Can you show us the command line that reports an error, exactly as you

are giving it? (Cut and paste if you can.)

-Greg

From: [email protected]
Subject: [Radiance-general] rcontrib for rendering - missing required

modifier argument

Date: May 6, 2015 2:38:37 AM PDT

Hello,

I have problems with rcontrib program with Windows 8 SO. I am trying to

do Example 1 of A McNeil The Three-Phase Method. I would like to render
with vwrays with a windowglow in a test room. However, missing required
modifier argument message script. Does anyone know what is the problem with
the modifier?

Thank you in advance,
Kind regards,
Urtza.

----- Terminar mensaje reenviado -----

What do you use to view the HDR image? Try typing:
ximage -e auto window_000.hdr

This will automatically adjust the exposure of your image upon initially opening the file. It could be that your image does have non-zero values but the exposure is skewed in your viewpoint making it look black with the default exposure value.

Or type
ximage window_000.hdr
then hit the ‘a’ key while ximage is active to view it with automatic exposure
while ximage is active you can also hit the ‘=’ key and click a point in the image to adjust the exposure according to various points in the image

However, generated window_000.hdr file does not have light. It is a black image, even though, the render generated by rvu of the room it is ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

···

From: [email protected] [mailto:[email protected]]
Sent: Wednesday, May 13, 2015 5:01 AM

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

Hello Christopher,

Thank you for your response.
I think that in the radiance-4.2.2-win32.exe there is not the ximage
program. I usually use RadianceIV.exe program from Ecotect.

C:\Radiance\test\20150505\vmx>ximage window_000.hdr
"ximage" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

  However, I find klems_full.cal file that it has all information about
kbinS and Nkbins.
Now I have 145 .hdr files. They have light source, but the room walls are
black (is it usual?)

In reference to /pcompos,/ window1_*.hdr is invalid argument. Do you know
why?
  C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1
"window1_*.hdr" > al
  lwindow1.hdr
  window1_*.hdr: Invalid argument

Thank you in advance,
Kind regards,
Urtza.

Christopher Rush <[email protected]> escribió:

What do you use to view the HDR image? Try typing:

   

   ximage -e auto window_000.hdr

   

   

   

   

   This will automatically adjust the exposure of your image upon
initially opening the file. It could be that your image does have
non-zero values but the exposure is skewed in your viewpoint making it
look black with the default exposure value.

   

   

   

   

   Or type

   

   ximage window_000.hdr

   

   then hit the ‘a’ key while ximage is active to view it with

automatic

exposure

   

   while ximage is active you can also hit the ‘=’ key and click a

point

···

in the image to adjust the exposure according to various points in the
image

   

   

   

   

     FROM: [email protected] [mailto:[email protected]]
SENT: Wednesday, May 13, 2015 5:01 AM

     

However, generated window_000.hdr file does not have light. It is a
black image, even though, the render generated by rvu of the room it is
ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

    

   

   

   

  ____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses

Hi Greg,

Thanks!
Now, I will try to solve the problem with /pcompos /(window1_*.hdr,
invalid argument)
  C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1 window1_*.hdr

al

  lwindow1.hdr
  window1_*.hdr: Invalid argument

Best wishes!
Urtza.

Greg Ward <[email protected]> escribió:

Hi Urtza,
  
  You should not be using the file "klems_ang.cal" but something like
"klems_full.cal" or klems_int.cal. This is why Nkbins was undefined,
and probably at least one reason your simulation is not working.
  
  Best,
  -Greg

FROM: [email protected]

   SUBJECT: Re: [Radiance-general] Fwd: rcontrib for rendering -
missing required modifier argument

   DATE: May 13, 2015 8:14:16 AM PDT

  Hello Christopher,

Thank you for your response.
I think that in the radiance-4.2.2-win32.exe there is not the ximage
program. I usually use RadianceIV.exe program from Ecotect.

C:\Radiance\test\20150505\vmx>ximage window_000.hdr
"ximage" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

  However, I find klems_full.cal file that it has all information about
kbinS and Nkbins.
Now I have 145 .hdr files. They have light source, but the room walls are
black (is it usual?)

In reference to /pcompos,/ window1_*.hdr is invalid argument. Do you know
why?
  C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1
"window1_*.hdr" > al
  lwindow1.hdr
  window1_*.hdr: Invalid argument

Thank you in advance,
Kind regards,
Urtza.

Christopher Rush <[email protected]> escribió:

What do you use to view the HDR image? Try typing:

   ximage -e auto window_000.hdr

   This will automatically adjust the exposure of your image upon
initially opening the file. It could be that your image does have
non-zero values but the exposure is skewed in your viewpoint making it
look black with the default exposure value.

   Or type

   ximage window_000.hdr

   then hit the ‘a’ key while ximage is active to view it with

automatic

exposure

   while ximage is active you can also hit the ‘=’ key and click a

point

···

in the image to adjust the exposure according to various points in the
image

   

     FROM: [email protected] [mailto:[email protected]]
SENT: Wednesday, May 13, 2015 5:01 AM

However, generated window_000.hdr file does not have light. It is a
black image, even though, the render generated by rvu of the room it is
ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

    

Welp, it appears that the '*' wildcard expansion does not work with Windows in the standard shell, even though the wildcard does work with other internal commands, such as 'type' (Windows-speak for 'cat'). As they say: WTF?

- Rob

P.S. The wildcard does expand correctly with pcompos in a Cygwin shell, so there's that.

P.P.S. You can install a lightweight Cygwin shell by simply installing Git for Windows (https://msysgit.github.io/). You get a proper BASH shell in Windows with minimal effort. Highly recommended.

···

On 5/15/15, 9:23 AM, "Greg Ward" <[email protected]<mailto:[email protected]>> wrote:

I'm probably not the one to answer this, as I don't use Windows and haven't seen this error, but did you check to make sure there are files that match "window1_*.hdr" in the directory where pcompos is executed?

-Greg

From: [email protected]<mailto:[email protected]>

Subject: Re: [Radiance-general] rcontrib for rendering - missing required modifier argument

Date: May 14, 2015 2:51:37 AM PDT

Hi Greg,

Thanks!
Now, I will try to solve the problem with pcompos (window1_*.hdr, invalid argument)

C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1 window1_*.hdr > al
lwindow1.hdr
window1_*.hdr: Invalid argument

Best wishes!
Urtza.

Greg Ward <[email protected]<mailto:[email protected]>> escribió:

Hi Urtza,

You should not be using the file "klems_ang.cal" but something like "klems_full.cal" or klems_int.cal. This is why Nkbins was undefined, and probably at least one reason your simulation is not working.

Best,
-Greg

From:[email protected]<mailto:[email protected]>

Subject: Re: [Radiance-general] Fwd: rcontrib for rendering - missing required modifier argument

Date: May 13, 2015 8:14:16 AM PDT

Hello Christopher,

Thank you for your response.
I think that in the radiance-4.2.2-win32.exe there is not the ximage program. I usually use RadianceIV.exe program from Ecotect.

C:\Radiance\test\20150505\vmx>ximage window_000.hdr
"ximage" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

However, I find klems_full.cal file that it has all information about kbinS and Nkbins.
Now I have 145 .hdr files. They have light source, but the room walls are black (is it usual?)

In reference to pcompos, window1_*.hdr is invalid argument. Do you know why?

C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1 "window1_*.hdr" > al
lwindow1.hdr
window1_*.hdr: Invalid argument

Thank you in advance,
Kind regards,
Urtza.

Christopher Rush <[email protected]<mailto:[email protected]>> escribió:
What do you use to view the HDR image? Try typing:
ximage -e auto window_000.hdr
This will automatically adjust the exposure of your image upon initially opening the file. It could be that your image does have non-zero values but the exposure is skewed in your viewpoint making it look black with the default exposure value.
Or type
ximage window_000.hdr
then hit the 'a' key while ximage is active to view it with automatic exposure
while ximage is active you can also hit the '=' key and click a point in the image to adjust the exposure according to various points in the image

From:[email protected]<mailto:[email protected]> [mailto:[email protected]]
Sent: Wednesday, May 13, 2015 5:01 AM

However, generated window_000.hdr file does not have light. It is a black image, even though, the render generated by rvu of the room it is ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

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

Welp, it appears that the '*' wildcard expansion does not work with Windows in the standard shell, even though the wildcard does work with other internal commands, such as 'type' (Windows-speak for 'cat'). As they say: WTF?

The "cmd" shell does not do filename expansion; commands that support it
do it themselves--"cmd" is quite minimal. To make that pcompos command
work, it would have to be provided with the full list of files, spelled
out. This could be done in Windows PowerShell or perhaps via some
combination of command. Anyone who knows Windows scripting well willing
to provide an alternative?

Randolph

···

On 5/15/2015 8:55 AM, Guglielmetti, Robert wrote:

- Rob

P.S. The wildcard does expand correctly with pcompos in a Cygwin shell, so there's that.

P.P.S. You can install a lightweight Cygwin shell by simply installing Git for Windows (https://msysgit.github.io/). You get a proper BASH shell in Windows with minimal effort. Highly recommended.

On 5/15/15, 9:23 AM, "Greg Ward" <[email protected]<mailto:[email protected]>> wrote:

I'm probably not the one to answer this, as I don't use Windows and haven't seen this error, but did you check to make sure there are files that match "window1_*.hdr" in the directory where pcompos is executed?

-Greg

From: [email protected]<mailto:[email protected]>

Subject: Re: [Radiance-general] rcontrib for rendering - missing required modifier argument

Date: May 14, 2015 2:51:37 AM PDT

Hi Greg,

Thanks!
Now, I will try to solve the problem with pcompos (window1_*.hdr, invalid argument)

C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1 window1_*.hdr > al
lwindow1.hdr
window1_*.hdr: Invalid argument

Best wishes!
Urtza.

Greg Ward <[email protected]<mailto:[email protected]>> escribió:

Hi Urtza,

You should not be using the file "klems_ang.cal" but something like "klems_full.cal" or klems_int.cal. This is why Nkbins was undefined, and probably at least one reason your simulation is not working.

Best,
-Greg

From:[email protected]<mailto:[email protected]>

Subject: Re: [Radiance-general] Fwd: rcontrib for rendering - missing required modifier argument

Date: May 13, 2015 8:14:16 AM PDT

Hello Christopher,

Thank you for your response.
I think that in the radiance-4.2.2-win32.exe there is not the ximage program. I usually use RadianceIV.exe program from Ecotect.

C:\Radiance\test\20150505\vmx>ximage window_000.hdr
"ximage" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

However, I find klems_full.cal file that it has all information about kbinS and Nkbins.
Now I have 145 .hdr files. They have light source, but the room walls are black (is it usual?)

In reference to pcompos, window1_*.hdr is invalid argument. Do you know why?

C:\Radiance\test\20150505\vmx\images>pcompos -a 10 -b 1 1 1 "window1_*.hdr" > al
lwindow1.hdr
window1_*.hdr: Invalid argument

Thank you in advance,
Kind regards,
Urtza.

Christopher Rush <[email protected]<mailto:[email protected]>> escribió:
What do you use to view the HDR image? Try typing:
ximage -e auto window_000.hdr
This will automatically adjust the exposure of your image upon initially opening the file. It could be that your image does have non-zero values but the exposure is skewed in your viewpoint making it look black with the default exposure value.
Or type
ximage window_000.hdr
then hit the 'a' key while ximage is active to view it with automatic exposure
while ximage is active you can also hit the '=' key and click a point in the image to adjust the exposure according to various points in the image

From:[email protected]<mailto:[email protected]> [mailto:[email protected]]
Sent: Wednesday, May 13, 2015 5:01 AM

However, generated window_000.hdr file does not have light. It is a black image, even though, the render generated by rvu of the room it is ok.
Do you know why does it happen?

Thank you!
Kind regards,
Urtza

_______________________________________________
Radiance-general mailing list
[email protected]<mailto:[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

--
Randolph M. Fritz, Lighting Design and Simulation
+1 206 390 4477 || [email protected]

Rob,
Getting off-topic, but not sure if it warrants a separate thread... you imply that we can run Radiance commands in the Git for Windows bash shell. Is there an advantage to doing so, in comparison to Cygwin (which I have used in the past)? Both would have the clear advantages of being able to use more powerful scripted commands when compared to the Windows cmd prompt, but Git-bash is more lightweight while Cygwin would be more powerful (for things unrelated to Radiance?)? In both cases install according to normal Windows Radiance installation and adjust paths as necessary in each environment?

-Chris

···

-----Original Message-----
From: Guglielmetti, Robert [mailto:[email protected]]
Sent: Friday, May 15, 2015 11:55 AM

Welp, it appears that the '*' wildcard expansion does not work with Windows in the standard shell, even though the wildcard does work with other internal commands, such as 'type' (Windows-speak for 'cat'). As they say: WTF?

- Rob

P.S. The wildcard does expand correctly with pcompos in a Cygwin shell, so there's that.

P.P.S. You can install a lightweight Cygwin shell by simply installing Git for Windows (https://msysgit.github.io/). You get a proper BASH shell in Windows with minimal effort. Highly recommended.

____________________________________________________________
Electronic mail messages entering and leaving Arup business
systems are scanned for acceptability of content and viruses