x


rotation angle between 3dsmax and unity

Hi, I am trying to mess around with rotations and i found out that the rotation angles between Unity and Max is different. Max uses Z Up and Unity uses Y Up orientation.. Althought FBX exporter already transform the orientation of Y Up for Unity, the rotation values are still wrong. For example, when the rotation value in 3dsmax is 0, 0, 0 then Unity's rotation angles becomes 270, 0, 0... Can you point me out the formula to convert the rotation angles from 3dsmax to Unity as I am writing custom scene exporter tools for Unity.

Thanks

more ▼

asked Nov 13 '10 at 06:08 PM

Thet Naing Swe gravatar image

Thet Naing Swe
811 71 74 77

(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

You have come to experience a pain I've been dabbling in for the past few months ^^ (In fact, I was in a worse shape because I had to import models from a few 3D modelling programs and all of them were totally different in their own way...). Thankfully I've found a solution which I'm pretty happy with and I hope it'll be helpful to you.

The description might be a little complicated so if you feel I'm not clear enough just message me for more.

1) After importing my models, I first create an empty GameObject.

2) Next, I make sure all the transform position and rotation of the gameobject is 0 and the scale is 1.

3) I then drag my imported model into the GameObject so that the GameObject is now the parent of the model.

4) Next, I adjust the position and rotation of the model with respect to the GameObject.

5) Once I'm happy with the now positioning and rotation, I meaningfully rename the GameObject and save the whole thing as a prefeb.

The action of saving the model in to GameObject localises any tweaking of the model's position and rotations withing the gameobject itself. From then on we can use the GameObject as if it was the actual model itself for any scaling. translation or rotation.

This is especially useful if you are importing models from more than one source.

This is important because the rotations of all your objects will go haywire if do instantiation.

more ▼

answered Nov 14 '10 at 11:03 AM

denewbie gravatar image

denewbie
757 3 3 18

it seems to be helpful.. Thanks :)

Nov 14 '10 at 04:21 PM Thet Naing Swe

Great post!!! Thanks!! :)

Sep 07 '12 at 09:33 AM trullyone
(comments are locked)
10|3000 characters needed characters left

How to handle System Units so 1m in max is 1 in Unity. and Privot Orientation so imported model faces the correct direction in unity without rotate value changed.

http://forums.mmo-studio.com/viewtopic.php?f=16&t=26

more ▼

answered Jan 19 at 04:54 PM

MMO-Studio gravatar image

MMO-Studio
1 1 1

(comments are locked)
10|3000 characters needed characters left

you are awesome thank you i been dealing with this for 14 hours

more ▼

answered Apr 16 '11 at 03:19 AM

Alejandro27 gravatar image

Alejandro27
-5

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5479
x3216
x399
x122

asked: Nov 13 '10 at 06:08 PM

Seen: 3137 times

Last Updated: Jan 19 at 04:54 PM