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 ...

Cheers,
Nick

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

> 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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



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

Reply via email to