Hi Petr,
I would like to see handling functions for bone positions like the rotating functions.
Thanks
Michael
Printable View
Hi Petr,
I would like to see handling functions for bone positions like the rotating functions.
Thanks
Michael
Hi Mike,
I added it on wish list.
I could be used for "dropped jaw" cartoonish animation well :)
Bye,
Petr
I reached a stop during my b3D conversion development. My B3D test models are full will bone position animation.
Ok,
I will have a look at it now.
TBGL_m15PosBone( model, bone, 1, 0, 0 ) would mean all vertices shifted by 1, 0, 0 from their original position?
Thanks,
Petr
The positioning of the bone is absolute but the vertices move by the difference newpos-oldpos.
A TBGL_m15MoveBone would mean positioning of the bone is relative and the movement of the vertices also relative to their current position.
So something as simple as
BoneVertex(n).x += 1
BoneVertex(n).y += 2
BoneVertex(n).z += 3
for TBGL_m15PosBone( model, bone, 1, 2, 3 )
If bone vertex is at 0, 0, 0 it will be after 2 calls at 2, 4, 6, right ?
just want to understand it well, it can be developed in seconds.
Petr
No,
not for TBGL_m15PosBone( model, bone, 1, 2, 3 )
[code=thinbasic]
function TBGL_m15PosBone( model, bone, newXpos , newYpos , newZpos )
BoneVertex(n).x += newXpos - BoneCurrentAncor.x
BoneVertex(n).y += newYpos - BoneCurrentAncor.y
BoneVertex(n).z += newZpos - BoneCurrentAncor.z
'Handle child bones and their vertices as well
BoneCurrentAncor.x = newXpos
BoneCurrentAncor.y = newXpos
BoneCurrentAncor.z = newXpos
end function
function TBGL_m15MoveBone( model, bone, diffXpos , diffYpos , diffZpos )
BoneVertex(n).x += diffXpos
BoneVertex(n).y += diffYpos
BoneVertex(n).z += diffZpos
'Handle child bones and their vertices as well
BoneCurrentAncor.x += diffXpos
BoneCurrentAncor.y += diffXpos
BoneCurrentAncor.z += diffXpos
end function
[/code]
So what I said would be valid only for TBGL_m15MovBone, as TBGL_m15PosBone would not do anythin in second call, as anchor would be on the place already.
Thanks,
Petr
Yes, exactly
Perfect,
thanks a lot. Now I can start coding.
I am considering some internal recoding of bone system,
to get more speed.
Thanks,
Petr