[osg-users] [build] using 3Ds Model in osgFX::BumpMapping and the Texture UV Coords for diffuse are not loaded

Jannik Heller scrawl at baseoftrash.de
Mon Nov 9 17:25:22 PST 2015


Hi Tobias,

The texture matrix is a fixed function state that may not have an effect when a shader is used. To get the desired effect, the shader code needs to get the texture matrix via gl_TextureMatrix built in variable and then multiply the texture coordinates with it. I presume the osgFX::BumpMapping shader is not doing this.

The osgFX::BumpMapping shader appears to be written in ARB assembly rather than GLSL, so it's a bit difficult to modify it. You might be better off writing your own shader in GLSL.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65592#65592








More information about the osg-users mailing list