Lighting problem with Visual Basic

Started by
-1 comments, last by jasper 22 years ago
Hi, When i enable lighting in my engine, i get a divide by zero error when trying to set a vertex.

    glDisable glcTexture2D
    glDisable glcCullFace

    glColor3f 0.8, 0.8, 0.8
    
    glBegin bmQuads                  
    glVertex3f damX, DAMLEVEL + 10, damZ        ''Error here.
    .....

 
Its only here the error occurs in the whole program. This is the first object to be drawn in the engine, but if I am running in interperted mode, if I resume after the error occurs(F5)it runs fine. damX,DAMLEVEL and damZ are GLfloat''s. Thanks Jasper

This topic is closed to new replies.

Advertisement