🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

3D Meshes

Started by
0 comments, last by Ricardo Portugal 24 years ago
Hi! How can I use 3D Meshes with OpenGL? Thanx
Coding... Compiling... Building...What??? No... Not again...
Advertisement
Do you mean : how can I load a 3D mesh? , or is it really an OpenGL related question? If you''ve already played with the API, you should be able to display vertex arrays, but without importing a mesh from a 3D modeler you''ll soon find yourself limited not only by the kind of objects you can render but also by such problems as determining texture coordinates.

If you have the chance to have acquired (!) 3DS Max, for example, you can first try to export meshes in .asc, which if you open such a file in a text editor won''t scare you by its complexity : it only contains a general vertex coordinates array, then the triangles making up your mesh, and edge visibility information which you can perfectly ignore.

Recent releases of 3DS Max now offer the possibility to export meshes in the .ase file format, which while still being very easy to understand now provides information related to which textures are mapped onto your object, as well as texture coordinates and vertex normals. Check out this description of the file format at http://nate.scuzzy.net/docs/ase.html (BTW, N. Miller also has coded a small app. using .ase files. Should you encounter any problem with the format, read the source code provided with the program).

Hope this helps



This topic is closed to new replies.

Advertisement