view info from .ASE

Hi all,
i need to load camera (view) info from ASE. I’have modified the ase loader and got the required.
Problem arise when i use ‘lookAt’ function to setup my view: i get a wrong positioning…
Which are the correction i’have to do from 3dsmax (ase) coord space to xith, so my camera gets back to the right position & fov ?

Thanks all !

It’s a too stupid question or my bad english / bad wording makes it non-understandable ?

I don’t quite understand what you are trying to do. 3DMAX does use a different coordinate system to Xith3D - but I found that simply rotating my models 90 degrees fixed it.

Will.

Using the ase loader, i load the model. Then, i setup the view using the camera position fov ecc.

  1. Y seems to be negated: instead of having a my point of view over the scene, it’s under, looking at the ‘basement’. If i invert sign of y it’s ok…

  2. As you point out, it’s rotated 90 degree, but if simply rotate the loaded model, the final transformation is completely wrong: it get rotated on two axis, it looks to me like a combination of rotations

  3. FoV is different: as a rule of thumb, dividing the value of the readed FoV by 2.0 makes it correct.

As of now i’have solved my problems placing two non-rendereable marker on the scene and using their translation for the lookAt, but i don’t like so much this solution, and still i don’t know why Y is negated, and if division by two of the FoV is correct…

(Ah, i forgot, keep in mind that im a total newbie :slight_smile: )

in 3ds max’s coordinate system the z-axis is always the up/down axis, so basicaly the y and z-axis are swaped.
hope that helps.