making some progress; .fbx file translator

This is a discussion on making some progress; .fbx file translator within the C Programming forums, part of the General Programming Boards category; I haven't been writing much for the past week with work but I have been making some progress and started ...

making some progress; .fbx file translator

I haven't been writing much for the past week with work but I have been making some progress and started writing this program. it still has errors like memory leaks and it's only half complete (I need to re-organize it also), it only pulls out the polygon offsets in the file. I still have to pull out the vertices and translate the offsets to memory locations, pull out other stuff like vertex vectors, and either write the data to a binary file in a personal format, display the mesh or even do both. I think I really like linked lists, they seem to be really great for dealing with data structures that have an unknown size. This program loads the file into memory and then searches for data, instead of searching for data in the file, I figured it would be a lot faster that way. It looks messy now, it's just a scratch pad at the moment, i should start getting it organized before i go much further. any way here's the code so far

i like polly better than poly. I was looking at that, i was going to change it to < 4 and add something to dump memory and exit the function if ctr2 hits 5 in the while statement since the whole thing will run out if it never hits a negative number, and it also needs something to check that the correct file type has been opened, there's a lot of bugs in there.

Nobody's going to trust a program about polygons with the word polygon (and the abbreviation poly) misspelled. But whatever.
And now that I look at it again, if(ctr2 < 4 || ctr2 > 5) means if (ctr2 != 4 && ctr2 != 5), which is probably not what you meant.