Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 11th, 2007, 9:45 AM   #1
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
deciphering animation binary

hi there!

ive got a problem, i have to figure out how an animation file format works, its a binary format, and i have no idea how to figure out how to extract this information.

i have to write a plugin to export animation data from maya, but i cant go ahead until i know how the binary format works.

heres what i get when i open the file in a binary viewer.

00000000 .ÿ..........walk.´wV?.......€?..
00000020 ...........transition...........
00000040 ..ÍÌÌ=..€>..€?..........€?..€?..
00000060 ......latch.............333?..€?
00000080 ............tx.H...........'i~<
000000A0 4.=ÃeU=ýJ‡=Ÿã£=B|À=^.Ý=.*ù=Ñ".>"
000000C0 o.>s»'>?.6>ÒSD># R>1ì`>Å8o>Ó„}>’
000000E0 è…>».?>Â4”>êZ›>.?¢>.§©>BͰ>kó·>“
00000100 .¿>š?Æ>ÃeÍ>ë‹Ô>ò±Û>.Øâ>Cþé>l$ñ>”
00000120 Jø>›pÿ>bK.?vÞ.?zq.?Ÿ..?¢—.?¦*.?Ë
00000140 ½.?ÎP.?ãã.?÷v#?ú.'?.?*?#0.?7Ã1?;

can someone explain to me what i must do to figure out the file format?

im stumped! I dont have a clue as what to do!

i hope someone can help me out here! that would be very much appreciated!

thx!
rwm is offline   Reply With Quote
Old Jan 11th, 2007, 9:50 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
The first step would be to research what information already exists online about the particular file format you're trying to convert (you also don't mention in your post what format this is). Exporting 3D animation data is not an uncommon problem, and Maya is a popular animating package, so it's reasonable to assume that there will be some information already available on it.
Arevos is offline   Reply With Quote
Old Jan 11th, 2007, 9:57 AM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You might begin here.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 11th, 2007, 10:07 AM   #4
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
hey!

thx for the quick replies! well the file is generated by Massive - and there is NO documentation online, i only have the demo version and have to figure out how our pipeline is going to work, we will only get the commercial licence IF we get the job we need Massive for.

The demo give no documentation, its impossible to learn anything from it, so have been looking through all the files included with the demo scenes.

The only file i cant figure out is the animation binary....

No, there arent any plugins/apps online for this problem... Unfortunately...

Mmm that link was to a maya API tutorial, thats not the problem for me, its the actual binary file format thats presenting the problem-- how do i figure out how to write this format given animation data?

hope you guys can help me out!

ta!
rwm is offline   Reply With Quote
Old Jan 11th, 2007, 10:17 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
You're not going to figure out a binary file format by staring at the values. The file may have a magic number. It may have a section defining the layout of the rest of the file. To pick it apart, you will need a very small file with one or two things described. You'll need to know what the things are in order to recognize a description. Consequently, you probably need to generate a file with only one or two objects/things. Then you generate it again, with a variation. Maybe then you can see how it works, to some degree. This is not a trivial process. It's purposely made difficult. People don't want everyone ripping existing models and animations out of their products.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 11th, 2007, 10:20 AM   #6
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
jeez - its not like im doing anything wrong - im trying to write an animation exporter - thats all!

but ill try what you suggested!

thx!
rwm is offline   Reply With Quote
Old Jan 11th, 2007, 10:25 AM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
No one's accusing you of doing anything wrong. I'm telling you, from experience, what the outlook of the industry is, and how they react. I didn't give you that link as an answer. I gave you that link because the procedures, though different, apply. Everyone is always in a hurry, and often rightfully so, but if you don't take some time to think, you ainnanevahgonna get there.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jan 11th, 2007, 10:28 AM   #8
rwm
Professional Programmer
 
Join Date: Jan 2007
Location: Cape Town
Posts: 291
Rep Power: 2 rwm is on a distinguished road
like i said its not coding maya thats the problem - its the file format

oh well nevermind, the demo doesnt even let me save the animation binary....

so nothing i can do until we actually get the job or not...

thx anyway!
rwm is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linked list & binary tree questions n00b C++ 14 Nov 4th, 2006 3:24 AM
Java code to convert binary to decimal and hexadecimal to binary prince_haldir Java 1 Mar 7th, 2006 2:51 AM
Binary Ubert Other Programming Languages 8 Sep 23rd, 2005 11:09 AM
Reading Delphi Binary kcnz C# 2 Aug 7th, 2005 11:35 PM
binary compiler? lucky001101 Assembly 20 Jul 29th, 2005 2:14 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:33 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC