Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: File format documentation  (Read 2713 times)

yetanotherpeter

  • Newbie
  • *
  • Posts: 7
    • View Profile
File format documentation
« on: March 17, 2009, 03:45:37 pm »

Dear All,


Is this description from 2003 still valid:
http://www.anim8or.com/resources/an8_format.txt

Suggestion for other resources, when trying to write converters?


Regards,
Peter
Logged

Dreadkb

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Re: File format documentation
« Reply #1 on: March 17, 2009, 05:44:27 pm »

As far as I know, yes, that article is very valid. While I haven't written any scripts, I do use text modification inside my .an8 files quite often. At first glace I can't see anything that seems out of date when it's talking about file specs or syntax.
Logged

Claude

  • Full Member
  • ***
  • Posts: 244
    • View Profile
Re: File format documentation
« Reply #2 on: March 17, 2009, 06:52:52 pm »

We are now at version 0.97,so there's been some changes.

After a quick look,I noticed that there's nothing about painted weight
and floatkey should read like this:

<floatkey> ::= floatkey { <$int> <$float> <$float> <$float>
                                        <$string>  <$float>}

    <$int> is the frame number for this key.
    <$float> is the angle value.
    <$float> <$float> 2 factors defining the cubic interpolation curve.
    <$string> is a string used to modify the behavior of this knot.
                     C:corner S:smooth T:step or threshold
    <$float> another angle value if T:step or threshold is used.

There's probably a few more.
Claude
Logged

Raxx

  • Administrator
  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: File format documentation
« Reply #3 on: March 17, 2009, 07:30:14 pm »

Depending on how you're trying to write the converter, maybe texel's LibAn8 C++ library could help?
Logged

yetanotherpeter

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: File format documentation
« Reply #4 on: March 17, 2009, 11:30:30 pm »

Thanks for the hints and pointers so far. I was aiming for Python or Lua, but I can read C++, so the LibAn8 source will be a valuable reference.
Logged

texel

  • Jr. Member
  • **
  • Posts: 80
    • View Profile
Re: File format documentation
« Reply #5 on: March 18, 2009, 03:28:58 pm »

I have also made a simple description of the .an8 file format before the official first spec was available.
It is far from beeing complete and there is maybe some errors but maybe it could help at beginning.
You can also find informations in the forum history (don't forget to search in the old forum "Original")

http://texel3d.free.fr/opengl/an8_en.htm
Logged