David Florek (dflorek++at++nvl.army.mil)
Wed, 5 Mar 1997 16:28:23 -0500 (EST)
Adding another voice of frustration, immediately upon executing pfApplyFog()
in the following segment:
fog = pfNewFog(pfGetSharedArena());
pfFogType(fog, PFFOG_PIX_EXP);
pfFogColor(fog, 1.0, 1.0, 1.0);
pfFogRange(fog, 0.0, 0.01*fog_range);
pfEnable(PFEN_FOG);
pfApplyFog(fog);
I get the following error:
PF Fatal/SysErr: _pfDirtCheck: pfRealloc of 0 bytes returned NULL.
Without access to the actual structure definition for _pfFog, I'm having
difficulty figuring out how to work around it. In case it's being stupid
about trying to copy some of the variable-length entities, I've added:
float *bogus_fogranges, *bogus_fogdensities;
char *bogus_userdata;
bogus_fogranges =
(float *)pfMalloc(4*sizeof(float), pfGetSharedArena());
bogus_fogdensities =
(float *)pfMalloc(4*sizeof(float), pfGetSharedArena());
bogus_userdata =
(char *)pfMalloc(sizeof(char), pfGetSharedArena());
pfFogRamp(fog, 4, bogus_fogranges, bogus_fogdensities, 0.0f);
pfUserData(fog, (void *)bogus_userdata);
before the call to pfApplyFog(), but with no luck. I'm running Performer
2.1 on a deskside Onyx with 4 R10Ks, infiniteReality graphics, and IRIX64
version 6.2. Any thoughts?
Dave
-----------------------------------------------------------------------------
David W. Florek E-OIR Measurements, Inc. Phone: 703 / 704 - 1767
Senior Engineer NVESD Night Vision Lab Email: dflorek++at++nvl.army.mil
Computer Graphics Ft. Belvoir, VA 22060
-----------------------------------------------------------------------------
=======================================================================
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:54:51 PDT