Ortho chan picking problem

New Message Reply Date view Thread view Subject view Author view

Roy Ruddle (Ruddle++at++cardiff.ac.uk)
Fri, 6 Mar 1998 17:10:50 +0000 (GMT)


Hi there,

I'm not getting the correct coords returned when I pick geometry in an
ortho channel. Can anyone tell me why? Here are a few details:

1) pf2.2 on IMPACT
2) Channel created using pfMakeOrthoChan()
3) All geometry is displayed correctly
4) C++ binding used
5) My test surface for picking is a large square in the z=10 plane
6) The viewpoint for the ortho channel is vertically downwards
   (heading = 0, pitch = -90, roll = 0)

My picking is as follows:
 pfuMapMouseToChan() returns the correct channel
 cnt =
   chan->pick(PFPK_M_NEAREST|PFTRAV_IS_PRIM,mxpos,mypos,0.0f,picklist);
   // sets cnt equal to 1 (ie. something's been picked)
 pfQueryHit( *picklist[0], PFQHIT_POINT, &v1 );
   // should put coords into v1

For non-ortho channels the coords are returned correctly but for an ortho
channel v1 is returned as (0, 4.37114e-07, 10). In other words, the Z
coord is being returned correctly but X and Y are wrong.

Sounds like a bug. Thoughts anyone?

regards

roy

------------------------------------------------------------------------
Roy Ruddle, Senior Research Associate
Cardiff Virtual Environment Laboratory
School of Psychology, Cardiff University, PO Box 901, Cardiff CF1 3YG
Tel: +44 (0) 1222 874000 x5030, Fax: +44 (0) 1222 874858
Email: Ruddle++at++CARDIFF.AC.UK http://www.cf.ac.uk/uwcc/psych/ruddle

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:56:59 PDT

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