Re: Atmosphere effects

New Message Reply Date view Thread view Subject view Author view

Rob Jenkins (robj++at++barney.reading.sgi.com)
Fri, 4 Aug 1995 09:14:34 +0100


On Aug 3, 7:39pm, SSPSU91++at++aol.com wrote:
> Subject: Atmosphere effects
> I am trying to follow the atmosphere model in the Programmers guide for cloud
> layers but when I implement it my sky appears black. Can anyone point me to
> some example code for this?
> S. Sroczyk, JJM Systems Inc. SSPSU91++at++aol.com
>-- End of excerpt from SSPSU91++at++aol.com

If you don't have an esky model at all the channel is cleared to black - you
should have something like:

    pfEarthSky *eSky;

.....

    /* Add an earth/sky effect */
    eSky = pfNewESky();
    pfESkyMode(eSky, PFES_BUFFER_CLEAR, PFES_SKY_GRND);
    pfESkyAttr(eSky, PFES_GRND_HT, -1.0f);
    pfESkyAttr(eSky, PFES_HORIZ_ANGLE, 5.0f);
    pfESkyColor(eSky, PFES_SKY_TOP, 0.0f, 0.0f, 0.2f, 1.0f);
    pfESkyColor(eSky, PFES_SKY_BOT, 0.05f, 0.0f, 0.4f, 1.0f);
    pfESkyColor(eSky, PFES_GRND_NEAR, 0.15f, 0.20f, 0.05f, 1.0f);
    pfESkyColor(eSky, PFES_GRND_FAR, 0.1f, 0.12f, 0.05f, 1.0f);
    pfESkyColor(eSky, PFES_HORIZ, 0.5f, 0.05f, 0.0f, 1.0f);
    pfChanESky(shared->chan, eSky);

....

Cheers
Rob

-- 
________________________________________________________________
Rob Jenkins, Software Support Group, Silicon Graphics UK Ltd.       
1530 Arlington Business Park, Theale, Reading, UK, RG7 4SB. 
tel 01734 257736, fax 01734 257553, email robj++at++reading.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:51:45 PDT

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