Re: Fog and Raster Light Points.

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (dorbie++at++sgi.com)
Wed, 28 Oct 1998 12:00:20 -0800


Angus Dorbie wrote:
>
> Oops, pressed the wrong button on the other reply & sent too soon.
>
> Can you send more info on your light point state?
>
> If you're pressed and need something soon you could also try out
> calling the equivalent gl functionality offset stuff yourself.
>
> glFogf(GL_FOG_OFFSET_VALUE_SGIX, values);
> glFogf(GL_FOG_OFFSET_SGIX);

^^ this last one should be a glEnable call.

Cheers,Angus.

>
> This is not just for light points so you'd have to enable it in a
> draw callback around your lights lights.
>
> Cheers,Angus.
>
> Paul Berridge wrote:
> >
> > I'm trying to get fog to work on raster light points.
> >
> > If I use:
> >
> > pfGStateMode(gstate, PFSTATE_ENFOG, TRUE);
> >
> > then light points fade with range but fog punch through does not have
> > any effect.
> >
> > With:
> >
> > pfGStateMode(gstate, PFSTATE_ENFOG, FALSE);
> >
> > then fog punch through works but lights don't fade (they just cut off
> > beyond the punch through range).
> >
> > Can any one tell me how to get both effects at the same time?
> >
> > I'm using an Infinite Reality (Onyx 2) with Performer 2.2 and IRIX 6.4
> >
> > --
> > Paul Berridge
> > Principal Development Engineer
> > Equipe Electronics Ltd.
> > 13 Liverpool Gardens
> > Worthing, W. Sussex
> > BN11 1RY
> > ENGLAND
> >
> > Phone +44 (0) 1903 216622
> > FAX +44 (0) 1903 216633
> >
> > mailto:paulb++at++equipe.ltd.uk
> > http://www.equipe.ltd.uk
> > =======================================================================
> > List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
>
> --
> "Only the mediocre are always at their best." -- Jean Giraudoux
>
> For advanced 3D graphics Performer + OpenGL based examples and tutors:
> http://www.dorbie.com/
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com

-- 
"Only the mediocre are always at their best." -- Jean Giraudoux 

For advanced 3D graphics Performer + OpenGL based examples and tutors: http://www.dorbie.com/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Wed Oct 28 1998 - 12:00:28 PST

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