It worked!
many many thanks Akos :-)

Il mar, 2005-07-05 alle 17:01, Akos Balazs ha scritto:
> Hi Enrico,
> 
> On Tue, 5 Jul 2005, Enrico Borrione wrote:
> 
> > Hi Akos, thanks for your hints, I am struggling now to make a small 
> > OpenGL blended quad appear over my OpenSG application, but with little 
> > results. Simply it seems like my opengl code is utterly ignored. I know 
> > that the program passed in the opengl routines cause i hid some printfs 
> > inside the function. My code, in the cluster servers looks like (i 
> > cannibalized the 12ClusterServer.cpp file):
> >
> > void myglfunc ()
> > {
> [...]
> > }
> >
> > void display()
> > {
> > // receive scenegraph and do rendering
> > server->render(ract);
> 
> AFAIK this will sync, render _and_ swap buffers. What you need instead is 
> the last line is:
> 
>          server->doSync(false);
>          server->doRender(ract);
>          myglfunc();
>          server->doSwap();
>          // clear changelist from prototypes
>          OSG::Thread::getCurrentChangeList()->clearAll();
> 
> 
> I don't remember why the 'false' parameter is there in the first call, and 
> I don't quite understand the online docs at this point, but it has worked 
> for me, YMMV. :-) Keep in mind that I use rather old OpenSG versions on my 
> clusters, I don't know how much this part has changed. If the above still 
> doesn't work for you, maybe Marcus can step in to help.
> 
> Hope this helps,
>       Akos
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to