pfLightPoint use

New Message Reply Date view Thread view Subject view Author view

Vassilis Seferidis (ukrsefe++at++prl.philips.co.uk)
Thu, 7 Apr 94 10:09:29 BST


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++at++prl.philips.co.uk


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:14 PDT

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