.spr animations - frame offsets?

samcruise

First time out of the vault
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
 
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.
 
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
 
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.
 
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.
 
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?
 
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.
 
Back
Top