.spr animations - frame offsets?

Discussion in 'Fallout Tactics Modding' started by samcruise, Jul 28, 2011.

  1. samcruise

    samcruise First time out of the vault

    4
    Jul 28, 2011
    Hello all. New to the forum and looking for some technical advice.

    I have recently bought FOT and have extracted the data within the character .spr files to use in a hobby java project. So far so good, I can read the individual zars and display all the layers correctly. However, when playing back the frames of a particular animation sequence, it is clear that the frames are not all centered correctly, resulting in noticeable jerks. The collections do all specify frame offsets (as can be seen in redviewer) - but applying these does not seem to cure the problem (makes it worse in some instances.

    Obviously, I'm missing something somewhere. Can anyone help?

    With thanks in advance.

    samcruise
     
  2. jarekfall

    jarekfall It Wandered In From the Wastes
    Modder

    156
    Dec 27, 2007
    Did you use RedViewer or Dak's version of RedViewer or Sprite Creator?
    Sprite Creator displays frames and layers correctly.
    In a few sprites there are bugs and frames have incorrect offsets relative to the beginning of the sprite coordinate system.
     
  3. samcruise

    samcruise First time out of the vault

    4
    Jul 28, 2011
    Hi jarekfall, thanks for taking the time to help. I downloaded your sprite creator program and can see the problem - my image positions are wrong - most of them out by 1 or 2 pixels or even more compared to your programs reported values.

    Can i ask where you are getting your positions from? Did you go through the sprites manually to correct them?

    Cheers,

    samcruise
     
  4. jarekfall

    jarekfall It Wandered In From the Wastes
    Modder

    156
    Dec 27, 2007
    Hi samcruise!

    Sprite Creator nor I didn't modify the values of the frame or layer offsets. The values are stored in sprite files and they were generated by the program during process of clipping of renders produced by applications such as 3D Studio Max during process of rendering of 3D models.
     
  5. samcruise

    samcruise First time out of the vault

    4
    Jul 28, 2011
    I did extract the values as part of the sprite file but something seems to have gone wrong somewhere. Oh well, I'll think on it a bit further.
     
  6. samcruise

    samcruise First time out of the vault

    4
    Jul 28, 2011
    Well, I got that problem sorted.

    I am working from the file format description as given with the source code to spr2gif, which seems to have a few inconsistencies. Is there a more up-to-date document somewhere?
     
  7. jarekfall

    jarekfall It Wandered In From the Wastes
    Modder

    156
    Dec 27, 2007
    I assume you mean FT sprite format description. You may ask me questions if you need help with the format. There's no other document.