Re: [info-performer] geostate bug?

Date view Thread view Subject view Author view

From: Bram Stolk (bram++at++sara.nl)
Date: 07/24/2003 02:33:33


Hi,

Some additional info regarding this bug:

Performer 3.0.1 linux is affected,
both on nvidia and 3dlabs:

  OpenGL renderer string: Quadro4 900XGL/PCI/SSE2
  OpenGL version string: 1.3.1 NVIDIA 28.80

  OpenGL vendor string: Xi Graphics, Inc.
  OpenGL renderer string: Wildcat III 6210/AGP/SSE2

However, Performer 2.5 IRIX is not affected.
Also, the corruption is present in the .pfb file, so it's not
just a perfly bug: If I run the program on IRIX, I can view
the output on linux. If I run the program on linux, the pfb
is corrupt.

   Bram

On Wed, 23 Jul 2003 19:03:29 +0200
Bram Stolk <bram++at++sara.nl> wrote:

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

-- 
------------------------------------------------------------------------------
 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 : Thu Jul 24 2003 - 02:35:14 PDT