Chris Mitchell (mitchell++at++physics.ucla.edu)
Fri, 8 Jan 1999 10:03:08 -0800 (PST)
Sorry, I wrote the code a while ago. I'm no longer sure what the motivation
is, but it's presence is imperative.
Also important is what's inside pageDBase():
static pfBuffer *buf=NULL;
// Do this one time only
if(buf==NULL)
{
buf = new pfBuffer;
buf->select();
}
I'm sure there is a more elegant organization available, but this
works. Without this you'll get "can't create in current buffer,"
or some such message. This, or something like it, is essential.
> Also, since the first DBASE run isn't made until the first pfSync call, how
> do you ensure that the database models (of which I'm sure you have some) are
> paged in before manipulating them (i.e., the DCS contained therein). Do you
> not modify the contents of the objects you bring in (i.e., all your DCS
> nodes are made dynamically in code and do not come from the models you
> load)?
I created all models from scratch, since the app is scientific visualization.
New models are created in processes forked from pageDBase() and loaded into
scene after completion. If you declare shared memory in initShared() where
I did (i.e. pfDCS's to rotate model or whatever), then they will be available
in APP and also retain continuity from one scene update to the next.
That is, if the scene n-1 is rotated 45degrees from it's original position
(by keyboard input, say), then scene n will also be rotated 45.
Hope that helps.
Chris Mitchell
UCLA Physics Department
LAPD Plasma Lab
voice: 310-206-1772
fax: 310-206-5484
email: chrism++at++ucla.edu
>
> Greg
>
>
> pfInit();
> // Initialize Shared memory
> initShared();
> // configure multi-process selection
> int ProcSplit = PFMP_FORK_DBASE;
> pfMultiprocess(ProcSplit);
> pfDBaseFunc((pfDBaseFuncType)(void *)pageDBase);
> pfConfig();
> // Get current memory buffer for future use by Dbase process
> Shared->configBuffer = pfGetCurBuffer();
>
> If you need more, let me know.
>
>
>
> Chris Mitchell
> UCLA Physics Department
> LAPD Plasma Lab
> 310-206-1772
> chrism++at++ucla.edu
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
This archive was generated by hypermail 2.0b2 on Fri Jan 08 1999 - 10:04:19 PST