Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
gt;> > >> Gordon > >> > >> __ > >> Gordon Tomlinson > >> Email : gtomlinson @ overwatch.textron.com > >> > >> > >> -Original Message- > >> From: [EMAIL PRO

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
n, Gordon пишет: >> Doubtful really as lines don't have back faces.. >> >> Gordon >> >> __ >> Gordon Tomlinson >> Email : gtomlinson @ overwatch.textron.com >> >> >> -Original Message- >> From: [EMAIL PROTECTED] [

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
y, September 11, 2008 9:20 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] painting plane > > Hello > > This technic working fine for poligons, but is it possible to make this trick > to lines? I need exactly two lines, not three as in triangle. > > I trying in such w

Re: [osg-users] painting plane

2008-09-11 Thread Tomlinson, Gordon
Sent: Thursday, September 11, 2008 9:20 AM To: OpenSceneGraph Users Subject: Re: [osg-users] painting plane Hello This technic working fine for poligons, but is it possible to make this trick to lines? I need exactly two lines, not three as in triangle. I trying in such way group->

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
Hi Ilia, face culling only works on polygons. Robert. On Thu, Sep 11, 2008 at 2:20 PM, Korolyov Ilia <[EMAIL PROTECTED]> wrote: > Hello > > This technic working fine for poligons, but is it possible to make this > trick to lines? I need exactly two lines, not three as in triangle. > > I trying i

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello This technic working fine for poligons, but is it possible to make this trick to lines? I need exactly two lines, not three as in triangle. I trying in such way group->addChild( geode_with_poligons ); group->addChild( geode_with_lines ); group->getOrCreateStateSet()->setMode( GL_CULL_FACE,

Re: [osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello, Robert Thanks so much - it really helps Ilia В Чтв, 11/09/2008 в 11:38 +0100, Robert Osfield пишет: > Hi Ilia, > > 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(o

Re: [osg-users] painting plane

2008-09-11 Thread Robert Osfield
Hi Ilia, 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

[osg-users] painting plane

2008-09-11 Thread Korolyov Ilia
Hello 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? Th