Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
HI Nikolay, The OSG's detection of glTexStorage2D is currently based on checking whether the function pointer is available in the driver, if it's available the OSG assumes it can be used. So perhaps the driver has the function but doesn't actually support it on the hardware you are using. Coulld you post the output to glewinfo? Could you try setting the env var OSG_GL_TEXTURE_STORAGE to OFF to tell the OSG to override the enabling of glTexStorage2D. Robert. On 17 November 2015 at 20:55, Nikolay Kasyanovwrote: > This is weird: glewinfo reports that glTexStorage2D extension is absent on > my mahine, but OSG still thinks it's there. Any ideas? > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=65667#65667 > > > > > > ___ > 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] OS X (10.9) Texture2D with hardware compression results in no texture data.
This is weird: glewinfo reports that glTexStorage2D extension is absent on my mahine, but OSG still thinks it's there. Any ideas? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65667#65667 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
I found the commit that triggered this bug: 9bb2cfd3d4e4a08628ca8c49a2e6c061fe143fb8 (check it out on OSG's github mirror at /openscenegraph/osg, I can't post urls yet, unfortunately) Bug can be easily reproduced using current master of OpenMW (/openmw/openmw on GitHub) on OS X (at least 10.10 & 10.11 are affected with Intel GPU, still not sure about other). Continuing discussion here since submission thread is not the right place for bug reports. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=65276#65276 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
I did do a diff between 3.2.1 in Texture and Texture2D, but there are so many changes it got muddy. I have a lot to do before next week, so unless someone else finds it before then, I'll just have to stick with what I have until then. Thank you all for the quick replies. David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63871#63871 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
Hi David, we faced the same issues on Mac, and my colleague found a fast work around, not the fix though. If this is with dds textures, then in ReaderWriterDDS.cpp put the following line into comment: // if (mipmap_offsets.size()0) osgImage-setMipmapLevels(mipmap_offsets); We are investigating this as time allows us, will keep this thread updated if we find something Nick On Thu, May 28, 2015 at 3:52 PM, David Guthrie dguth...@alionscience.com wrote: Hello everyone, I started upgrading delta3d to use osg 3.3.x, but I ran into a strange problem that that seems like it must be something that changed in the osg::Texture code, thought it only manifests on OS X. The texture is setting compressed mode, I think it turns on mip mapping correctly, and it ends up calling extensions-glCompressedTexSubImage2D(). The only reason I think it has to be in this code, is that I tried it with an ive file that has compressed textures. Those load straight into the image object from the ive file, and into the Texture2D. I can export the textures from the ive, and read them in an image tool, and I can load the ive and works fine on Windows. In case you get the wrong idea, I have an application with many different file formats and both extrernal and embedded textures. Not a single compressed image we have will load properly on OS X, but they all work on in OSG 3.2.1. Any thoughts would be appreciated! Thanks, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63862#63862 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
Hey, You are a lifesaver. I took it out in the ive plugin as well, and between the two, all my textures came back. Thank you! Cheers, David -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63867#63867 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
Thanks Robert, these are good hints ! Nick On Thu, May 28, 2015 at 5:32 PM, Robert Osfield robert.osfi...@gmail.com wrote: Hi Guys, On 28 May 2015 at 16:17, David Guthrie dguth...@alionscience.com wrote: You are a lifesaver. I took it out in the ive plugin as well, and between the two, all my textures came back. Reading this exchange, it sounds like provision of mipmaps is somehow broken with OSX OSG svn/trunk. It would be worth looking at changes to OpenSceneGraph/src/osg/Image.cpp, Texture.cpp and Texture2D.cpp. It could be that a GL extension is broken under OSX, or something on the OSG side that isn't working as intended, with the error only being picked up under OSX. I'm afraid I don't have an hunch as to what it might be though. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org -- trajce nikolov nick ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] OS X (10.9) Texture2D with hardware compression results in no texture data.
Hi Guys, On 28 May 2015 at 16:17, David Guthrie dguth...@alionscience.com wrote: You are a lifesaver. I took it out in the ive plugin as well, and between the two, all my textures came back. Reading this exchange, it sounds like provision of mipmaps is somehow broken with OSX OSG svn/trunk. It would be worth looking at changes to OpenSceneGraph/src/osg/Image.cpp, Texture.cpp and Texture2D.cpp. It could be that a GL extension is broken under OSX, or something on the OSG side that isn't working as intended, with the error only being picked up under OSX. I'm afraid I don't have an hunch as to what it might be though. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org