[Radiance-general] if statement with vwrays

Ignacio Munárriz gvn at retena.com
Tue Feb 8 17:13:58 CET 2005


you can use grep, ie

 ./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d
zoomsomeRender.pic`
 -oodLpnsm `if(s='greenbox')` testroom.oct  | grep "surface_name" > rays.txt

----- Original Message -----
From: "Tarik Rahman" <tarik.rahman at ed.ac.uk>
To: "Radiance general discussion" <radiance-general at radiance-online.org>
Sent: Tuesday, February 08, 2005 4:02 PM
Subject: [Radiance-general] if statement with vwrays


> Hi there
> I'm trying to get the hang of the syntax using an if statement with the
> following command
>
>
> ./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d
zoomsomeRender.pic`
> -oodLpnsm testroom.oct > rays.txt
>
> but only output the rays that hit the surface called greenbox.
> Is it something like
>
> ./vwrays.exe -fd someRender.pic | rtrace -fda `vwrays -d
zoomsomeRender.pic`
> -oodLpnsm `if(s='greenbox')` testroom.oct > rays.txt
>
> Thanks for any help
>
> Tarik
> --
> Tarik Rahman
> PhD student, Institute of Perception, Action and Behaviour
> School of Informatics
> University of Edinburgh
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>




More information about the Radiance-general mailing list