Re: [osg-users] Warning on Add shader to the scene

2008-03-31 Thread Gordon Tomlinson
I have not hat the chance to check this due to pressures at work 
And my home PC blew up so I cannot get to check this right now

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Weiblen
Sent: Monday, March 31, 2008 12:03 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Warning on Add shader to the scene

Hi Gordon,
does this fix your error?
-- mew


On Tue, Mar 25, 2008 at 12:29 PM, Mike Weiblen <[EMAIL PROTECTED]>
wrote:
> ah, ok I do remember that thread.  And you're saying this is the 
> symptom  associated that setting?
>
>  If so, then the situation is a driver incorrectly reporting invalid  
> value on a valid but unused value.  I guess it's not too offensive to  
> compensate by tweaking the unused value to avoid the complaint.
>
>  Gordon, if that is the issue, could you try changing the ctor  
> initialization value of _geometryVerticesOut from 0 to 1  
> (src/osg/Program.cpp @ line 99).  See how that works, and send to  
> osg-submissions as appropriate.
>
>  cheers
>  -- mew
>
>

--
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
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


Re: [osg-users] Warning on Add shader to the scene

2008-03-31 Thread Mike Weiblen
Hi Gordon,
does this fix your error?
-- mew


On Tue, Mar 25, 2008 at 12:29 PM, Mike Weiblen
<[EMAIL PROTECTED]> wrote:
> ah, ok I do remember that thread.  And you're saying this is the symptom
>  associated that setting?
>
>  If so, then the situation is a driver incorrectly reporting invalid
>  value on a valid but unused value.  I guess it's not too offensive to
>  compensate by tweaking the unused value to avoid the complaint.
>
>  Gordon, if that is the issue, could you try changing the ctor
>  initialization value of _geometryVerticesOut from 0 to 1
>  (src/osg/Program.cpp @ line 99).  See how that works, and send to
>  osg-submissions as appropriate.
>
>  cheers
>  -- mew
>
>

-- 
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Warning on Add shader to the scene

2008-03-25 Thread Mike Weiblen
ah, ok I do remember that thread.  And you're saying this is the symptom
associated that setting?

If so, then the situation is a driver incorrectly reporting invalid
value on a valid but unused value.  I guess it's not too offensive to
compensate by tweaking the unused value to avoid the complaint.

Gordon, if that is the issue, could you try changing the ctor
initialization value of _geometryVerticesOut from 0 to 1
(src/osg/Program.cpp @ line 99).  See how that works, and send to
osg-submissions as appropriate.

cheers
-- mew



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Art Tevs
> Sent: Monday, March 24, 2008 5: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
> > >  osg-users@lists.openscenegraph.org
> > >
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> > >
> > >
> >
> >
> >
> > --
> > Mike Weiblen -- Austin Texas USA -- http://mew.cx/
> > ___
> > osg-users mailing list
> > osg-users@lists.openscenegraph.org
> >
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-
> openscenegraph.org
> >
> 
> 
> 
>   E-Mails jetzt auf Ihrem Handy.
> www.yahoo.de/go
> ___
> 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


Re: [osg-users] Warning on Add shader to the scene

2008-03-25 Thread Art Tevs
Hi Robert,

yes, I saw the specifications and in deed 0 is the
default value.

I also think that this is a driver bug. However I have
the same warning with different driver versions (older
and newer one). Maybe the nVidia guys just overseen
it.

One solution would be just to set this value to 1. I
haven't encountered any issues using it like this.
Other (maybe more elegant) solution would be not to
set this value at all if no geometry shaders are used.
However this is not so easy with the current structure
of the osg's shader implementation code, I think. 
 

It would be cool if somebody could post some comments
on this: i.e. if one have this warning and what
happens if one change the default value to non zero
one ;-)


Best regards,
Art


--- Robert Osfield <[EMAIL PROTECTED]> schrieb:

> HI Art,
> 
> Thanks for the explanation.  Looking at the specs
> at:
> 
>
http://www.opengl.org/registry/specs/EXT/geometry_shader4.txt
> 
> It say the default value of
> GL_GEOMETRY_VERTICES_OUT_EXT is 0, which
> by convention the OSG normally tried to honour in
> its own defaults.
> >From the above text:
> 
> GEOMETRY_VERTICES_OUT_EXT  Z+GetProgramiv  0
>   max # of
> output vertices 2.16.4-
> 
> If this setting is producing a warning then its a
> bit surprising,
> might it be a driver bug?  If changing to default of
> 1 fixes the
> warning then it'd be worth introducing, but... its
> not the OpenGL
> default value so we'd need to make a comment why the
> value is non
> default.
> 
> Robert.
> 
> On Tue, Mar 25, 2008 at 8:37 AM, Art Tevs
> <[EMAIL PROTECTED]> wrote:
> > 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
>

Re: [osg-users] Warning on Add shader to the scene

2008-03-25 Thread Robert Osfield
HI Art,

Thanks for the explanation.  Looking at the specs at:

http://www.opengl.org/registry/specs/EXT/geometry_shader4.txt

It say the default value of GL_GEOMETRY_VERTICES_OUT_EXT is 0, which
by convention the OSG normally tried to honour in its own defaults.
>From the above text:

GEOMETRY_VERTICES_OUT_EXT  Z+GetProgramiv  0   max # of
output vertices 2.16.4-

If this setting is producing a warning then its a bit surprising,
might it be a driver bug?  If changing to default of 1 fixes the
warning then it'd be worth introducing, but... its not the OpenGL
default value so we'd need to make a comment why the value is non
default.

Robert.

On Tue, Mar 25, 2008 at 8:37 AM, Art Tevs <[EMAIL PROTECTED]> wrote:
> 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 

Re: [osg-users] Warning on Add shader to the scene

2008-03-25 Thread Art Tevs
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
> > >  osg-users@lists.openscenegraph.org
> > > 
> >
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > >
> > >
> > 
> > 
> > 
> > --
> > Mike Weiblen -- Austin Texas USA -- http://mew.cx/
> 
> > ___
> > osg-users mailing list
> > osg-users@lists.openscenegraph.org
> >
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> > 
> 
> 
> 
>   E-Mails jetzt auf Ihrem Handy.
> www.yahoo.de/go
> ___
> 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
> 



  Lesen Sie Ihre E-Mails jetzt einfach von unterwegs.
www.yahoo.de/go
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Warning on Add shader to the scene

2008-03-24 Thread Gordon Tomlinson
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
> >  osg-users@lists.openscenegraph.org
> > 
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> 
> 
> 
> --
> Mike Weiblen -- Austin Texas USA -- http://mew.cx/ 
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 



  E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
___
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


Re: [osg-users] Warning on Add shader to the scene

2008-03-24 Thread Art Tevs
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
> >  osg-users@lists.openscenegraph.org
> > 
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> >
> >
> 
> 
> 
> -- 
> Mike Weiblen -- Austin Texas USA -- http://mew.cx/
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 



  E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Warning on Add shader to the scene

2008-03-22 Thread Mike Weiblen
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
>  osg-users@lists.openscenegraph.org
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



-- 
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Warning on Add shader to the scene

2008-03-21 Thread Gordon Tomlinson
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org