At the moment I used instanceTo() method in nodePath to create a set of human skeleton, I just wonder is it possible to to get the x,y,z coordinate added up instead of coordinate of their own.
for example:
if i create 3 node using instanceTo()
nodeA(0,0,0)
nodeB(1,1,1)
nodeC(2,2,2)
where nodeA is instance of nodeB and nodeB is instance of nodeC
is it possible to retirive node C as (3,3,3)?
Not entirely sure what you mean, but if you reparent them to each other, it should work. (Not sure if that won’t give any circular dependencies that breaks instancing, though.)
You can call nodePath.getPos(render) to get the position relative to render, the top of the scene graph; this is “world coordinates”.
This is not the same thing as the position of the node on the screen, though, since that depends on the camera and the lens properties. If you really want to compute the actual position on screen, it’s more complicated. Try this thread for more information.
Kingasd am I getting right you’re reading on the fly BVH files into panda?
if it is so why don’t you import 'em in Blender and then export as .egg animations instead to make an importer inside your python script?