Hi Michael,

can you show the code calling the TSG and assigning the vertex attributes?
Usually you will have to to a high vertex attribute like 7 or 8, since the lower numbers are mapped to the fixed function pipeline attributes.
I can check my code when I'm on my development machine again.
Which version of osg are you using?

Cheers
Sebastain
I've researched deeper into my normal maps not working after fixing those shader errors that have been reported under OS X, and found out that in my pass1VS ( http://goo.gl/sT7m7n ) Tangent attribute is always (0, 0, 0). I get it from osgUtil::TangentSpaceGenerator.
Any clues?
Thanks.


2014-06-26 17:51 GMT+07:00 Sebastian Messerschmidt <[email protected] <mailto:[email protected]>>:

    Hi Michael,

    The shader code seems indeed to be faulty and I found the errors
    generated quite appropriate. Maybe your driver in the Linux is
    quite sloppy and uses some extensions. Nvidia for instance allows
    all sort of non-standard functions ( hlsl saturate etc.)
    I usually use ATI Shader Analyzer. It seems to stick to the GLSL
    specifications very tightly [1].
    Unfortunately I'm on vacation and don't have my developer laptop
    with me, so I cannot check directly.

    [1]
    
http://developer.amd.com/tools-and-sdks/graphics-development/gpu-tools/gpu-shaderanalyzer/#download


    Cheers
    Sebastian
    _______________________________________________
    osg-users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to