[TUTORIAL] Creating a new unit from scratch

Discussion in 'Mod Discussions' started by Killerkiwijuice, January 3, 2016.

  1. Anonemous2

    Anonemous2 New Member

    Messages:
    17
    Likes Received:
    23
    Having Scale and placement issues in-game, changing scale factor has no effect and the model is centered. Any idea whats up?

    Attached Files:

    • hmmm.PNG
      hmmm.PNG
      File size:
      288.4 KB
      Views:
      12
  2. Killerkiwijuice

    Killerkiwijuice Post Master General

    Messages:
    3,875
    Likes Received:
    3,616
    It's probably a conversion issue. Try importing the fbx and check if the scale is still correct. You could also try using the blender addon for .papa models https://forums.planetaryannihilatio...-importer-exporter-for-papa-files-v0-5.47964/

    It's really been a while since i've encountered that bug so i'm not sure if i ever found the issue.
  3. acesoyster

    acesoyster Active Member

    Messages:
    110
    Likes Received:
    154
    On the occasions where I played with unit models, I found it made sense to manually build the UV map so that faces that logically connected stayed together better, and minimising the number of split edges. You can also start doing neat stuff like overlapping faces that require identical textures that way. Once I’d built that, I’d use rudimentary per-face colouring in 3DS and export the unwrapped colouring to draw textures over.

    With regards to the scale issue, if I remember correctly 3DS scaled meshes don’t have any effect on the exported fbx, and you must reset them with some button I found once in the scale and transform toolbar. I used to have huge problems with this until I just started making sure my models were to scale from the start. I wish I could get a screenshot but I don’t have 3DS installed anymore.
  4. Anonemous2

    Anonemous2 New Member

    Messages:
    17
    Likes Received:
    23
    I can manually fix scale, but I still have another issue:
    The bones seem distorted in game: when a unit dies, the model flips onto its side. Turrets spin around a undefined point. And rotational axis have to be changed (z>y, etc.) from the default despite the fact that the model uses identical bones.
    Models can be downloaded from here:
    https://github.com/Anonemous2/New_Faction_1.git
  5. Anonemous2

    Anonemous2 New Member

    Messages:
    17
    Likes Received:
    23
    Ignoring the problems I previously had, does anyone know how to create animation files for units, or animate textures (such as tank treads)?
  6. Killerkiwijuice

    Killerkiwijuice Post Master General

    Messages:
    3,875
    Likes Received:
    3,616
    It's been a really long time since I did this, but you need to make the animation in an FBX file using some 3d modelling software. You load the model with its bones into the scene, then use IK chains to create animations on the timeline.

    This video is really similar to how i did it:


    As for the scrolling texture, look at the tank unit files. You'll see a field for scrolling textures and a number that designates which percentage of the texture file will be used to scroll. Eg., 0.75 means the last 1/4 of the texture is scrolled.
    Last edited: August 26, 2019 at 2:34 AM

Share This Page