<div dir="ltr"><div><div><div>Hi Scott,<br><br></div><div>Thanks for the follow up. <br><br>Could you post the whole modified file, this way we can avoid any possible copy and past errors.<br></div><br></div>Thanks,<br></div>Robert.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 24 September 2015 at 20:13, Davis, Timothy S CTR comnavairsyscom <span dir="ltr"><<a href="mailto:timothy.s.davis.ctr@navy.mil" target="_blank">timothy.s.davis.ctr@navy.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry. It keeps trying to encrypt the message.<br>
<br>
Robert<br>
<br>
While continuing to build a model that results in the problem, I discovered something I didn't see before. The IVE model had an incorrect number of mipmap levels (it had 8) for a 32x32 texture. It makes sense that glTexStorage2D would generate INVALID_OPERATION in this case. Rebuilding the model from a source with uncompressed textures and recompressing the textures worked. The original model was converted with a much older version of OSG, pre OSG 3 for sure.<br>
<br>
So I was barking up the wrong tree:)<br>
<br>
That addresses my specific issue without needing a change to OSG 3.4.0. However, I still think it is worth trying for the OSX case.<br>
<br>
<br>
Trajce<br>
<br>
In osg/Texture.cpp, function applyTexImage2D(), find the line:<br>
<br>
useTexStorage &= sizedInternalFormat != 0;<br>
<br>
add the following after the line:<br>
<br>
if ( useTexStorage && compressed_image && numMipmapLevels > 2 )<br>
{<br>
numMipmapLevels -= 2;<br>
}<br>
<br>
This is clearly not production quality as it assumes block size is 4 and complete mipmaps to 1x1. It should be enough to check the approach. You may have to set GL_TEXTURE_MAX_LEVEL if the driver thinks the texture is incomplete, but I didn't have that issue.<br>
<br>
Scott<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>