Hi,

I'm new here, but after being a long time looking at the forum the answer to my 
question, I decided to write this post.
I have the following problem. I need to pass an array of matrix to a vertex 
program. I do as follow:

Code:

osg::Matrixf boneMatrices[MAX_BONES];
Uniform *g_boneMatrixUniform = new Uniform("boneMatrices",*boneMatrices);
cylinderStateSet->addUniform(g_boneMatrixUniform);

//update
cylinderStateSet->getUniform("boneMatrices")->set(*boneMatrices);




Code:

//vertex program
uniform mat4 boneMatrices[3];


The code complie and runs ok, but in the vertex program only pick up right the 
first matrix.
What´s the problem?!

Thank you!

Cheers,
koko

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





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

Reply via email to