[osg-users] painting plane
robert.osfield at gmail.com
Thu Sep 11 03:38:41 PDT 2008
If one side of the plane should be red, and the other blue then you
could render two polygons for the plane, each with opposite winding
and colour, then use glCullFace(osg::CullFace) to cull the faces to
give the illusion of changing colour. The other technique you could
use of two sided colour in the OpenGL lighting/material model, not all
hardware/drivers supports two side lighting though.
On Thu, Sep 11, 2008 at 11:22 AM, Korolyov Ilia <ya-breeze at ya.ru> wrote:
> I need to draw a plane (more exactly two lines by three points). Problem
> is in plane color. It must depends on camera position relative
> plane side - red or blue.
> I did it with CullCallback, because it's only one way to get access to
> camera, which I can find.
> What is right way to do it?
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users