Re: pfdPrintSceneGraphStats()

New Message Reply Date view Thread view Subject view Author view

Bernard Leclerc (bleclerc++at++cae.ca)
Thu, 28 Nov 1996 10:43:46 -0500


Dee A. Chapman wrote:

> I'm trying to print out the Scene graph statistics (as is done
> when viewing the performer town demo). I've replicated the
> line from Performer/src/sample/C/common/generic.c:
>
> if (loaded)
> {
> pfNotify(PFNFY_INFO, PFNFY_PRINT, "Total scene-graph statistics");
> pfdPrintSceneGraphStats((pfNode *)scene, elapsedTime);
> }
>
> But all I get to print out is the comment "Total scene-graph
statistics",
> with no information about the scene graph statistics. Can anyone tell
> me if there is something else I need to do to get these statistics to
> print out?

pfdPrintSceneGraphStats() uses the INFO notification level. If you see
only your own message printed, then I assume the scene pointer is NULL
unless your scene graph doesn't contain any recognized primitives: TRIS,
LINES and POINTS.

Since the source for pfdPrintSceneGraphStats() is available in
/usr/share/Performer/src/lib/libpfdu/pfdLoadFile.c, I suggest you take a
look at the function, recompile with -g and step through to verify what's
going on.

Gook luck.

--
Bernard Leclerc			CAE Electronics Ltd., 8585 Cote De Liesse
Technical Leader		Saint-Laurent, Quebec, Canada, H4L-4X4
3-D Graphics Applications	tel: +1 514 341 2000 extension 2275
bleclerc++at++cae.ca			fax: +1 514 340 5496
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:02 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.