[osg-users] Lightning

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Thu Apr 13 00:01:45 PDT 2017


Hi Latha,


> Hi,
> I am working on 'Lighting' to blink lights on a sphere by making osg::StateAttribute ON and OFF ,its working fine.But i am
> not able to make that sphere itself as light souce(means from sphere light is not diffusing,just it is blinking),how to apply different light properties.

If you need the Sphere to be a self-illuminated geometry you need to set 
the emissive-material properties (osg::Material. Alternatively you might 
want to check osgSim::LightPoint.

Cheers
Sebastian
>
> Thank you!
>
> Cheers,
> Latha
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70758#70758
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list