I got a little further today with my first 3-D file loader. Figured I'd post
this here so others could copy it and ask similar questions too :-) I'm
opening up a DOF file in binary as you said to do, reading in 4 bytes at a time
and am finding lots of the GOB1's, VERT's, etc., as shown on your site,
scattered throughout the file. I'd like to try and get a nothing but a list of
triangle vertices loaded for starters. Strange thing though, when doing this
with the Ferrari file, I find on only 33 GOB1's, with 33 VERT's. These
indicate the beginning of a list of vertices, right?
If so, when I hit the first GOB1 and VERT, I check the next 4-byte chunk
(after VERT), reading it in as a long integer. This gives the number of
vertices coming up. Then, if I start reading in data as floats, I'm getting
one vertex at a time from there on out (until some other GOB1 or something
similar is hit), right?
Problem is, I'm seeing numbers that range from 1*10^-33 to 1*10^+23 at first
glance. I'll try loading them as different data types. What approximate range
of values should I be seeing here?
Thanks,
Todd Wasson
---
Performance Simulations
Drag Racing and Top Speed Prediction
Software
http://www.racesimcentral.net/