[info-performer] pfShadows from C API

Date view Thread view Subject view Author view

From: Steven Queen (Steven.Z.Queen++at++nasa.gov)
Date: 03/14/2005 05:01:42


Hello,

I am trying to use pfShadows from the C API. I see in the Performer
archives there have been a few issues with this, supposedly fixed in 3.0.
Here is a description of my problem: (I'm using Performer 3.1.1 under
Irix 6.5.24 on an Onyx 350 with IR3)

1) I can complies an run shadowsNew.C, the C++ included example

2) I try to follow the example code similar to the Programmer's Guide as
follows:

  static pfMatrix m; float x,y,z,w;
  pfShadow *shad = pfNewShadow();
 
  pfShadowNumCasters(shad, 1);
  pfMakeRotMat(m, 180.0f, 0.0f, 0.0f, 1.0f);
  pfShadowShadowCaster( shad, 0, chaserGeo, m );
         pfShadowNumSources(shad, 1);
  pfGetLSourcePos(sunlight, &x, &y, &z, &w);
  pfShadowSourcePos(shad, 0, x, y, z, w);
 
  pfShadowAddChannel(shad, 0);
 
  pfShadowApply(shad);

Unfortunately, the app "hangs" on the call to pfShadowApply().

Help please!


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Mar 14 2005 - 05:01:26 PST