Whether you decide to write a PLY or OBJ file parser, it would be nice to have the vertex normals stored in the file so you dont need to generate them on load. I should also point out that the supplied Stanford models dont store any vertex normals. Writing a parser for the basic OBJ features is fairly simple and OBJ files are natively supported by most 3D modeling programs. I decided that I would rather convert the files to the more common Wavefront OBJ format. The format itself isnt that complex to write a parser for, but due to the format supporting custom vertex formats per file, you do need to be a bit careful. This is also where you will find many of the other common test models such as Happy Buddha, Dragon, and Lucy.Īll of these models have been scanned from real world objects so each model has data files for the original scans and data files for the final mesh reconstructed from the scans. The first step is to get a hold of the model from the Stanford 3D Scanning Repository website. I wouldnt call it a great solution, but it worked pretty well for getting something up and running to play with.
0 Comments
Leave a Reply. |