ProvencalLeGaullois Posted December 22, 2013 Share Posted December 22, 2013 I have a problem with the size of the meshes. When I import a collada into blender I get something very small. I imported some collada files from 0ad to get a good idea of what size my meshes should have. When I export my meshes I get something really small in 0AD. Someone can give to me some tips ? Link to comment Share on other sites More sharing options...
Enrique Posted December 22, 2013 Share Posted December 22, 2013 Yes. Use the "very small" size reference that the imported.models have, but before exporting something into the game, use ctrl+a and select apply scale Link to comment Share on other sites More sharing options...
sanderd17 Posted December 22, 2013 Share Posted December 22, 2013 You can also edit the dae in a text editor, and change the unit of measurement to meters (one of the first few lines). The engine expects everything in meters, while while blender reads that unit, but exports it in some default unit. Link to comment Share on other sites More sharing options...
ProvencalLeGaullois Posted December 22, 2013 Author Share Posted December 22, 2013 (edited) Yes. Use the "very small" size reference that the imported.models have, but before exporting something into the game, use ctrl+a and select apply scaleyeah... I forgot to do ctrl+a, but that wasn't the problem, I didn't use scale and rotation, I made everything in the editor mode. Even if I do it, I got the same problemYou can also edit the dae in a text editor, and change the unit of measurement to meters (one of the first few lines). The engine expects everything in meters, while while blender reads that unit, but exports it in some default unit.I make a try, sizing a cube to 1m3 in blender, and ctrl+a, I got this in Atlas :looks like 1 meter is more like 1 «big» feet...it's not possible to upload dae file, I put everything between code balises :<?xml version="1.0" encoding="utf-8"?><COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> <asset> <contributor> <author>Blender User</author> <authoring_tool>Blender 2.69.0 runknown</authoring_tool> </contributor> <created>2013-12-22T14:54:35</created> <modified>2013-12-22T14:54:35</modified> <unit name="meter" meter="1"/> <up_axis>Z_UP</up_axis> </asset> <library_images/> <library_geometries> <geometry id="Cube_009-mesh" name="Cube.009"> <mesh> <source id="Cube_009-mesh-positions"> <float_array id="Cube_009-mesh-positions-array" count="24">-0.6430911 -0.5020006 0.001293897 -0.6430911 0.5015971 0.001293897 0.3605067 0.5015971 0.001293897 0.3605067 -0.5020006 0.001293897 -0.6430911 -0.5020006 1.004892 -0.6430911 0.5015971 1.004892 0.3605067 0.5015971 1.004892 0.3605067 -0.5020006 1.004892</float_array> <technique_common> <accessor source="#Cube_009-mesh-positions-array" count="8" stride="3"> <param name="X" type="float"/> <param name="Y" type="float"/> <param name="Z" type="float"/> </accessor> </technique_common> </source> <source id="Cube_009-mesh-normals"> <float_array id="Cube_009-mesh-normals-array" count="30">-1 0 0 0 1 0 1 0 0 0 -1 0 0 0 1 -1 0 0 0 1 0 1 0 0 0 -1 0 0 0 1</float_array> <technique_common> <accessor source="#Cube_009-mesh-normals-array" count="10" stride="3"> <param name="X" type="float"/> <param name="Y" type="float"/> <param name="Z" type="float"/> </accessor> </technique_common> </source> <source id="Cube_009-mesh-map-0"> <float_array id="Cube_009-mesh-map-0-array" count="60">0.3333747 1.24371e-4 0.3333747 0.3333747 1.24371e-4 1.24454e-4 1.24371e-4 0.3336236 0.3333747 0.3336235 1.24371e-4 0.666874 0.6666252 0.3333748 0.6666252 1.24371e-4 0.9998757 0.3333748 0.6668739 0.6668739 0.3336235 0.6668739 0.6668739 0.3336235 0.6666252 1.24371e-4 0.6666252 0.3333748 0.3333747 1.24371e-4 0.3333747 0.3333747 1.24418e-4 0.3333748 1.24371e-4 1.24454e-4 0.3333747 0.3336235 0.3333747 0.666874 1.24371e-4 0.666874 0.6666252 1.24371e-4 0.9998757 1.24371e-4 0.9998757 0.3333748 0.3336235 0.6668739 0.3336235 0.3336235 0.6668739 0.3336235 0.6666252 0.3333748 0.3333747 0.3333747 0.3333747 1.24371e-4</float_array> <technique_common> <accessor source="#Cube_009-mesh-map-0-array" count="30" stride="2"> <param name="S" type="float"/> <param name="T" type="float"/> </accessor> </technique_common> </source> <vertices id="Cube_009-mesh-vertices"> <input semantic="POSITION" source="#Cube_009-mesh-positions"/> </vertices> <polylist count="10"> <input semantic="VERTEX" source="#Cube_009-mesh-vertices" offset="0"/> <input semantic="NORMAL" source="#Cube_009-mesh-normals" offset="1"/> <input semantic="TEXCOORD" source="#Cube_009-mesh-map-0" offset="2" set="0"/> <vcount>3 3 3 3 3 3 3 3 3 3 </vcount> <p>4 0 0 5 0 1 0 0 2 5 1 3 6 1 4 1 1 5 6 2 6 7 2 7 2 2 8 7 3 9 4 3 10 3 3 11 7 4 12 6 4 13 4 4 14 5 5 15 1 5 16 0 5 17 6 6 18 2 6 19 1 6 20 7 7 21 3 7 22 2 7 23 4 8 24 0 8 25 3 8 26 6 9 27 5 9 28 4 9 29</p> </polylist> </mesh> <extra><technique profile="MAYA"><double_sided>1</double_sided></technique></extra> </geometry> </library_geometries> <library_controllers/> <library_visual_scenes> <visual_scene id="Scene" name="Scene"> <node id="Cube_010" name="Cube_010" type="NODE"> <matrix sid="transform">1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1</matrix> <instance_geometry url="#Cube_009-mesh"/> </node> </visual_scene> </library_visual_scenes> <scene> <instance_visual_scene url="#Scene"/> </scene></COLLADA> Edited December 22, 2013 by ProvencalLeGaullois Link to comment Share on other sites More sharing options...
sanderd17 Posted December 22, 2013 Share Posted December 22, 2013 meters are just game units. Our soldiers are over 2 meters in height (more something like 3m). While on the other hand, buildings are scaled down. Just to fit then all on a map.If you put the unit of measurement to meters, it should really work. Link to comment Share on other sites More sharing options...
ProvencalLeGaullois Posted December 22, 2013 Author Share Posted December 22, 2013 well, I see in blender that an imported collada isn't at scale 1 (I didn't noticed that before...) I implicitly thought it was at 1, then all my scale factors were wrong.now I can work with a "dummy" having the scale I want and just calculate a factor to get a good size in 0AD.thx everyone! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now