Hi Gordon, here change the line 99 in Program.cpp into this: _geometryVerticesOut(1), _geometryInputType(GL_TRIANGLES),
or with other words just set the _geometryVerticesOut to 1 instead of 0. It should be 0 per definition, however this does produce warnings. Changing to 1 doesn't break any functionality and also works fine. If one would like to use the geometry shaders she/he had to change this value in any case. Hence 0, my opinion is, that 0 shouldn't and wouldn't be used at all. Best regards, Art --- Gordon Tomlinson <[EMAIL PROTECTED]> schrieb: > Thanks for the reply Art > > Yep where not using geometry shaders > > > __________________________________________________________ > Gordon Tomlinson > > Email : [EMAIL PROTECTED] > YIM/AIM : gordon3dBrit > MSN IM : [EMAIL PROTECTED] > Website : www.vis-sim.com www.gordontomlinson.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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Art Tevs > Sent: Monday, March 24, 2008 6:03 PM > To: OpenSceneGraph Users > Subject: Re: [osg-users] Warning on Add shader to > the scene > > Hi Gordon, Mike, > > as I have posted already before (however my patch > was not accepted ;-( , > this warning comes from the geometry shader > implementation. I do not > remember the line correctly, but you have to change > only one value in the > constructor of the Program.cpp > > There is one geometry shader value is set to 0, I > think the number of output > premitives. I know this is the specification, > however if you do not use the > geom shaders this does produce the warning. Just a > change to any positive > value do remove the warning and do not produce any > errors during the > rendering. > > I'll check the changings of the osg installed on my > machine, and can provide > you with more specified information. On the machine, > I am writing from, I do > not have osg installed. > > > Best regards, > Art > > > > --- Mike Weiblen <[EMAIL PROTECTED]> schrieb: > > > dude, where's your repro? > > -- mew > > > > > > On Fri, Mar 21, 2008 at 12:37 PM, Gordon Tomlinson > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi Y'all > > > > > > Ok I know this question is a little nefarious, > > > > > > As we continue our testing and porting to OSG > > 2.3.x we getting the > > > following when ever we add out shaders to the > > scene > > > > > > Warning: detected OpenGL error 'invalid value' > > after RenderBin::draw(,) > > > (in ...\src\osgUtil\RenderStage.cpp > > RenderStage::drawInner ) > > > > > > > > > We only get this once after we add to the scene, > > the shaders appear to be > > > working fine, no compile errors etc. if we > remove > > and then re add again we > > > get one warning again, > > > > > > > > > Any pointers would be appreciated, sorry theres > > not much info, ( problem > > > does no show on OSG 1.2 ) > > > > > > Cards 8800 and Quadro 4500 > > > > > > > > > > > > > > > > > > > > > > > > Best Regards > > > > > > > > > > > > Gordon > > > > > > > > > __________________________________________________________ > > > Gordon Tomlinson > > > Email : gordon.tomlinson @ overwatch.com > > > YIM/AIM: Gordon3dBrit > > > MSN IM : Gordon3dBrit @ 3dSceneGraph.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 > > > > > > _______________________________________________ > > > osg-users mailing list > > > [email protected] > > > > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > > > > > > > > > -- > > Mike Weiblen -- Austin Texas USA -- http://mew.cx/ > > > _______________________________________________ > > osg-users mailing list > > [email protected] > > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > > > E-Mails jetzt auf Ihrem Handy. > www.yahoo.de/go > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

