Need 3D-Importer

Started by
0 comments, last by V-man 16 years, 1 month ago
Hello, I need a 3D-Importer (preferable .3DS - Files, any other Fileformat that is supported by 3D-Studio MAX is also ok) for OpenGL. The 3D-Importer should also import the textures for the model. Any ideas? Greetings, Squarefox
Advertisement
For 3ds file, lib3ds is open source and has example code.
For images, I use DevIL to read them and my own code to make a texture.
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

This topic is closed to new replies.

Advertisement