HI Daniel,

You'll need to use the osg::Material StateAttribute to set two sided lighting,
the ColorArray on the osg::Geometry won't help you here as it only supports
a single colour (as does OpenGL for vertex colours).  For info on osg::Material
its best to consult OpenGL docs of glMaterial

Robert.

On Wed, May 21, 2008 at 9:18 AM, Daniel Moos <[EMAIL PROTECTED]> wrote:
> Good morning @all
>
> I have a question about setting colors of a geometry. We have 3d-objects
> which is described by a triangle area.
> This triangle area has a color, which is set with a ColorArray and a
> ColorBinding (BIND_OVERALL)
>
> Now I want to give a inner and outer color for the triangle area. How can I
> do this?
>
> An example:
> The inside of the triangle area should be red and the outside should be
> green. See the attachement
>
> Thanks for your help...
> Have a nice day.
> Daniel
>
>
>
>
>
> _______________________________________________
> 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