Forum

User posts Enzo Poeta
18 August 2017 19:13
Sorry ! Im sending the version generated by export…
18 August 2017 15:40
Its a try to port this APP https://www.youtube.com/watch?v=LiCwnfhgiXM
18 August 2017 15:06
Hi Will !

I'm sending the project with the assets and a sample video of the animation I'm trying to play. (Generated from a java application that works with the same file format as the blend4web application is reading).


Thanks for the help !
17 August 2017 22:22
Hi Folks !

Im trying to build a sort of mocap player with blend4web… My joint rotation code is something like this :

function rotateBone(rig,boneName,eulerX,eulerY,eulerZ)
{
  var boneInfo= m_armat.get_bone_tsr_rel(rig, boneName);
  var boneInfoInv= m_tsr.invert(m_armat.get_bone_tsr_rel(rig, boneName),m_tsr.create());
  var boneQuat = m_tsr.get_quat_view(boneInfo);
  var boneQuatInv = m_tsr.get_quat_view(boneInfoInv);


  var rotQuatBone=m_util.euler_to_quat([eulerY,eulerX,eulerZ],m_quat.create());
  var finalQuatBone=m_quat.multiply(boneQuatInv,boneQuat,m_quat.create());
  m_quat.multiply(rotQuatBone ,finalQuatBone,finalQuatBone);

  m_tsr.set_quat(finalQuatBone, boneInfo);
  m_armat.set_bone_tsr_rel(rig, boneName,boneInfo);

}


the result of this function applied to the set of the joints gives me something that resemble the original animation …. but its seems that a miss one step in the transformations … can you guys help me to figure what im doing wrong ?
Thanks
Enzo
16 December 2015 20:56
Hi guys ! Great work with blend4web !

There is a way to limit the framerate of an application?

Thanks
Enzo