multipipe fog

New Message Reply Date view Thread view Subject view Author view

From: lai++at++daimi.au.dk
Date: 12/13/2001 05:13:01


I have some trouble getting my fog to run.
On a single pipe linux machine, and on O2s it works like a charm. But on our
three-pipe ONYX2 it doesn't work. The program runs, but the fog is nowhere to be
found. I've put the fog in a draw callback, to ensure shared memory access.
Any help would be acppreciated. My fog code can be found in the bottom of this mail:

/Gorm

BTW. Thanks for the help with pfTexture::subLoadImage in a previous post.

int pfFogPreDraw(pfTraverser *node,void *data)
{
  static pfFog * fog = NULL;

  if (fog==NULL)
    {
      fog = new pfFog;
      fog->setFogType(PFFOG_VTX_LIN);
      fog->setRange(1,8);
      fog->setColor(0.0f,0.35f,0.5f);
    }

  pfEnable(PFEN_FOG);
  fog->apply();
  pfOverride(PFSTATE_FOG | PFSTATE_ENFOG,PF_ON);

  return PFTRAV_CONT;
}


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Dec 13 2001 - 05:13:00 PST

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