Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: File format documentation  (Read 8422 times)

yetanotherpeter

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

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, 01: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

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: File format documentation
« Reply #2 on: March 17, 2009, 02: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: 1482
    • View Profile
Re: File format documentation
« Reply #3 on: March 17, 2009, 03: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, 07: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: 81
    • View Profile
Re: File format documentation
« Reply #5 on: March 18, 2009, 11:28:58 am »

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