In TBAG, ActiveVRML/DirectAnimation, and Fran, I embedded lights into geometry, which allows them to be spatially transformed.  Looking in Graphics.FieldTrip.Geometry3, you'll see a comment placeholder for lights.

OpenGL is a temporary implementation convenience, so I wouldn't design the API around it.  If more lights get added to a geometry than the current implementation can handle, we can document the limitation and drop some of them at run-time.

  - Conal

On Thu, Dec 11, 2008 at 12:52 PM, David Sankel <camior@gmail.com> wrote:
Hello All,

I'm working on adding lighting to the FieldTrip library (ticket http://trac.haskell.org/FieldTrip/ticket/16). I have some initial data types here:

http://hpaste.org/12975

I'm thinking that the GContext will keep track of which of the 8 opengl lights are used and enable them if they are.

I was wondering what ideas folks have had with lighting. Some issues that are on my mind:
Thanks,

David

_______________________________________________
FieldTrip mailing list
FieldTrip@haskell.org
http://www.haskell.org/mailman/listinfo/fieldtrip