[osg-users] Problems with setInfluenceMap to RigGeometry

2011-11-01 Thread Benjamin Gehmlich
Hi, I want to make a Geometry to a RigGeometry and give them an InfluenceMap. At first I create the InfluenceMap. Code: struct AddHelperBone : public osg::NodeVisitor { ::osgAnimation::Skeleton* Skeleton; AddHelperBone() : osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CH

Re: [osg-users] Problems with setInfluenceMap to RigGeometry

2011-11-01 Thread Benjamin Gehmlich
Hi, I have two pictures where you can see the difference. RigGeometry (normal) [Image: http://s7.directupload.net/images/01/temp/iahp6pb2.png ] (http://s7.directupload.net/file/d/2695/iahp6pb2_png.htm) RigGeometry with InfluenceMap [Image: http://s1.directupload.net/images/01/temp/rrmcy

Re: [osg-users] Problems with setInfluenceMap to RigGeometry

2011-11-03 Thread PP CG
Hi Benjamin, for me it the images look like you have not set each bones Inverse Matrix in Skeleton Space,and I can't find it in your code. But I also cannot find any bone transform in your code. Could it be the case, that the transformation matrix in Skeleton Space is not of the bone is not i

Re: [osg-users] Problems with setInfluenceMap to RigGeometry

2011-11-03 Thread Benjamin Gehmlich
Hallo Peter, the skelet and animation are in a BVH-file. I want to get the skelet from there with the AddHelperBone struct. I am not sure what informations are in the skeleton. Bevor I wrote the fileinput functions for the obj-file, I used the normal filereader with stl and obj. The problem wa