[Radiance-general] view_param.cal
Jack de Valpine
jedev at visarc.com
Tue Aug 3 21:18:34 CEST 2004
Hi Rob,
There are a couple of things here.
1. Each line of non-comment code in a cal needs to be terminated with
';' (note comments are enclosed in {} and do not need to be
terminated by ';')
2. Depending on where rayinit.cal is located you may need to do the
following: calc /mypath/ray/rayinit.cal view_param.cal
-Jack de Valpine
Fitzsimmons, Rob wrote:
>I'm trying to create the view_param.cal mentioned in RwR page 328
>
>I think I've typed it exactly as it is in the book, then copy it to
>/usr/local/lib/ray/view_param.cal
>_______________________________________
>
>{ view_param.cal
> Arbitrary aspect ratio:
> p = pixel aspect ratio (height/width=input)
> h = horizontal view angle (input)
> v = vertical view angle (output)
>}
>
>v = 114.6*atan(p*tan(h/114.6))
>
>{ View parameters specific to 35mm film
> f = focal length of lens (input)
> v35 = vertical view angle -vv (output)
> h35 = horizontal view angle 0vh (output)
>}
> v35 = 114.6*atan(17/f)
> h35 = 114.6*atan(11.5/f)
>______________________________________
>
>but I get an error when I try to use it
>calc view_param.cal
>
>I get back:
>view_param.cal, line 15:
> v35 = 114.6*atan(17/f)
> ^ ';' expected
>
>What am I missing?
>Thanks
>Rob F
>
>
>_______________________________________________
>Radiance-general mailing list
>Radiance-general at radiance-online.org
>http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
>
--
# John E. de Valpine
# president
#
# visarc incorporated
# http://www.visarc.com
#
# channeling technology for superior design and construction
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://radiance-online.org/pipermail/radiance-general/attachments/20040803/40a5f49d/attachment.htm
More information about the Radiance-general
mailing list