l***@gmail.com
2007-05-22 17:04:00 UTC
i try binding three textures for a shader, code compiles now without
errors (some warnings due scanf, but thats ignoreable)
when i run the program i get the following output, then the
application simply closes...
E:\Coding\current\oglLoader\Release>oglLoader.exe bradley.model
SUCCESS found model file [bradley.cmsh] not found
SUCCESS found texture file [bradley.png] found
ERROR 404 - normalmap file [none] not found
ERROR 404 - heightmap file [none] not found
ERROR 404 - vertex shader file [none] not found
ERROR 404 - fragment shader file [none] not found
version: 5
sucessfully loaded texture map [bradley.png]!
E:\Coding\current\oglLoader\Release>
any ideas whats going on there???
thanks in advance
[...]
#include <GL/glew.h>
#include <GL/glut.h>
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#include "myClasses.h" // my private helper classes
#include "Mesh.h" // one mesh class
#include <GL/glext.h>
[...]
fprintf (stderr, "sucessfully loaded texture map [%s]!\n",
texturemapfile);
glActiveTexture(GL_TEXTURE0);
cout << "crash in the line above but why?\n";
glBindTexture(GL_TEXTURE_2D, textureMap);
glEnable(GL_TEXTURE_2D);
glUniform1i(textureMap, 1);
[...]
errors (some warnings due scanf, but thats ignoreable)
when i run the program i get the following output, then the
application simply closes...
E:\Coding\current\oglLoader\Release>oglLoader.exe bradley.model
SUCCESS found model file [bradley.cmsh] not found
SUCCESS found texture file [bradley.png] found
ERROR 404 - normalmap file [none] not found
ERROR 404 - heightmap file [none] not found
ERROR 404 - vertex shader file [none] not found
ERROR 404 - fragment shader file [none] not found
version: 5
sucessfully loaded texture map [bradley.png]!
E:\Coding\current\oglLoader\Release>
any ideas whats going on there???
thanks in advance
[...]
#include <GL/glew.h>
#include <GL/glut.h>
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <math.h>
#include <vector>
using namespace std;
#include "myClasses.h" // my private helper classes
#include "Mesh.h" // one mesh class
#include <GL/glext.h>
[...]
fprintf (stderr, "sucessfully loaded texture map [%s]!\n",
texturemapfile);
glActiveTexture(GL_TEXTURE0);
cout << "crash in the line above but why?\n";
glBindTexture(GL_TEXTURE_2D, textureMap);
glEnable(GL_TEXTURE_2D);
glUniform1i(textureMap, 1);
[...]