Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UV Unwrapping in Blender 2.59
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#18
RE: UV Unwrapping in Blender 2.59

(10-17-2011, 06:08 PM)Your Computer Wrote: Blender 2.59 does not export the mesh names into COLLADA node names. Without the mesh having such a name, the engine won't be able to attach the body to the mesh. Go to http://wiki.frictionalgames.com/hpl2/thi...blender_25 and read the part on how to manually add names to your mesh in the .dae file.


Ok, following its directions
Exporting of object names is also not currently supported in Blender 2.5. This may cause some issues when creating your own entities from your custom models. When attaching a body to your model in the Model Editor of Amnesia and the object doesn't have a name, the game will not be able to properly attach the model to the body. This may result in half of the model located at the exact center of the map, while another part having been properly attached to the model's body. The current workaround is to edit the .dae file and manually add names to your meshes. Under <library_visual_scenes>, each mesh from your model will be represented by a node tag. Simply edit the node tag by adding a name attribute with the value being the object's desired name.

For example:
<node id="Cube" type="NODE" name="Cube">
There are also issues with armatures, but full armature export support is scheduled for Blender 2.6.

It wasn't specific if whether I should do it to each Mesh. So I just did it only to the Cylinder.
Spoiler below!
<library_visual_scenes>
    <visual_scene id="Scene" name="Scene">
      <node id="Point_001" type="NODE">
        <translate sid="location">-4.399333 2.299943 5.216357</translate>
        <rotate sid="rotationZ">0 0 1 0</rotate>
        <rotate sid="rotationY">0 1 0 0</rotate>
        <rotate sid="rotationX">1 0 0 0</rotate>
        <scale sid="scale">1 1 1</scale>
        <instance_light url="#Point_001-light"/>
      </node>
      <node id="Point" type="NODE">
        <translate sid="location">-2.845705 -4.287921 5.216357</translate>
        <rotate sid="rotationZ">0 0 1 0</rotate>
        <rotate sid="rotationY">0 1 0 0</rotate>
        <rotate sid="rotationX">1 0 0 0</rotate>
        <scale sid="scale">1 1 1</scale>
        <instance_light url="#Point-light"/>
      </node>
      <node id="Cylinder" type="NODE" name="StoneCup">
        <translate sid="location">0 0 0</translate>
        <rotate sid="rotationZ">0 0 1 0</rotate>
        <rotate sid="rotationY">0 1 0 0</rotate>
        <rotate sid="rotationX">1 0 0 0</rotate>
        <scale sid="scale">0.075 0.075 0.075</scale>
        <instance_geometry url="#Cylinder-mesh">
          <bind_material>
            <technique_common>
              <instance_material symbol="StoneCup1" target="#StoneCup-material">
                <bind_vertex_input semantic="UVTex" input_semantic="TEXCOORD" input_set="0"/>
              </instance_material>
            </technique_common>
          </bind_material>
        </instance_geometry>
      </node>
      <node id="Lamp" type="NODE">
        <translate sid="location">4.076245 1.005454 5.903862</translate>
        <rotate sid="rotationZ">0 0 1 106.9363</rotate>
        <rotate sid="rotationY">0 1 0 3.163707</rotate>
        <rotate sid="rotationX">1 0 0 37.26105</rotate>
        <scale sid="scale">1 1 1</scale>
        <instance_light url="#Lamp-light"/>
      </node>
      <node id="Camera" type="NODE">
        <translate sid="location">7.481132 -6.50764 7.075274</translate>
        <rotate sid="rotationZ">0 0 1 46.69194</rotate>
        <rotate sid="rotationY">0 1 0 0.6197679</rotate>
        <rotate sid="rotationX">1 0 0 63.55929</rotate>
        <scale sid="scale">1 1 1</scale>
        <instance_camera url="#Camera-camera"/>
      </node>
    </visual_scene>
  </library_visual_scenes>


It does not make the name "StoneCup" appear in the nametag for the Model.
[Image: stonecupproblem2.png]

What am I still messing up on? Sad

10-17-2011, 06:51 PM
Find


Messages In This Thread
UV Unwrapping in Blender 2.59 - by Rapture - 10-16-2011, 04:47 AM
RE: UV Unwrapping in Blender 2.59 - by eliasfrost - 10-16-2011, 12:07 PM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-16-2011, 03:07 PM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-16-2011, 04:10 PM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-17-2011, 04:27 AM
RE: UV Unwrapping in Blender 2.59 - by Acies - 10-17-2011, 04:41 AM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-17-2011, 06:26 AM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-17-2011, 03:24 PM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-17-2011, 05:48 PM
RE: UV Unwrapping in Blender 2.59 - by Acies - 10-17-2011, 06:08 PM
RE: UV Unwrapping in Blender 2.59 - by Rapture - 10-17-2011, 06:51 PM
RE: UV Unwrapping in Blender 2.59 - by eliasfrost - 10-17-2011, 07:27 PM



Users browsing this thread: 3 Guest(s)