Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Pecoraro, Alexander N
Seems other people have had the same issue as me: http://forum.openscenegraph.org/viewtopic.php?t=7287 Are there any plans to address the issue in an upcoming release? Alex From: Pecoraro, Alexander N Sent: Wednesday, October 26, 2011 2:17 PM To: OpenSceneGraph Users Subject: RE: EXTERNAL: Re:

Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Pecoraro, Alexander N
I think I figured it out. When it links my program for some reason it uses the names InstancePositions[0] and InstanceScales[0] when it builds its _uniformInfoMap in the function linkeProgram(). It obtains the names of the uniforms that my program uses via glGetActiveUniform() (see snippet

Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Paul Martz
On 10/26/2011 3:16 PM, Pecoraro, Alexander N wrote: The value of name that is returned is InstancePositions[0] and InstanceScales[0] instead of just InstancePositions and InstanceScales (without the square

Re: [osg-users] EXTERNAL: Re: Draw Elements Instanced Shader Help

2011-10-26 Thread Jean-Sébastien Guay
Hi Paul and Alexander, This has been discussed extensively recently, but I don't recall the resolution. If you can't find any information by searching the archives, then you might try posting a new thread (as it has nothing to do with draw instanced). It might already be fixed on trunk, so if