pfMakePerspFrust error?

New Message Reply Date view Thread view Subject view Author view

ROY RUDDLE (saprar++at++thor.cf.ac.uk)
Fri, 5 May 1995 14:55:03 +0100 (BST)


Ref. p153 in the 1.2 Performer Reference manual. I've tried doing this
with just one frustrum, but the FOV I get is 45 (horiz) by 43.xxx (vert).

Any suggestions anyone? Code is (C++):

pfChannel *left = pfNewChan(pfGetPipe(0));
float v_fov = 22.5f;
float t = pfTan( v_fov );
pfMakePerspFrust(left, -1.0f, 0.0f, -t, t);
pfFrustNearFar(left, 1.0f, 1000.0f);
float ffh, ffv;
pfGetFrustFOV( left, &ffh, &ffv );
cout << "frust FOV " << ffh << " " << ffv << endl;

------------------------------------------------------------------------
Roy Ruddle, Principal Researcher | School of Psychology
Tel: 01222 874523 (direct) | University of Wales College of Cardiff
     01222 874007 (messages) | PO Box 901
Fax: 01222 874858 | Cardiff CF1 3YG
Email: Ruddle++at++CARDIFF.AC.UK | UK


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:28 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.