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_boneMatrixUnif
Hi Aitor,
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("bone
ok, I just try and work!
Thank you very much!
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26664#26664
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/
And how can you update it??
I am trying to id tiwh ModelViewMatrix and ModelViewPerspectiveMatrix and I
can't.
Thank you!
Cheers,
Jaime
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=58785#58785
_
4 matches
Mail list logo