How to get angle from Object3d

Started by Eloy, September 07, 2012, 11:57:42 AM

Previous topic - Next topic

Eloy

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

EgonOlsen

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.