[info-performer] pfEarthSky problem

Date view Thread view Subject view Author view

From: Vicente (vde++at++glup.irobot.uv.es)
Date: 06/30/2003 02:19:32


Hello everybody :-D

I'm trying to use a pfEarthSky class/node in my application, but I'm
having some problems. When I draw the sky (+ fog) it seems that there is
a problem with the "redrawing" of the scene, because everything is shown
messed up.

I'm using C++, Peformer 3.0.2 and Windows XP. The code is:

  scene->getBound(&bsphere);
  
  pfEarthSky *esky = new pfEarthSky();
 
  esky->setMode(PFES_BUFFER_CLEAR, PFES_SKY_GRND);
  esky->setAttr(PFES_GRND_HT, -1.0f * bsphere.radius);
  esky->setColor(PFES_GRND_FAR, 0.3f, 0.1f, 0.0f, 1.0f);
  esky->setColor(PFES_GRND_NEAR, 0.5f, 0.3f, 0.1f, 1.0f);

  pfFog *fog = new pfFog;

  fog->setFogType(PFFOG_VTX_LIN);
  fog->setColor(0.75,0.75,0.75);
  fog->setRange(40,1000);
  fog->setOffsets(0.0,0.0);
  
  esky->setFog(PFES_GENERAL,fog);

  chan->setESky(esky);

What's going on here?

Thank you very much in advance.

Vicente.


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 02:24:44 PDT