Hi JS,

I think draw instanced is only supported on the G9x onwards, so Geforce
8x00, 9x00 and the new 2x0 series.

Robert.

On Sat, Apr 4, 2009 at 1:01 PM, Jean-Sébastien Guay <
[email protected]> wrote:

> Hi all,
>
> I have a GeForce 7900GTX at home, and out of curiosity I wanted to try out
> the osgdrawinstanced example. The first time I ran it I got:
>
> glLinkProgram "" FAILED
> Program "" infolog:
> Vertex info
> -----------
> 0(6) : warning C7532: global variable gl_InstanceID requires "#version 130"
> or later
> 0(6) : warning C7011: implicit cast from "int" to "float"
> 0(6) : warning C1059: non constant expression in initialization
> 0(10) : warning C7011: implicit cast from "int" to "float"
> 0(6) : error C5108: unknown semantics "INSTANCEID" specified for
> "gl_InstanceID"
>
> OK, so it looks like the draw instanced extension is at least supported in
> my GL driver, and the first warning at the top is easy enough to fix, and I
> thought that would fix the error (unknown semantics) too, so I added
> #version 130 to the top of the shader. Re-running, I got:
>
> glLinkProgram "" FAILED
> Program "" infolog:
> Vertex info
> -----------
> 0(19) : warning C7533: global variable gl_ModelViewProjectionMatrix is
> deprecated after version 120
> 0(19) : warning C7533: global variable gl_Vertex is deprecated after
> version 120
> 0(7) : error C5108: unknown semantics "INSTANCEID" specified for
> "gl_InstanceID"
>
> So the error is still there. (on a side note, cool, it's the first time I
> see the GLSL 1.3 / OpenGL 3.0 deprecation warnings :-) )
>
> Does anyone know what would cause this? Is the draw instanced extension
> just not supported for 7xxx class cards? I have a 9800GTX+ at work so I'll
> try there, but I was wondering.
>
> Thanks in advance,
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> 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

Reply via email to