www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Eloy on September 07, 2012, 11:57:42 am

Title: How to get angle from Object3d
Post by: Eloy 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
Title: Re: How to get angle from Object3d
Post by: EgonOlsen 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.