From: Nguyen, Tien (Tien.Nguyen++at++dsto.defence.gov.au)
Date: 04/07/2002 17:26:38
i had flickering image on my pf program too
fixed it by increasing the channel near value
hope it's some use
-----Original Message-----
From: Changhee Han [mailto:changhee++at++ict.usc.edu]
Sent: Thursday, 4 April 2002 9:21 AM
To: 'info-performer++at++sgi.com '
Subject: flickering image problem
Hi Performer,
By below functions, one scene [manipulated mainly by vega API] is displayed
in one window and
a rendered image from the scene [manipulated mainly by performer API] is
displayed in the other window.
But I got the rendered image flickering.
I want to have a not flickering image.
I will appreciate very much if somebody comments on it.
Best regards,
Changhee
//// Here is the synopsis of the code //////
main(){
...
vgInitSys();
...
vgInitFx();
...
VgDefineSys(file.adf);
...
vgConfigSys();
...
get a pipe and open a new pipewindow [by setting winow type as
PFPWIN_TYPE_SHARE]
...
get a performer scene from the vega scene
...
a new channel is added to the pipewindow
This new channel is linked to the performer scene (i.e., the rendered image)
main_chan=my_post_func(datapasspt);
while(loop){
vgSyncFrame();
Loop_function();
main_chan->get the view();
aux_chan->set the view();
vgFrame();
}
}
pfChannel* my_post_func(datapass* datapasspt){
get the performer channel from vega channel
aux_chan->setTravFunc(PFTRAV_DRAW, my_draw_callback);
return(the performer channel); //return the main_chan
}
void my_draw_callback(pfChannel* pfchan, void* _userData){
pfchan->clear();
pfDraw();
do some my job;
}
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 17:36:58 PDT