Re: pfDirtCheck errors
Rambabu Munjuluri (ram++at++ivex3d.com)
Thu, 06 Mar 1997 09:15:49 -0500
David Florek wrote:
>
> Ken Sakai of Lockheed-Martin writes:
> > Like Elwin Lee, I too have been plagued by a persistant _pfDirtCheck()
> > problem ... This problem only seems to appear on our Impact R10000
> > running either Performer 2.01 or Performer 2.1. I can't seem to dupli-
> > cate the problem on our ONYX running Performer 2.01.
>
> 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
Hi,
I used to get this message for pfApplyMtl().
--
Ram
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Rambabu Munjuluri Phone # : 770-564-1148
E-mail : ram++at++ivex3d.com Fax : 770-381-0622
IVEX Corporation, Norcross GA.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
=======================================================================
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