Re: Setting color of Geosets in MultiProcess mode??
Angus Dorbie (dorbie++at++multipass)
Tue, 30 Dec 1997 11:38:49 -0800
On Dec 30, 11:40am, Scott Brabson wrote:
> Subject: Setting color of Geosets in MultiProcess mode??
> Hello All and Happy Holidays!!!
>
> I am trying to set the colors of a geoset in the app process when in
> Multiprocess mode (APP_CULL_DRAW) and it turns the polygons to black.
> When I run the program in single process mode (APP_CULL_DRAW) it works
> fine.
>
> To be specific, I took the simple.C code under /usr/share/Performer and
> modified it to change the colors of some polygons. The polygons was the
> result of a flt loaded model. After I cycle for 10 seconds I change the
> colors and use pfdPrintGSet to make sure the color is set. If I run
> single process mode everything works fine. Multiprocess mode the
> polygons turn black even though the color values are not black! To
> ensure the colors were not being overwritten I waited another ten
> seconds and use pfdPrintGSet to verify the colors did not change. They
> did not.
>
> Does anyone have any suggestions? Has anyone seen this? Is there a flush
> that I need to do? Any help would be much appreciated.
The problem may be the way you are storing and accessing
the pfNode pointer returned by the loader and where/when
you call the loader but it seems more likely that the
problem is the way you create your new attribute data.
The attributes in a geoset must exist in shared memory,
you don't try and change the attributes in the app for some
data off the stack or just malloc'd do you?
Cheers,Angus.
--
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:56:28 PDT