Re: [info-performer] geostate bug?

Date view Thread view Subject view Author view

rick.van.haasen++at++philips.com
Date: 07/24/2003 04:30:39


Hi Bram

maybe your application is seen as a "pr only application".
In this case pfInit will not initialised shared memory
The man pages say that pfInit will act this was if

- only libpr is used
and
- pf.h is not included

Current version of performer have both libpr and libpf combined in libpf,
so i don't now what criteria is used now.

If this is the case you could try explicitely initialising shared memory
with pfInitArenas()
before calling pfInit

maybe this helps

Rick
------------------------------------------------------------------------------------------------
Rick van Haasen Philips Research
Laboratories Eindhoven
Building: WY8-48 Prof. Holstlaan 4
Phone: +31 40 2744357 5656 AA Eindhoven
Fax: +31 40 2744660 The Netherlands
E-mail: rick.van.haasen++at++philips.com
-------------------------------------------------------------------------------------------------

Bram Stolk <bram++at++sara.nl>
Sent by:
owner-info-performer++at++holodeck.engr.sgi.com
23-07-2003 19:03

 
        To: info-performer++at++sgi.com
        cc: (bcc: Rick van Haasen/EHV/RESEARCH/PHILIPS)
        Subject: [info-performer] geostate bug?
        Classification:

Hi there,

Either I've encountered a bug with geostates, or: after all these years
of Performer Programming, I still don't understand geostates (In which
case:
shame on me!)

I get OpenGL errors if I add a pfGeoState() to GeoSets.
I call pfGeoState::makeBasic before adding.

Can someone tell me what I do wrong here?:

thx

 Bram

//
// gstatebug.cxx
//
//
// Added the basic geostate will give this error from perfly:
// PF Warning/Usage: OpenGL Error 0x501 - invalid value
//
// built with:
// g++ gstatebug.cxx -lpfdu -lpfutil -lpf
// on: pf3.0.1 linux
//

#include <Performer/pr/pfGeoState.h>
#include <Performer/pr/pfGeoSet.h>

#include <Performer/pf/pfGeode.h>

#include <Performer/pfdu.h>

int main()
{
  pfInit();
  pfdInitConverter(".pfb");
  pfConfig();

  pfGeoSet *cyl_geoset = pfdNewCylinder(80, pfGetSharedArena());
  pfGeode *cyl_geode = new pfGeode();

#if 1
  // This section triggers the bug
  pfGeoState *cyl_geostate = new pfGeoState();
  cyl_geostate->makeBasic();
  cyl_geoset->setGState(cyl_geostate);
#endif

  cyl_geode->addGSet(cyl_geoset);
  pfdStoreFile(cyl_geode,"cyl.pfb");

  pfExit();
}

-- 
------------------------------------------------------------------------------
 Bram Stolk, VR Specialist.
 SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP 
AMSTERDAM
 email: bram++at++nospam.sara.nl   Phone +31-20-5923059  Fax +31-20-6683167

"Gates' Law: Every 18 months, the speed of software halves." ------------------------------------------------------------------------------

----------------------------------------------------------------------- List Archives, Info, FAQ: http://www.sgi.com/software/performer/ Open Development Project: http://oss.sgi.com/projects/performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com ----------------------------------------------------------------------- SIGGRAPH 2003 Friends of Performer Meeting: Wednesday July 30 6:00pm San Diego Hilton Hotel Santa Rosa Room -----------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Jul 24 2003 - 04:36:42 PDT