view_param.cal

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

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
[email protected]
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

I'll remember that!
Many thanks from a scripting noob!

Rob

···

-----Original Message-----
From: Jack de Valpine
To: Radiance general discussion
Sent: 8/3/2004 12:18 PM
Subject: Re: [Radiance-general] view_param.cal

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