Hi Wojtek and all, I've faced another issue concerning the texture array. Using tga images instead of png produces again a GL error "invalid enumerator". I'm sure the images are correctly loaded and passed to the shader. I simply converted the working png into an equivalent tga set, and got the error. Code is attached.
Any idea on what may cause this problem? Thanks, Ricky On Fri, Mar 12, 2010 at 13:44, Riccardo Corsi <riccardo.co...@kairos3d.it>wrote: > Hi Wojtek, > > it works like a charm now! > Thank you! > Ricky > > On Fri, Mar 12, 2010 at 1:20 PM, Wojciech Lewandowski < > lewandow...@ai.com.pl> wrote: > >> Hi, >> >> I had the same issue. Its a warnig while applying texture mode. Do not >> use setTextureAttributeAndModes(). Use setTextureAttribute() instead. There >> is not such mode like GL_TEXTURE_2D_ARRAY. Texture2DArrays do not work with >> fixed pipeline. They are accessible only with shaders. >> >> Wojtek Lewandowski >> >> ----- Original Message ----- >> *From:* Riccardo Corsi <riccardo.co...@kairos3d.it> >> *To:* OpenSceneGraph Users <osg-users@lists.openscenegraph.org> >> *Sent:* Friday, March 12, 2010 1:03 PM >> *Subject:* [osg-users] texture2Darray problem >> >> Hi All, >> >> I have tried a sample application to make use of texture2Darray and >> associated sampler2DArray Uniform. >> I wrote my code based on some previous discussions on the mailing list >> archives. >> >> Unfortunately I keep on having GL errors during execution, in particular >> and "invalid enumerator" after applying the extension: >> GL_TEXTURE_2D_ARRAY_EXT 0x8C1A >> >> Attached you find the sample program producing the error. >> >> Can someone provide any hints? >> I'm on Win7 + nVidia gtx295, using osg-2.8.2 >> >> Thank you, >> Ricky >> >> ------------------------------ >> >> _______________________________________________ >> 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 >> >> >
Texture2DArray.cpp
Description: Binary data
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org