Re: [osg-users] NVidia 275-series Driver Bug

2011-09-15 Thread Robert Osfield
Hi All, I'm investigating the NVidia Uniform array issue, there have been some suggested changes that address these but only copy and pasted into emails. Could you send me the complete modified files so I can review them as this will avoid any possible ambiguities. Cheers, Robert.

Re: [osg-users] NVidia 275-series Driver Bug

2011-09-15 Thread Robert Osfield
Hi Jeremy, On Wed, Jul 27, 2011 at 2:56 PM, Jeremy Moles jer...@emperorlinux.com wrote: On Wed, 2011-07-27 at 12:06 +0400, Sergey Polischuk wrote: Hi Jeremy You can try to append [] to array uniform name string when create osg::Uniform, mb this helps. It won't because it seems that

Re: [osg-users] NVidia 275-series Driver Bug

2011-09-15 Thread Robert Osfield
Hi All, I'm note yet clear on exactly where the problems are stemming form with the NVidia 275+ drivers but with the assumption that the glGetActiveUniform is appending a [..] and the the matching glGetUniformLocation can handle the name without the [..] appended I've written some code to do the

Re: [osg-users] NVidia 275-series Driver Bug

2011-09-15 Thread Jeremy Moles
On Thu, 2011-09-15 at 12:00 +0100, Robert Osfield wrote: Hi All, I'm note yet clear on exactly where the problems are stemming form with the NVidia 275+ drivers but with the assumption that the glGetActiveUniform is appending a [..] and the the matching glGetUniformLocation can handle the

Re: [osg-users] NVidia 275-series Driver Bug

2011-08-05 Thread John Ivar Haugland
FYI, I just tested the new NVIDIA beta driver 280.19. Same problem as with 275 series. John Ivar On Wed, Jul 27, 2011 at 3:56 PM, Jeremy Moles jer...@emperorlinux.comwrote: On Wed, 2011-07-27 at 12:06 +0400, Sergey Polischuk wrote: Hi Jeremy You can try to append [] to array uniform name

Re: [osg-users] NVidia 275-series Driver Bug

2011-08-05 Thread Sergey Polischuk
Hi, John For me it works on new drivers if i append "[0]" to uniform array name, BUT it wont work on old driver anymore with this change. So for now in our apps we have to use two uniforms for each uniform array, one original and another with "[0]" appended so stuff actually works on both old and

Re: [osg-users] NVidia 275-series Driver Bug

2011-08-05 Thread Glenn Waldron
I worked around this issue with an ArrayUniform helper class. The code is here: https://github.com/gwaldron/osgearth/blob/master/src/osgEarth/ShaderUtils (and .cpp) Glenn Waldron / Pelican Mapping / @glennwaldron 2011/8/5 Sergey Polischuk pol...@yandex.ru Hi, John For me it works on new

Re: [osg-users] NVidia 275-series Driver Bug

2011-08-05 Thread John Ivar Haugland
Thanks, I followed the suggestion from Michael Platings ( http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg46081.html) to add the lines for (GLsizei j = 0; j maxLen name[j]; ++j) { if (!isalnum(name[j]) name[j] != '_') { name[j] = '\0'; break; } }

Re: [osg-users] NVidia 275-series Driver Bug

2011-07-27 Thread Sergey Polischuk
Hi Jeremy You can try to append [] to array uniform name string when create osg::Uniform, mb this helps. 27.07.2011, 09:51, Jeremy Moles jer...@emperorlinux.com: On Thu, 2011-06-16 at 14:08 -0400, Jeremy Moles wrote:  Hello folks! Anyone here using the 275 series of NVidia drivers?  

Re: [osg-users] NVidia 275-series Driver Bug

2011-07-27 Thread Jeremy Moles
On Wed, 2011-07-27 at 12:06 +0400, Sergey Polischuk wrote: Hi Jeremy You can try to append [] to array uniform name string when create osg::Uniform, mb this helps. It won't because it seems that internally OSG changes: Color ...to... Color[0] ...even, on non-array

Re: [osg-users] NVidia 275-series Driver Bug

2011-07-27 Thread Glenn Waldron
I posted some comments on this issue as well: http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg46003.html My point was that the spec implies that BOTH naming methods are legal, and thus OSG should support them both IMHO. Glenn Waldron / Pelican Mapping / @glennwaldron On

Re: [osg-users] NVidia 275-series Driver Bug

2011-07-26 Thread Jeremy Moles
On Thu, 2011-06-16 at 14:08 -0400, Jeremy Moles wrote: Hello folks! Anyone here using the 275 series of NVidia drivers? (Doesn't matter what OS, the bug is on Linux and Windows for me...) It appears that this driver doesn't understand GLSL arrays anymore. At least, not like it used to.

Re: [osg-users] NVidia 275-series Driver Bug

2011-06-16 Thread Farshid Lashkari
It's not just you. I tested on a Quadro 4000, driver 275.36, Windows 7 64-bit and it does not work for me either. I also tried on a GeForce 8800, driver 270.61, Windows XP and it worked correctly. Cheers, Farshid On Thu, Jun 16, 2011 at 11:08 AM, Jeremy Moles jer...@emperorlinux.comwrote:

Re: [osg-users] NVidia 275-series Driver Bug

2011-06-16 Thread Tomlinson, Gordon
- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jeremy Moles Sent: Thursday, June 16, 2011 2:08 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] NVidia 275-series Driver Bug Hello folks! Anyone here using the 275

Re: [osg-users] NVidia 275-series Driver Bug

2011-06-16 Thread Farshid Lashkari
On Thu, Jun 16, 2011 at 11:26 AM, Tomlinson, Gordon gtomlin...@overwatch.textron.com wrote: A mentioned before the 275 official releases are very broken and should be avoided at all costs Not quite sure why NVIDIA released them , as they should have failed the QA process easily Thanks,

Re: [osg-users] NVidia 275-series Driver Bug

2011-06-16 Thread Tomlinson, Gordon
...@lists.openscenegraph.org] On Behalf Of Farshid Lashkari Sent: Thursday, June 16, 2011 2:27 PM To: OpenSceneGraph Users Subject: Re: [osg-users] NVidia 275-series Driver Bug It's not just you. I tested on a Quadro 4000, driver 275.36, Windows 7 64-bit and it does not work for me either. I also