Questions regarding Performer 1.2

New Message Reply Date view Thread view Subject view Author view

Hiroshi Kawai (kawai++at++square.co.jp)
Tue, 11 Jul 1995 01:40:40 +0900


Hello,

I am not a subscriber to this mailing list, but I do have some questions
which I was hoping I might get help on.

To begin, I am using Performer 1.2 on an Onyx VTX running IRIX 5.3. My
first question involves setting a light's diffuse properties. Under
OpenGL, one has the ability to set a light's diffuse attributes using the
glLight*() functions. However, there does not seem to be an equivalent
among the pfLight*() routines. I have read the Japanese version of the
Performer Programming Guide, but still I cannot find an appropriate
function. It seems that the pfLightColor() routine performs this
functionality, but is this correct?

Secondly, I am a bit confused about the relationship between a LightModel
object and a Light. My understanding is that a LightModel incorporates
global hardware parameters for lighting and that a Light is a manifestation
of such with the addition of other parameters, for example, position or
direction. So, in a Performer application, all instantiated Lights will
use the hardware lighting parameters set by the most recent pfLightModel()
routine. My question is, is my interpretation of the relationship between
LightModels and Lights correct? Also, is there a way to specify several
different LightModels and associate them to different individual Lights?

Finally, I was wondering if I might get information on how to obtain source
code which includes detailed examples of using the lighting routines. I
have tried in vain to set an object's diffuse attributes successfully by
modifying and extending sample code provided with the Programming Guide.
Therefore, I was hoping I may be able to get an example of Performer code
involving extensive use of the lighting routines. Any information would be
greatly appreciated.

                                                Thanks in advance,

                                                Hiroshi Kawai

-----
Hiroshi Kawai
Square Co., Ltd.
Programmer


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

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