[osg-users] Texture2DArray Internal Texture Format (OSG3.4.0)
Robert Osfield
robert.osfield at gmail.com
Thu Apr 19 06:31:56 PDT 2018
Hi Tim,
It looks like some modern OpenGL drivers don't like the number of
components of texture being used as the internal texture format so
plugins that use this approach end up causing a problem. In 3.6.0 we
did fix a few places where this was happen, off the top of my head I
don't recall if the bmp plugin was amongst those fixed. W.r.t not
being able to attach files to the forum posts, this will be the case
for new posters, it's a mechanism required to prevent spammers from
abusing the forum.
More pressing an issue is what cause problems when you tried 3.6.0
rc2? I fixed all the issues that were reported for the final 3.6.0,
there is chance that the issue you say has been fixed, but as you
don't provide any inform there is no way for me to know. Could you
please explain the issue you saw.
Robert.
On 4 April 2018 at 11:35, Tim Whowantstoknow <Tare.noN at web.de> wrote:
> Hi,
>
> since I couldn't get 3.6.0 rc2 to run, I have been working with 3.4.0, so I'm not sure if this is happening in the current version.
>
> I have been trying out Texture2DArrays and have loaded in 16 images, set them to a Texture2Array object and tried to display it. When calling frame the first time, I got some warnings:
> "Warning: Texture2DArray::applyTexImage2DArray_subload(..) given image do have wrong dimension or internal format."
> None of the loaded images is displayed as a texture.
> I have debugged into the OSG Code to look for the error, and it turns out, that upon loading (a bmp file for every texture, all have the same width and height), the internal texture format of the images is set to 3 (which is GL_RGB at some point of the code), but the Texture2DArray internal format is 6407, which is also GL_RGB.
>
> I went on to set the image internal texture format to GL_RGB (which in this case is 6407) and now it works.
>
> I'd add a minimal working example, but the forum seems to not let me do that, so sorry about that.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73253#73253
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list