Problems getting Fog to work in performer 2.0.4 IRIX 6.4 (C++ code)

New Message Reply Date view Thread view Subject view Author view

Hugo Eide Gunnarsen (hugogu++at++hugogu.oslo.sgi.com)
Tue, 25 Nov 1997 10:15:32 +0100


I'm trying to add fog into my scene. I have not tested this in C yet, but
all other suff are working in C++, so I am not sure if this is :
        1) Programming error (from my side)
        2) Bug in the C++ pfFog
        3) Bug in pfFog in general
        4) Bug in my version of performer (2.0.4 IRIX 6.4)

If I try to compile and run the program below, I get an segmentation
fault.
I have also tried to compile mips1 and mips2 with IRISGL/OpenGL.

I can see that perfly uses pfFog, but I'm not able to run
the perfly code that is in the example directory. It also give me an
Bus error (core dumped)

// CC -n32 -mips3 -o p p.c++ -lpf_ogl -lpfdu_ogl -lpfutil_ogl

#include <Performer/pf/pfChannel.h>
#include <Performer/pf/pfLightSource.h>
#include <Performer/pfdu.h>
#include <Performer/pr/pfFog.h>

pfScene *pf_scene;
pfPipe *pf_pipe;
pfPipeWindow *pf_pipewindow;
pfChannel *pf_channel;
pfFog *pf_fog;

main() {
  pfInit();
  pfConfig();

  pfuInitUtil();

  pf_scene=new pfScene();

  // This make my program coredump in the next new/pfMalloc (new
pfPipeWindow)
  pf_fog=new pfFog();

  pf_pipe=pfGetPipe(0);

  pf_pipewindow=new pfPipeWindow(pf_pipe);
  pf_pipewindow->setOriginSize(0,1024,256,256);
  pf_pipewindow->open();

  pf_channel=new pfChannel(pf_pipe);

  while(pfGetTime()<2.0) { pfFrame(); }
}

-- 

Hugo Eide Gunnarsen Mob: +47 92887631 If it ain't broke, hugogu++at++oslo.sgi.com Work: +47 67114631 it doesn't have Silicon Graphics AS Direct: +47 67114600 enough features yet.

No fortune generated, out of luck.

======================================================================= 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:56:15 PDT

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