Hi

you can do this in a way similar to shadows
for this you can use prebaked texture of light cone shape in section 
perpendicular to axis
knowing cone angle and position you can set up transformation matrix to 
calculate texture coords to mentioned prebaked light spot texture (kind of 
projective texturing) when drawing geometry

i dont know if it is doable with osg::TexMat, osg::TexGen and fixed pipeline 
blending, but surely doable with shaders and uniforms

Cheers.

02.04.2013, 09:59, "Daniel Schmid" <daniel.sch...@swiss-simtec.ch>:
> Hi all
>
> I have a number of modeled lightcones that simulate the illumination area of 
> spotlights in my scene. These lightcones allow me to render lightshafts very 
> nicely.
>
> Now I want to render the impact of the light on the lit geometry, known as 
> lightmap. imagine a street lamp and the floor area beeing lit.
>
> I couldn't find any good documentation about rendering lightmaps. An 
> important note, some lights may move, so rendering is on a per frame basis, 
> no pre-baked lightmap.
>
> Anybody has some more experience?
>
> Thank you!
>
> Cheers,
> Daniel
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53406#53406
>
> _______________________________________________
> 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