There is definately something wrong with either...

There is definately something wrong with either the getLocalToVworld() method or the ASE file loader, you can get the absolute position of an object from its bounding sphere’s center but if you try to get the original translation transform of the geometry made in the 3D modeller, even when the nodes are live from root to the most bottom child all the transforms are at identity, this causes me alot of problems because i use the center of the bounding sphere as my position so if the position has been updated and set the translation of a transformGroup (the correct way aswell) instead of staying in the position its translating from (0, 0, 0) to the where ever the bouding sphere’s center is which is not correct. for example one of the geometry in my app its bounding sphere’s center is

(2.1570811, 20.593824, -18.71343)

which is the correct center when i check in 3DS Max, there for there should be a translation matrix with something like this:

(1, 0, 0, 2.1570811)
(0, 1, 0, 20.593824)
(0, 0, 1, -18.71343)
(0, 0, 0, 1)

some where in the tree but i can’t find it in any node, i’ve even tried messing around with the flags of the AseFile object and still the same all node’s transform matrices at identity. I’ve read all simillar post’s with simillar problems and tried the solutions but still the same problem, am i not getting something here i just dont get it

“Feck”, i found out what the problem was now, i never created the geometry someone on the net did, when i checked it out the file in 3DS Max all the object’s local co-ordinate systems where not centered to the object’s center, they where all at the worlds origin so i adjusted the all the objects pivot points to the object’s center and everything is fine now thats been doing in me for ages, feck ill make the geometry myself from now on lol.

Sorry for pointing the blame on Xith3D :-/ case closed.

What I will suggest in this case is to dump your scene after loading to Xith3D into XML (there should be a reader/writer for it in Xith-tk project), and then inspect the scenegraph. This will explain a lot I think.

Yuri