Jump to content
  • Advertisement


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


Lighting problem with Visual Basic

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

If you intended to correct an error in the post then please contact us.

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

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!