Advertisement

Serious problem :(

Started by January 13, 2001 11:32 AM
12 comments, last by Alazorn 23 years, 10 months ago
Ok I have this little demo Im writing everything works perfectly and looks realy great on my computer (AMD K62 400 with Asus Geforce2) I am using Borland C++ 5.02 to compile my program, then I bring the project to school to show ma friends and still looks very good and runs nicely. But when I try to run on other computers in my school it dosnt work at all, I dont get any error msgs and I see the first frame of the demo and it stops to respond to the keyboard and mouse. If I wait 65 seconds I get to see the next frame of the demo (hum low framerate on an PIII 500). Since that I have tryed this on many computer and it seams at it is about 25% chance to get it to run and 74% chence for the fenomen I described above and about 1% chance for a total chrash. Hum does anyone have any idea whatmight be wrong I realy need help with thisone (wouldnt be to fun if it didnt work on da demoparty). Ok, so here is the files I include : #include #include #include #include #include #include #pragma comment (lib, "glaux.lib") and to initziate my demoI use about the same code as in the Nehe tutorials : GLvoid InitGL(GLsizei Width, GLsizei Height) //To be called after GL window is created { Height=Height>0?Height:1; Width=Width>0?Width:1; if (!LoadGLTextures()) { MessageBox(hWnd,"Unable to load textures ","Error",MB_OK); exit(0); } glEnable(GL_TEXTURE_2D); glClearColor(0.0f,0.0f,0.0f,0.0f); glClearDepth(1.0); glDepthFunc(GL_LESS); glEnable(GL_DEPTH_TEST); glShadeModel(GL_SMOOTH); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0f,(GLfloat)Width/(GLfloat Height,0.1f,100.0f); glMatrixMode(GL_MODELVIEW); glEnable(GL_CULL_FACE); glTexGeni(GL_S, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); glTexGeni(GL_T, GL_TEXTURE_GEN_MODE, GL_SPHERE_MAP); quadratic=gluNewQuadric(); gluQuadricNormals(quadratic, GLU_SMOOTH); gluQuadricTexture(quadratic, GL_TRUE); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); }
Hum strange forum, the files Iinclude is :

windows.h
math.h
stdio.h
gl\gl.h
gl\glu.h
gl\glaux.h
Advertisement
I had this same problem before. It turned out that the school computers had VGA cards which definately didn''t support OpenGL. Check the specs on your school computers.

HHSDrum@yahoo.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
seems likly some of the computers you are running, don''t have opengl hardeware accleration, or you are inadvertnly using the software opengl.
www.laeuchli.com/jesse/

most of the computers it dosnt work on have opengl as well and some of my friends are also trying to learn opengl using these great nehe tutorials and there programs work for them but mine wount
It certainly sounds like you are not getting hw support. You should not have any problems with your hw but some other older cards has limitations. I suggest you check what cards they have.

Advertisement
You also might want to check the drivers they are using on thier vid cards. Voodoo cards have real problematic drivers depending on what version they are.

You could also be pushing the hardware too much since you have a geforce 2 at home. How many polys are you rendering per frame?

"Never pet a burning dog." - Warcraft II
Well,the code is not to complex, it should work,anyways I recompiled my code in MSVC both in debug and relese mode and tested thouse projects, and my friends which it didnt work on before gets the message "Not a Win32 Application"??? and the computers in shool (which btw have Riva TNT2) gets the same phenomen as described above.

If you put up the code on the internet can we test it. A TNT2 is OK and the compilers is also good.
Hum, dont think that would be a good idea to post the code here , since it is above 1000 lines

This topic is closed to new replies.

Advertisement