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

Reply via email to