From: Guenter Schreiber (Guenter.Schreiber++at++dlr.de)
Date: 04/24/2001 04:01:20
Hy pfGurus,
I try to perform picking on my scene, and I obtain no result.
The code of my viewer is based on perfly.
Well, I'm setting up like the following
pfNodePickSetup(viewChan->getScene());
pfHit ** picklistp=NULL;
pfuCalcNormalizedChanXY(&nx, &ny, viewChan, x, y);
count = viewChan->
pick(PFPK_M_ALL/*NEAREST*/|PFTRAV_IS_PRIM|PFTRAV_IS_PATH
,
nx,ny,0.10f, &picklistp);
printf("handlePick count %d %f %f %d %d\n", count, nx,ny,x,y);
Wich is code quite similar to pfiPick.C
But as I perform the pick, I obtain no result. I can click everywhere in
my window.
So my question is, are there some other pitfalls, I'm not aware of?
Like setting some flag somewhere in the database or having a disturbing
callback ?
e.g. pfNodePickSetup()
In which context has chan->pick to be called?
APP/CULL/DRAW
before or after pfSync, pfFrame
How can I debug the picking to find out?
Thanks in advance
Günter
-- __________________________________________________________ | Dipl.-Ing. Günter Schreiber | phone: *49/*8153/28/1183 | | DLR - Deutsches Zentrum für | fax: *49/*8153/28/1134 | | Luft und Raumfahrt | | | Institut für Robotik und | email: | /| | Mechatronik | Guenter.Schreiber++at++dlr.de -------- | P.O. Box 1116 | / | | / | 82230 Wessling | ---+-+-- |________ http://www.robotic.de/Guenter.Schreiber _________| |/
This archive was generated by hypermail 2b29 : Tue Apr 24 2001 - 04:01:51 PDT