Picking...

New Message Reply Date view Thread view Subject view Author view

abrend++at++idt.unit.no
Tue, 14 Mar 1995 09:38:55 +0100


I can't get the picking to work. First I use
'pfNodePickSetup(root)' after the scene is read in from a Medit file.
Then - in the simulation loop - I use

noHit = pfChanPick(chan, PFPK_M_NEAREST, (mouse.xchan+1)/2,
(mouse.ychan+1)/2, 0.0f, pickList);

What did I miss, I set up the frustum with:

/* Create and configure a pfChannel. */
chan = pfNewChan(p);
pfChanScene(chan, scene);
pfChanNearFar(chan, 1.0f, 1000.0f);
pfChanFOV(chan, 45.0f, 0.0f);

Do I have to use pfFrustum routines, why, how ?

Maybe you need more information (I'm new to Performer) ?

thank's

        /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*
        /* WWW page : http://www.idt.unit.no:80/~abrend/ *
        /*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*

email___________________________________________________
|
                                                        V
        _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
       _/ Andreas Brendstuen _/ abrend++at++stud.unit.no _/
      _/ Festningsgata 11 _/ abrend++at++idt.unit.no _/
     _/ 7014 Trondheim, Norway _/ +47 61 29 44 34 _/
    _/ +47 73 51 48 06 _/ (when visiting hometown) _/
   _/ (don't call at saturday mornings) _/ _/
   _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


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:04 PDT

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