[osg-users] SubloadCallback on iOS: missing texture.

Alessandro Terenzi a.terenzi at gmail.com
Wed Apr 27 13:57:45 PDT 2011


Thank you very much Stephan,
I tried to modify my code as suggested: the warning disappeared and my
subload callback is called.

Tomorrow I'll try with the latest tagged release (2.9.13) and let you know.

Alessandro

On Wed, Apr 27, 2011 at 9:34 PM, Stephan Huber <ratzfatz at digitalmind.de>wrote:

> Hi,
>
> Am 27.04.11 09:36, schrieb Alessandro Terenzi:
> > what do you think about the sample code I've sent? Is there something
> wrong
> > with it?
>
> Your example failed to work on my mac with a recent osg-version.
> Unfortunately I hadn't more time to investige the issue further.
>
> I had to change
>
> glTexImage2D(GL_TEXTURE_2D, 0,
>
> osg::Image::computeNumComponents(_image->getInternalTextureFormat()),
>                     (int)m_POT_width,
>                     (int)m_POT_height,
>                     0,
>                     _image->getPixelFormat(),
>                     _image->getDataType(),
>                    0
>                    );
>
> to
> glTexImage2D(
>                GL_TEXTURE_2D,
>                0,
>                 _image->getInternalTextureFormat(),
>                (int)m_POT_width,
>                (int)m_POT_height,
>                0,
>                _image->getPixelFormat(),
>                _image->getDataType(),
>                 _image->data()
>        );
>
> to get rid of the opengl-warning. But the subload-callback is never
> called on my end.
>
>
> Perhaps i find some time this weekend to do some more tests.
>
> cheers,
> Stephan
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20110427/6074e3de/attachment-0004.htm>


More information about the osg-users mailing list