[osg-users] More lights in scene!

Trajce Nikolov NICK trajce.nikolov.nick at gmail.com
Sun Oct 23 12:32:21 PDT 2016

Hi Nickolai,

this is the topic that I am still learning ... Do a search for Forward+.
Here is some opensource OSG implementation: http://openig.compro.net ....
the source is here: https://github.com/CCSI-CSSI/MuseOpenIG .. Look there
for the ForwardPlus plugin.

Short story, without digging into the details of F+ itself, you encode your
light attributes (color, direction, range ..) into float texture (or
TextureBufferObject) and in your shaders you unpack the light attributes
from these and perform your lighting. This way you are not limited to the
OpenGL constructs for lights.

It is really advanced topic but interesting as well indeed ...


On Sun, Oct 23, 2016 at 9:12 PM, Nickolai Medvedev <raizel.dev at yandex.ru>

> Hi, community!
> I have a question: how i can create more than 8 lights in scene. Need new
> shader-based light system? If so, how i can make these?
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69119#69119
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

trajce nikolov nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161023/00d3e28a/attachment-0003.htm>

More information about the osg-users mailing list