From russo@rudedog.ait.nrl.navy.mil  Thu Oct  7 09:55:43 1993
Date: Thu, 7 Oct 93 12:55:37 -0400
From: russo@rudedog.ait.nrl.navy.mil (Kevin Russo)
Message-Id: <9310071655.AA13915@rudedog.ait.nrl.navy.mil>
To: info-performer@sgi.sgi.com
Subject: Stars
Status: OR

Is it better to implement stars in the night sky (or as seen from
Earth orbit) as Geosets of PFGS_POINTS or as pfLightPoint nodes?

Kevin Russo
Naval Research Lab




From jrohlf@tubes  Thu Oct  7 10:31:01 1993
Date: Thu, 7 Oct 93 10:30:42 -0700
From: jrohlf@tubes (John Rohlf)
Message-Id: <9310071730.AA00545@tubes.asd.sgi.com>
To: russo@rudedog.ait.nrl.navy.mil (Kevin Russo), info-performer@sgi.sgi.com
Subject: Re:  Stars
Status: OR


>Is it better to implement stars in the night sky (or as seen from
>Earth orbit) as Geosets of PFGS_POINTS or as pfLightPoint nodes?

	pfLightPoints are probably easiest and should be comparable in
performance to pfGeoSets.







From guest  Thu Apr  7 02:19:26 1994
From: Vassilis Seferidis <ukrsefe@prl.philips.co.uk>
Date: Thu, 7 Apr 94 10:09:29 BST
Message-Id: <22144.9404070909@prsun11b.prl.philips.co.uk>
To: info-performer@sgi.sgi.com
Subject: pfLightPoint use
Status: OR


Hi all,

I want to create several visible light sources using the pfLightPoint 
related functions. According to the manual pages the following part of
my program should create several light points distributed along the z axis.

.......
pfLightPoint *lpoint;
pfVec3 clr, pos;

lpoint = pfNewLPoint(20);     /* Define 20 light points */
pfLPointSize(lpoint, 2.0f);   /* Define the size for each one */

clr[0]=1.0f;  clr[1]=1.0f;  clr[2]=1.0f;
pfLPointColor(lpoint, clr);   /* Define the color of the light sources */

/* Define direction vector */
pfLPointShape(lpoint, PFLP_OMNIDIRECTIONAL, 0.0, 0.0, 0.0);

pos[0]=0.0f;  pos[1]=0.0f;   pos[2]=0.1f;
for(i=0; i<20; i++)
{
    pfLPointPos(lpoint, i, pos);   /* define the lights position */
    pos[2] += 0.1;
}
......

The problem with this program is that the light points do not appear in
the scene. What am I doing wrong? 

Do I have to switch the light points on using pfLightOn or something similar
like with pfLight sources ?

I'd wellcome any help.

Vassilis
email: ukrsefe@prl.philips.co.uk





From guest  Fri May 20 09:47:05 1994
From: jrohlf@tubes (John Rohlf)
Message-Id: <9305201645.AA01301@tubes.asd.sgi.com>
Subject: Re: pfLightPoint use
To: guest (Vassilis Seferidis)
Date: Thu, 20 May 93 9:45:31 PDT
Cc: info-performer@sgi.sgi.com
In-Reply-To: <22144.9404070909@prsun11b.prl.philips.co.uk>; from "Vassilis Seferidis" at Apr 7, 94 10:09 am
X-Mailer: ELM [version 2.3 PL8]
Status: OR

> 
> 
> Hi all,
> 
> I want to create several visible light sources using the pfLightPoint 
> related functions. According to the manual pages the following part of
> my program should create several light points distributed along the z axis.
> 
> .......
> pfLightPoint *lpoint;
> pfVec3 clr, pos;
> 
> lpoint = pfNewLPoint(20);     /* Define 20 light points */
> pfLPointSize(lpoint, 2.0f);   /* Define the size for each one */
> 
> clr[0]=1.0f;  clr[1]=1.0f;  clr[2]=1.0f;
> pfLPointColor(lpoint, clr);   /* Define the color of the light sources */
> 
> /* Define direction vector */
> pfLPointShape(lpoint, PFLP_OMNIDIRECTIONAL, 0.0, 0.0, 0.0);
> 
> pos[0]=0.0f;  pos[1]=0.0f;   pos[2]=0.1f;
> for(i=0; i<20; i++)
> {
>     pfLPointPos(lpoint, i, pos);   /* define the lights position */
>     pos[2] += 0.1;
> }
> ......
> 
> The problem with this program is that the light points do not appear in
> the scene. What am I doing wrong? 
> 
> Do I have to switch the light points on using pfLightOn or something similar
> like with pfLight sources ?
> 
> I'd wellcome any help.


	pfLightPoints ignore lighting (pfLightOn, pfLightSource).
It looks like you are using 1.0/1.1 but if you are using 1.2 you need
to specify the alpha. If you don't then you're likely to get 0 alpha
which will result in fully transparent light points. 






From guest  Thu Feb  3 10:21:28 1994
From: "Craig Phillips" <giraffe.asd.sgi.com!sgi.sgi.com!uu6.psi.com!spiffy!binky.paradigmsim.com!craig>
Message-Id: <9402031102.ZM17362@binky.paradigmsim.com>
Date: Thu, 3 Feb 1994 11:02:36 -0600
X-Mailer: Z-Mail (3.0B.0 25aug93 MediaMail)
To: info-performer@sgi.sgi.com
Subject: light points
Cc: vick@binky.paradigmsim.com, vega@spiffy.paradigmsim.com
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Status: OR

there is no api for getting the number of lights in a pfLightPoint.
I haven't tried pfGetNumChildren, but that doesn't seem like it
should work.

Also, the lightpoint is created specifing the maximum number of lights.
there is nothing in the man page about adding, deleting or turning off
a light point.  whats the condition that makes a light active or inactive?



-- 


__________________________________________________
Craig Phillips  Paradigm Simulation Inc.
craig@paradigmsim.com	214-960-2301
__________________________________________________







