Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

813 Good

About V-man

  • Rank
  1. V-man

    Division by zero and AMD

    A SOLUTION IS FOUND. In VB6, go to project properties, click on compile tab. Press the Advanced Optimizations button. Click on Remove floating point exceptions check. I had already done this in my project but for some reason, my partner's VB6 did not have that checked.
  2. You should get information with glGetString and also, make sure you have the drivers from nvidia installed and not MESA3D or some other software junk.
  3. V-man

    Division by zero and AMD

    wintertime : the driver that comes on the CD for the video card works fine. Rewriting the entire code would be too drastic and it also doesn't mean that it would solve the problem.   Ohforf sake : yes, I remember reading about that, back in 2000 or 2001. But in my case, is the AMD driver enabling exception? I don't know how to check if it is integer or floating point exception in VB6.
  4. We have a project written in VB6. It uses GL 1.1. It runs fine on multiple Windows versions and different cards. But with the Catalyst 13.1 driver and also previous one, "division by zero" message is getting thrown.   It happens on HD 5450, Win 7 32 bit and also on another HD series card. It happens on simple functions like glScalef and glScissor. The values being submitted to those functions are fine so I don't understand what the problem is. There is some behind the scene thing happening in the AMD drivers.
  5. BTW, if you want to debug, call glGetError(). http://www.opengl.org/wiki/Common_Mistakes#glGetError
  6. glEnable(GL_TEXTURE_2D) doesn't cause memeory leaks. You might have a leak with your PNG loading code. In order to be sure, try replacing it with a hardcoded 1x1 texture.
  7. What do you mean by library? What exactly do you want to do? If you just want to create a GL window, then use freeGLUT, SDL or the several other solutions. If you need a graphics engine, there is Ogre3D and many others out there. mhagain said GL_ARB_vertex_program and GL_ARB_fragment_program but these aren't libraries. These are GL extensions which are quite old by now. I strongly recommend getting a GL 2.0 card at minimum and use shaders for rendering everything. If you really want to stick with Intel, stick to GL 1.1 since their GL drivers are terrible or just go with Direct3D.
  8. http://www.opengl.org/wiki/GLSL_:_common_mistakes#glGetUniformLocation and http://www.opengl.org/wiki/GLSL_:_common_mistakes#Enable_Or_Not_To_Enable
  9. V-man

    GLSL Vertex Shader error

    Even if the problem has been found, it isn't a good idea to read a text file as binary because on some systems (Windows), end of lines are in the form of \r\n or was it \n\r. It is better to open the file this way FILE *fp = fopen("MaddEngine.frag", "r"); //changed the "rb" to "r" and the library will automatically convert all the \r\n to \n (newlines). and it is a good idea to NULL terminate the file string yourself.
  10. http://www.opengl.org/wiki/GLSL_:_common_mistakes#glGetUniformLocation
  11. There are quite a few BIG differences. The GLSL part a slightly different. Desktop GL has support for geometry shaders, tesselation shaders. On Windows and Linux, you can create a compatible profile (all the old functions down to GL 1.0 work) or you can create a core profile. EGL doesn't exist on the desktop. Each platform has its own binding API.
  12. No, GLUT and also freeGLUT don't swap. You have to call glutSwapBuffers (in the case of double buffering of course). In the case if single buffer, you must call glFlush. In any case, why use single buffer? It will give graphical gliches and flashing.
  13. V-man


  14. V-man

    My first C++ game

    1. You can start out with freeGLUT to get off the ground. It hides the OS specific stuff like creation a window and GL context, user input. 2. There is Nehe but it is ancient and just teaches GL 1.1 and few things like VBO. There is the Wiki for GL 3 stuff http://www.opengl.org/wiki/Tutorials and all this http://www.opengl.org/wiki/Getting_started#Tutorials_and_How_To_Guides 3. The same way you learn the syntax for any other API 4. 2D tic tac toe or Pac Man.
  15. The code looks fine. It is probably some system issue. BTW, what OS, gpu are you using. Do you have the latest graphics drivers?
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!