Hi Giavelli,

As far I know, the best ways to overcome light source number limitation are either :

- Do /n/ multipass rendering with additive blending as many time you need to render your /n*MAX_LIGHT_NUM /lights Be careful to framebuffer precision.
or
- Do all your light computations with full precision in shaders passing all your light data (positions, orientations, etc ...) as parameters.

Regards,

Pascal.

giavelli maxime wrote:
Hi,
        
I realize a simulation of a Highway and when I press a key on the keyboard it 
changes from day to night.
But I can not have a very realistic rendering at the lights of my car, for now 
just using multi-texturing.
I want to have a light source for each light, but I know that thez number of light source is limited.
Are there sub modules OpenSceneGraph lights for my effects?

Or has someone already thought about it?
...
Thank you very much!

Cheers,
giavelli

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13756#13756





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to