Re: Runway Ligths

New Message Reply Date view Thread view Subject view Author view

Marcus (Marcus++at++multigenuunet.UU.NET)
Mon, 23 Jan 1995 14:01:16 PST


        Reply to: RE>Runway Ligths
Hi Rejean,

The pfLightPoint color change is a Performer 1.2 bug. I was given
a workaround from Vick Taylor of Paradigm Simulation that I added to
R14.1c of the OpenFlight loader:

/*
 * local function to create light points and initialize them to
 * the origin. this is a suggestion of Vick Taylor of Paradigm
 * Simulation (vick++at++paradigmsim.com) to prevent a light point bug.
 * If positions aren't set before other attributes a condition
 * may occur in directional lights where a floating point NAN
 * is present. Specifically, the light point color will become
 * undefined and will appear as white.
 */
static pfLightPoint*
mgNewLPoint ( long numPoints )
{
    pfLightPoint* lp = pfNewLPoint( numPoints );
    long which;

    for ( which = 0 ; which < numPoints; which++ )
    {
        static pfVec3 origin = { 0.0f, 0.0f, 0.0f };

        pfLPointPos( lp, which, origin );
    }
    return lp;
}

I think if you follow this example it'll solve the white color
problem.

Regards,
Marcus Barnes, Member Technical Staff
MultiGen Inc., 1884 The Alameda, San Jose CA, 95126
PH: (408) 261 4118 FX: (408) 247 4329
EMAIL: multigen!marcus++at++uunet.UU.NET

--------------------------------------
Date: 1/18/95 7:43 PM
To: Marcus
From: Rejean Chartrand
>From guest++at++holodeck.asd.sgi.com Wed Jan 18 20:14:35 1995
Received: from sgi.sgi.com by relay1.UU.NET with SMTP
        id QQxzhc14885; Wed, 18 Jan 1995 20:14:35 -0500
Received: from holodeck.asd.sgi.com by sgi.sgi.com via ESMTP
(941129.SGI.8.6.9/910110.SGI)
         id RAA14173; Wed, 18 Jan 1995 17:04:41 -0800
Received: by holodeck.asd.sgi.com (940816.SGI.8.6.9/940406.SGI.AUTO)
        for info-performer-dist id QAA10553; Wed, 18 Jan 1995 16:20:11 -0800
Received: from giraffe.asd.sgi.com by holodeck.asd.sgi.com via SMTP
(940816.SGI.8.6.9/940406.SGI.AUTO)
        for <info-performer++at++holodeck.asd.sgi.com> id QAA10550; Wed, 18 Jan 1995
16:20:06 -0800
Received: from sgi.sgi.com by giraffe.asd.sgi.com via SMTP
(920330.SGI/920502.SGI)
        for info-performer++at++holodeck.asd.sgi.com id AA24313; Wed, 18 Jan 95 16:19:59
-0800
Received: from cae.ca by sgi.sgi.com via SMTP (941129.SGI.8.6.9/910110.SGI)
        for <info-performer++at++sgi.com> id QAA07113; Wed, 18 Jan 1995 16:19:51 -0800
Received: by cae.ca (4.1/SMI-4.1)
        id AA19590; Wed, 18 Jan 95 19:20:09 EST
Date: Wed, 18 Jan 95 19:20:09 EST
From: rejeanc++at++cae.ca (Rejean Chartrand)
Message-Id: <9501190020.AA19590++at++cae.ca>
To: info-performer++at++sgi.com
Subject: Runway Ligths

Hi,
     I'm new to Performer and I would like to know if anybody implemented
runway light strings (including blinking effects, VASI lights, etc) and
how it should be made. I've tried implementing light strings using
pfLightPoint but because of the way pfLPointSize on small machines like an
Indy work I only very small light points almost invisible. Also, I have
a strange question about pfLPointColor : How come if I use omnidirectional
lights along with a red color that I get a red dot when I'm looking straight
at it (which is the correct behavior) but if I change the light to be
unidirectional I get a white dot ? Any ideas ?

Thanks in advance !

Rejean Chartrand.
CAE Electronics Ltd., Montreal CANADA.


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:50:53 PDT

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