From: pramod (pramod++at++students.iiit.net)
Date: 03/28/2004 07:34:47
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.
This archive was generated by hypermail 2b29 : Sun Mar 28 2004 - 07:40:52 PST