Hi
I would recommend you have a good read of the OpenGl docs on how it handles
lighting as OSG is a straight pass through to OpenGL
For instance http://www.opengl.org/sdk/docs/man/xhtml/glLight.xml
http://glprogramming.com/red/chapter05.html
As to color you can have any color you in like by using any mixture Red,
Green Blue 0,0,0 is black 1.0, 1.0.10 is white, 0.5,0.5,0.5 is a gray
1.0,0.0,0.0 is red etc
Note many things affect the final color you see, the lighting model, shading
model, colors of the vertices, textures applied to polygons, materials
applied etc
__
Gordon Tomlinson
www.photographybyGordon.com
www.gordontomlinson.com
www.vis-sim.com
"Self defence is not a function of learning tricksĀ but is a function of how
quickly and intensely one can arouse one's instinct for survival"
-Master Tambo Tetsura
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of daniele
argiolas
Sent: Monday, March 21, 2011 12:03 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Light intensity and color
Hi,
when I put a light in my scene I notice that I can set position, direction,
attenuation and diffuse, specular and ambient components.
The first problem is, how can I set intensity of light? My light with this
basic setting is to much strong.
The second problem concerns color light. Why I can't set intermediate colors
but only primary colors?
thank you very much
daniele
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37765#37765
___
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