[info-performer] geostate bug?

Date view Thread view Subject view Author view

From: Bram Stolk (bram++at++sara.nl)
Date: 07/23/2003 10:03:29


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." ------------------------------------------------------------------------------


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 10:08:57 PDT