Re: [osg-users] Many light0 in the same scene ?

2008-11-03 Thread Sukender
Hi, About the openGL limitation of 8 lights: I recently coded a small and simple light sources manager. Its goal is to simply switch on the most important light sources of the current RenderStage. By most important, I mean that each source has a priority you can define (depending on the

[osg-users] Many light0 in the same scene ?

2008-10-24 Thread Kévin FAURE
Hi everyone, I have a problem with light. Later, my scene should be consist of a multitude of planetary system each lit by a light, and for this reason that I would have several light0. I have also seen the project osgmanylights but this method doesn't suit me. For now, I have done a

Re: [osg-users] Many light0 in the same scene ?

2008-10-24 Thread Robert Osfield
HI Kevin, RIght now the way to do multiple lights is to use the OpenGL hardware lights GL_LIGHT0... GL_LIGHT7, must this is limited just one entry per light per RenderStage. To scale up to more lights than 8 then you have use tricks with multiple RenderStage. This topics is rather complex and