Wednesday, April 25, 2012

MOAR Converter problems.

OK. so now I'm able to get all the right data to print to the screen.  Theoretically it should've meant smooth sailing form there. Not the case. It seems I'm having problems writing the data to the file. It could also be a problem with the data itself but I'm not entirely sure.

Originally I had been allocating structures dynamically  and writing the vert data to these structures, then writing the structures out to file. The dynamic calls were causing problems with my use of sizeof() so in order to get it just to work I hard coded a couple of things in so I can get the structures up there.  I've written this data to file and even been able to parse it on the other side in my graphics manager. I had to create the object in the graphics manager which required a bit of copy and paste work from the pyramid structures. When I compile my graphics engine I can only see half of the frigate and parts of the polys I can see are a bit off. I'm still not sure what's causing the problems. I'll have to keep debugging.

-A

No comments:

Post a Comment