Hi,

i belive i solved this issue.

I had to use: 
        osg::Uniform* uniform = stateSet->getOrCreateUniform("matrices[0]",
                                osg::Uniform::FLOAT_MAT4);

instead of:

        osg::Uniform* uniform = stateSet->getOrCreateUniform("matrices",
                                osg::Uniform::FLOAT_MAT4);



I found this post from 2006 which discussed this issue while searching for 
opengl uniform array documentation.

http://www.mail-archive.com//msg00140.html

I'm using libopenscenegraph-dev - 2.8.1-1  (Debian Lenny)

Cheers,
Johannes

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





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

Reply via email to