From: Jason Daly (jdaly++at++ist.ucf.edu)
Date: 02/20/2004 09:02:02
Every OpenGL fixed-function implementation I've seen has limited the
number of light sources active at once to 8 (the minimum number
according to the OpenGL spec). You can exceed this limit in a scene by
only having 8 lights on at once. I don't think you can do this with
pfLightSource nodes because they always affect the whole scene (no
matter where you attach them). You can do this with pfLight objects on
the pfGeoState's for the pfGeoSets (or pfGeoArrays) to be lit. As long
as you don't attach more than 8 lights to each pfGeoState, you should be
fine.
The other option is to use a vertex program (using the new
pfVertexProgram stuff). In a vertex program, you can create as many
lights as you want. Of course, each one adds more computation to do
per-vertex, and performance may suffer with too many.
Hope this helps,
--"J"
On Fri, 2004-02-20 at 07:08, Gordon Tomlinson wrote:
> HI
>
> You might be limited by Opengl which had a hard limit of 8 light
> sources not sure if this limit has changed in the latest releases
>
>
> -----Original Message-----
> From: Leonardo Massei [mailto:leonardo.massei++at++isti.cnr.it]
> Sent: 20 February 2004 10:58
> To: info-performer++at++sgi.com
> Subject: [info-performer] max lights (pfLightSource) number in Performer
>
>
> Hi,
> I've installed Performer 3.0.2 for RedHat Linux.
>
> How many pfLightSource node (lights) I can activate
> at the same time (PF_MAX_LIGHTS, ok, but in number) ?
>
> How to exceed such limit ?
>
> Many thanks
> Leonardo
----"J"
"I'm a castaway stranded in a desolate land, I can see the footprints in the virtual sand." --Neil Peart
This archive was generated by hypermail 2b29 : Fri Feb 20 2004 - 09:04:35 PST