Jump to content

need help with the size ingame and into blender.


ProvencalLeGaullois
 Share

Recommended Posts

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

yeah... 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 problem

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.

I make a try, sizing a cube to 1m3 in blender, and ctrl+a, I got this in Atlas :

post-15829-0-87043100-1387742478_thumb.p

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 by ProvencalLeGaullois
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...