From: MLM Veraart (Veraart++at++fel.tno.nl)
Date: 09/21/2000 04:24:57
Guenter Schreiber wrote:
>
> Hello pfEverybody,
>
> I'd like to display different aspects of the same Database in Performer.
> Call it a "Camera Simulation", where more than one View is active at a
> moment.
> So, my question is concerned about Performance:
> A) Which possibilit is better for the implementation"
> * Use the same pfScene for all different pfChan's and pfPipeWindows
> and Switching the view by pfSwitch in a callback
> * or use different (distinct) pfScenes for the different Views?
If your top node is a pfSwitch than use different pfScenes.
Use a different pfScene if your database differs very much.
You can share pfGeosets and maybe other pfNodes.
>
> B) How can I modify the rendering sequence, so that I could render the
> main
> channel more often than my other windows?
> On calling pfFrame(), all views (chans) are rendered at once.
If you disable the drawing of a certain channel. It will not be culled
and drawn
on the next pfFrame(). Just enable the drawing every other frame.
Maybe you have to give every pfChannel it's own pfPipeWindow() in case
the
buffer clear erases the image.
What you can do also is in the drawcallback read the
image from the front buffer and write it to the backbuffer.
Disable all geometry drawing with the channel draw mask.
>
> C) Where are the results of pfCull stored? In pfScene ?
> This is just the question about having different Aspects of the
> scene,
> different Culling results may occur.
Don't worry, all results are stored separately and will not interfere.
Mario
>
> Any clues or sample code is welcome
>
> Thanks in advance
>
> Günter
This archive was generated by hypermail 2b29 : Thu Sep 21 2000 - 04:25:27 PDT