• ### Popular Now

• 13
• 18
• 19
• 27
• 10

#### Archived

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

# Lighting problem with Visual Basic

This topic is 5842 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## 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

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