HI Lukasz, Thanks for the links. The crucial bit missing is how far back GL_RG etc. are supported, and setting GL_READ as an internal format. The is critical as we absolutely can't break backwards compatibility for older versions of OpenGL.
As for texture swizzle is already supported. see osg::Texture::setSwizzle(..), it's part of OSG-3.2. Robert. On 21 October 2013 17:16, Lukasz Izdebski <[email protected]> wrote: > Hi, > > information about GL_RED or GL_RG, > http://www.opengl.org/registry/specs/ARB/texture_rg.txt > > those format are in core profile of OpenGL > http://www.opengl.org/registry/api/GL/glcorearb.h > GL_LUMINANCE and other are deprecated in core OpenGL. > > Loading texture from for example tga format can't be used ( with out any > extra work ) to TextureArrays. > > So if someone what to only use core profile feature of OpengGL 3.0 and > higher have a problem. And must do make extra unnecessary work. > The good think is to add to CMakeList OSG_CORE_FEATURES flag which > separate compatibility profile from core profile. > I think is time for preparing OSG to using only new features on be have > comp ability with core profile. > > It is posible to replace GL_LUMINANCE with core features, and have the > same effect. > 1. Setting GL_RED as internal format. > 2. Adding Texture Param > glTexParameteri(GL_TEXTURE_…, GL_TEXTURE_SWIZZLE_R, GL_RED); > Texture swizzle must be added to OSG. > > Thank you! > > Cheers, > Lukasz > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=56914#56914 > > > > > > _______________________________________________ > osg-submissions mailing list > [email protected] > > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
