pfFog

New Message Reply Date view Thread view Subject view Author view

Sibylle Geiger (sib++at++bayleaf.mpik-tueb.mpg.de)
Fri, 3 Apr 1998 20:02:21 +0200


Hi pfAll,

I've tried to simulate ground fog with 8m height (like over a lake), between
75m and 100m. But also the mountain texture from the environment box is white
(which is really higher and far away) and only the sky from the earth-sky
modell is still blue.

Is there any possibility to do so?
Does anyone can tell me how to do?

If attached my earth-sky modell and my fog.

Thanks in advance

Gruss Sibylle

*****************************************************************************/*
/* CONFIGURE PIPE */
static void
OpenPipeWin(pfPipeWindow *pw)
{
    .
    .
    .
    /* create fog */
    fog = pfNewFog(pfGetSharedArena());
    pfFogType (fog, PFFOG_PIX_LIN);
    pfFogColor (fog, 1.0, 1.0, 1.0);
    pfFogRange (fog, 75.0f , 100.0f);
    pfEnable (PFEN_FOG);
    pfApplyFog (fog);
    pfOverride(PFSTATE_FOG | PFSTATE_ENFOG, PF_ON);
    .
    .
    .
}

/* EARTH SKY MODEL */
void attatchSkyModel(int ESky, pfChannel *threeChannel)
{
  pfEarthSky *eSky;

  /* Create an earth/sky model that draws sky/ground/horizon */
  eSky = pfNewESky();

  pfESkyFog(eSky,PFES_GRND, fog);
  pfESkyMode(eSky, PFES_GRND_FOG_TOP, 2.0f);
  pfESkyAttr(eSky, PFES_HORIZ_ANGLE, 30.0f);
  pfESkyColor(eSky, PFES_CLEAR, .3f, .3f, .7f, 1.0f);
  pfChanESky(threeChannel, eSky);
}

-- 

-----------------------------------------------------------

_/ _/ _/_/_/ _/_/_/ Sibylle Geiger _/_/ _/_/ _/ _/ _/ Max-Planck Institut f"ur _/ _/ _/ _/_/_/ _/ biologische Kybernetik _/ _/ _/ _/ Spemannstrasse 38 _/ _/ _/ _/_/_/ 72076 T"ubingen, Germany

phone: +49-7071-601 630 fax : +49-7071-601 616 web : www.kyb.tuebingen.mpg.de email: sibylle.geiger++at++tuebingen.mpg.de ----------------------------------------------------------- ======================================================================= 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:57:11 PDT

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