I am working on this virtual reality project and part of the specifications/requirements is to draw/render an arbitrary object in the VE that has its parameters set in an external file.
Ideally, the external file would be a text file that contains the vertices of the model, a house for example. When the text file is read by the program, the vertices are used to draw the house on the screen. However, I’ve been reading material and 3D drawings/models are not that simple to hold in a text file. It’s stored in an OBJ, MESH, 3DS, etc. but not a text file. So I would just like to know if this has already been done, loading information from a file of these type and then drawing the object in an OpenGL environment. If so, where do I start?
OBJ and ASCII Mesh are text files, or to be more precise ASCII files. So, the idea is to use one of them. Furthermore, if you want to import drawing from CAD applications (because you have mentioned a house) then DXF is more suitable for that.
But my humble opinion is that COLLADA is the best for the purpose, although it an XML based file format (not plain text).
For all of these there are plenty free file loaders