Re: [osg-users] Texture2DArray and invalid enumerant error
Hi Chris, OSG svn/trunk + OSG-3.3.x dev series has a modification to Texture2DArray that makes sure that no modes get applied when you use setTextureAttributeAndModes() for a Texture2DArray. Robert. On 16 June 2015 at 05:51, Chris Kuliukas ch...@kuliukas.com wrote: It'd be good to resolve this, I just spent half a day tracking this issue down. I eventually dug down to the error coming after glEnable(35866) was set, which is GL_TEXTURE_2D_ARRAY_EXT, and then coming to this. If setTextureAttributeAndModes could just detect a Texture2DArray StateAttribute it could give a warning and save a lot of trouble. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64094#64094 ___ 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] Texture2DArray and invalid enumerant error
It'd be good to resolve this, I just spent half a day tracking this issue down. I eventually dug down to the error coming after glEnable(35866) was set, which is GL_TEXTURE_2D_ARRAY_EXT, and then coming to this. If setTextureAttributeAndModes could just detect a Texture2DArray StateAttribute it could give a warning and save a lot of trouble. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=64094#64094 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Texture2DArray and invalid enumerant error
Hi Glenn, Since TextureArrays are supposed to work only with programmable pipeline, there is no such GL Mode as GL_TEXTURE_2D_ARRAY. It could be considered a bug in OSG that setting this mode is attempted. Workaround: don't attach the textureArray with setTextureAttributeAndModes but with setTextureAttribute. Cheers, Wojtek From: Glenn Waldron Sent: Wednesday, July 28, 2010 3:12 AM To: OpenSceneGraph Users Subject: [osg-users] Texture2DArray and invalid enumerant error Hi, I'm using the Texture2DArray class with a VBO geometry and a shader program. I get a non-stop stream of this message: Warning: detected OpenGL error 'invalid enumerant' after applying GLMode 0x8c1a (..where 0x8c1a = TEXTURE_2D_ARRAY_EXT) The Texture2DArray (and associated sampler2Darray) is working correctly and my scene renders properly. But I'm having no luck tracking down cause of the message ... any ideas? OSG SVN trunk, Win7/VS9, GTS 250. -- Glenn Waldron : Pelican Mapping : +1.703.652.4791 ___ 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] Texture2DArray and invalid enumerant error
Bingo, problem solved. Thanks Wojtek. Glenn Waldron : Pelican Mapping : +1.703.652.4791 On Wed, Jul 28, 2010 at 4:49 AM, Wojciech Lewandowski lewandow...@ai.com.pl wrote: Hi Glenn, Since TextureArrays are supposed to work only with programmable pipeline, there is no such GL Mode as GL_TEXTURE_2D_ARRAY. It could be considered a bug in OSG that setting this mode is attempted. Workaround: don't attach the textureArray with setTextureAttributeAndModes but with setTextureAttribute. Cheers, Wojtek *From:* Glenn Waldron gwald...@gmail.com *Sent:* Wednesday, July 28, 2010 3:12 AM *To:* OpenSceneGraph Users osg-users@lists.openscenegraph.org *Subject:* [osg-users] Texture2DArray and invalid enumerant error Hi, I'm using the Texture2DArray class with a VBO geometry and a shader program. I get a non-stop stream of this message: Warning: detected OpenGL error 'invalid enumerant' after applying GLMode 0x8c1a (..where 0x8c1a = TEXTURE_2D_ARRAY_EXT) The Texture2DArray (and associated sampler2Darray) is working correctly and my scene renders properly. But I'm having no luck tracking down cause of the message ... any ideas? OSG SVN trunk, Win7/VS9, GTS 250. -- Glenn Waldron : Pelican Mapping : +1.703.652.4791 -- ___ 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 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Texture2DArray and invalid enumerant error
Hi, I'm using the Texture2DArray class with a VBO geometry and a shader program. I get a non-stop stream of this message: Warning: detected OpenGL error 'invalid enumerant' after applying GLMode 0x8c1a (..where 0x8c1a = TEXTURE_2D_ARRAY_EXT) The Texture2DArray (and associated sampler2Darray) is working correctly and my scene renders properly. But I'm having no luck tracking down cause of the message ... any ideas? OSG SVN trunk, Win7/VS9, GTS 250. -- Glenn Waldron : Pelican Mapping : +1.703.652.4791 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org