Author Topic: How to get angle from Object3d  (Read 956 times)

Offline Eloy

  • byte
  • *
  • Posts: 1
    • View Profile
How to get angle from Object3d
« on: September 07, 2012, 11:57:42 am »
I load object from 3ds file and want get rotation angle from object? How get it?

In Blender i set object rotation X 90 degree.

When i import 3ds from Blender i see 90 degree.


I get Rotation matrix from object always 1 0 0 0
                                                                0 1 0 0
                                                                0 0 1 0
                                                                0 0 0 1

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11970
    • View Profile
    • http://www.jpct.net
Re: How to get angle from Object3d
« Reply #1 on: September 07, 2012, 02:05:45 pm »
The importer doesn't read rotations or translations from the file, which is why the rotation matrix is always the identity matrix after loading. The rotation your are seeing might be caused by importer itself. Usually, you have to rotate imported meshes by -PI/2 around x to make them match the view in your 3d editor.