x


unity and blender

hey everyone this is a question about unity and blender, i was wandering how to get the correct scale size in unity match that of blender?

i know blenders dimensions are the actual scale size in unity, but if i use this my scale will be 0.5 which is not very good to work with. anyone know the easiest permanent solution to this

more ▼

asked May 28, 2012 at 10:40 PM

reptilebeats gravatar image

reptilebeats
1.4k 323 287 311

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

4 answers: sort voted first

Here is an excellent tutorial on exporting objects from Blender into Unity:

http://cgcookie.com/unity/2011/12/05/exporting-characters-from-blender/

It contains a lot of detail about matching the output of Blender to what is expected in Unity. The scale in Blender of 1 blender unit matches the scale in Unity of 1 meter. If you are finding that when you import an object into Unity and the scales don't match, check that you haven't applied a scale at the Blender object. Blender objects should have no rotation, scale. Their meshes should 100% describe their nature.

more ▼

answered May 28, 2012 at 10:53 PM

kolban gravatar image

kolban
2k 1 4 12

he seems to be talking about exporting, i never export i work straight from file, makes life easier.

all i need is a way to change the dimensions to 1 instead of two, obviously i can just enter edit mode and half this but i want a more permanent solution

May 28, 2012 at 11:12 PM reptilebeats

I too add my whole .blend files as assets to my Unity projects and they import directly without any previous exports. Also, changes to the .blend are picked up straight away. In blender, 1 unit there is 1 unit in Unity ... however, blender has a high level concept called an "Object" ... that has a scale and rotation applied to it. The Blender Object is not imported into Unity ... rather, the Blender mesh is. So it is important to ensure that the Blender object (in Blender) has no scale or rotation.

May 29, 2012 at 12:28 AM kolban

surely wouldn't the scale be 1,1,1. i always rotate me object in edit mode to a particular setting i made for unity.

but if you take a normal cube and import it straight into unity it will give a scale of two because the preferences are.. scale 1,1,1 and dimensions are 2,2,2... so i need to change the primitives in blender to half the size in edit mode so that the scale is still 1,1,1 but the dimensions will also be 1,1,1

so in short my scale in blender is twice the size of unity.

May 29, 2012 at 12:52 AM reptilebeats

still though no answer to a my question, the way i look at it is everything i make in blender is purely for unity and nothing else. so i want the sizes to be the same, if i use a cube in blender i must first scale it by half in edit in order to get the same dimensions as scale.

so one scale of an axis to one dimension instead of the default 1 scale two 2 dimensions which to me personally is wrong as i only work for unity

May 30, 2012 at 02:41 AM reptilebeats

This is a great discussion. The default cube in blender is a cube of side length 2 with center at the origin (0,0,0). But ... and this is the important thing ... all this says is that a cube created in Blender has a default size of length = 2. This doesn't mean that the scale in blender is twice the size of unity ... what it means is that the default mesh for a cube as created by the default cube shape object is twice the size of the default cube built in Unity.

Imagine starting with a blank canvas in Blender ... if you hand created a cube in blender of size 1 x 1 x 1 and then used in it Unity, the cube size in Unity would be 1x1x1 and hence the scale from Blender to Unity is the same.

May 29, 2012 at 01:01 AM kolban
(comments are locked)
10|3000 characters needed characters left

I think when you scall your object to: 1,1,1 (x,y,z) it gives you the good size. But maybe you want it bigger so 1,1,1 is the normal size and you can make it bigger. If the 3 numbers are the same you get a goot shape, if 1 is like5 and the others are 1 you get a really weird object.

more ▼

answered May 29, 2012 at 05:38 AM

gilian gravatar image

gilian
-5 28 20 21

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

In Blender if you resize the cube from 2x2x2 to 1x1x1, you'll have a scale of .5 x .5 x .5 Apply the transformation to the object (Ctrl + A) and you'll have a 1x1x1 Scale object with dimensions 1x1x1.

This is just the way the workflow works. You should -always- be applying transforms before export anyway (and yes, saving the file and letting unity import is the same as exporting).

1 Blender Unit = 1 Unity Unit = 1metre. 1 Default Unity Cube = 1m^3 1 Default Blender cube = 2m^3

If you're modeling a character or a weapon or anything like that, you're going to have change the size and scale of the primitives (assuming you're box modeling) anyway, very few things in the world are a 1metre perfect box/ball/monkey head.

more ▼

answered May 30, 2012 at 03:01 AM

wolflogic gravatar image

wolflogic
30 1

finally an answer i can use, can this be saved to the preferences, i only use cubes as i do a lot of objects for mobile games, that and hexagons

May 30, 2012 at 04:02 AM reptilebeats
(comments are locked)
10|3000 characters needed characters left

I found this which fixed my problem with my meshes coming into unity sideways. http://answers.unity3d.com/questions/319802/rotation-when-importing-from-blender.html

Another thing I found for scaling is when you import it into unity, click the mesh and in the 'Inspector' under the 'Model' tab, make sure the 'Scale Factor' is set to 1 (for some reason it's set to 0.01). Hope that helps, good luck.

more ▼

answered Jul 28 at 12:00 AM

rhemaloon gravatar image

rhemaloon
1 1 2 2

(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:

x7079
x1208

asked: May 28, 2012 at 10:40 PM

Seen: 5266 times

Last Updated: Jul 28 at 12:00 AM