Hi Nikhil (assuming this is your first name),

i tried to figure out what are the properties of light that are to be set so 
that
the light is visible on the space(3d)  along  with the surface(this is default).
but didn't go far.

Sounds like you want to render volumetric lighting / participating media (light shafts visible when there's dust or fog or smoke in the air and light passes through a window or something like that). Unfortunately real time rendering doesn't support this effect directly as some raytracing techniques do, you have to use some hacks.

So to answer your question none of the properties of OpenGL lights / materials (which OpenSceneGraph wraps) will give you the effect you want. Search the web for the terms given above ("volumetric lighting", "light shafts", one other term that may help is "god rays") and you should get some hints on how to do these effects with texture tricks.

You could also check out osgOcean (osgocean.googlecode.com) as it has a god rays effect implemented, it's used for underwater rendering but might be useful to you if you can generalize it.

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to