Advertisement

Quake .md2 files query

Started by May 18, 2001 05:37 AM
1 comment, last by Eight 23 years, 8 months ago
I've been programming a small .md2 loader (which I intend to use in a tiny opengl project) but I think something may be amiss. I'm loading the vertex details etc. from the first frame in the file, but the scale value seems strange to me. Can anyone give me a rough idea of what this value usually is? I'm getting -1610612736 for the x scale, 1610612736 for the y scale and 1073741824 for the z scale. I think everything is being loaded correctly since the frame name is being extracted fine. Any ideas? Many thanks. E Edited by - Eight on May 18, 2001 6:40:36 AM
Looks like u read badly some values... Maybe it s ''int'' instead of ''float'', or maybe it''s binary data and u are trying to read text... look for md2 specifications...
Advertisement
Fek.

I''ve just spent ages double checking everything, and it turns out my loading code was fine. But when I was writing out the results to the screen I told printf to format the scale as an integer.

Whoops.

This topic is closed to new replies.

Advertisement