views:

17

answers:

0

I want to import a 3D model into a program that uses open GL. I will use glDrawElements() so I am going to need the vertexes and indexes arrays.

The model is originally saved in a sldprt file extension but I don't think it will be hard to change it into another file format.

Anyway, I want to know what the simplest 3D file format is. And how I could extract that sort of data from it. I was thinking of doing something like opening the file as text and streaming through it until I reach the part I want, then saving that part into an array. But I don't know how to find that part.

Also, will I have to learn something about chunk based formats first?