This topic is now archived and is closed to further replies.


Lighting problem with Visual Basic

Recommended Posts

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

Share this post

Link to post
Share on other sites