From: Paolo Farinelli (paolo++at++sgi.com)
Date: 03/29/2004 16:01:22
Hi Pramod,
Are you providing a pfChannel pointer to the pfvMousePicker
through pfvMousePicker::setChannel ?
Also, I think you should not be calling pfuGetMouse and pfuGetEvents
yourself (as these are called from within pfvMousePicker::update).
You can obtain a pointer to the pfuMouse and pfuEvents structs used by
the picker through pfvMousePicker:;getMouse and ::getEventStream.
In order to underdstand what is going wrong in your case, I would
appreciate it if you could send me a complete program that exhibits the
problem. If that is not possible, could you please raise the
notification level
(setenv PFNFYLEVEL 8) , run your program again and send me the output?
BTW on which platform(s) are you developing?
Regards,
Paolo
pramod wrote:
>hi Performers,
>
>I need a clarification regarding the use of pfvMousePicker class.
>
>I am using the class to select objects in the scene with the mouse. I am
>able to do the picking correctly when the scene is being drawn using a
>single channel.
>
>This is how my rendering loop looks:
>
>while(t < 2000000000000)
>{
> // Go to sleep until next frame time.
> pfSync();
>
> // Get mouse events.
> pfuGetMouse(&m_mouse);
>
> // Initiate cull/draw for this frame.
> pfFrame();
>
> // Compute new view position.
> t = pfGetTime();
>
> // Interaction.
> m_Picker->update();
>
> // Get mouse clicks and GUI events.
> pfuGetEvents(&m_pfevents);
>
> pfuUpdateGUI(&m_mouse);
>}
>
>But, this rendering code gives the following error when i use it for
>stereo rendering using two channels. I am using left and right channels,
>with left being the master, and using offsets for both the channels as
>given in the /usr/share/Performer/src/pguide/libpf/C/stereo.c. Please
>suggest what is wrong and what i need to do in order for picking to work
>with two channels.
>
>P.S: The code is not working even when the stereo is disabled and i am
>drawing to only a single channel.
>
>Following is the error that i am receiving:
>
>----------------------------------------------------------------------
>PF Notice: pfuDrawStringPos - bad font handle in pid
>22829
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>PF Warning/Usage: pfGetChanSize() NULL pfChannel*.
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>PF Warning/Usage: pfGetChanSize() NULL pfChannel*.
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>PF Warning/Usage: pfGetChanSize() NULL pfChannel*.
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>PF Warning/Usage: pfGetChanSize() NULL pfChannel*.
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>PF Warning/Usage: pfGetChanSize() NULL pfChannel*.
>PF Warning/Usage: pfGetChanOrigin() NULL pfChannel*.
>
>------------------------------------------------------------------------
>
>Please give your valuable suggestions,
>Pramod.
>
>-----------------------------------------------------------------------
> List Archives, Info, FAQ: http://www.sgi.com/software/performer/
> Open Development Project: http://oss.sgi.com/projects/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-----------------------------------------------------------------------
>
>
>
>
-- Paolo Farinelli paolo++at++sgi.com Member of Technical Staff, OpenGL Performer 1-650-933-1808 Silicon Graphics 1600 Amphitheatre Pkwy, Mountain View, CA 94043
This archive was generated by hypermail 2b29 : Mon Mar 29 2004 - 16:01:31 PST