Results 1 to 4 of 4

Thread: OpenGL lighting

  1. #1

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Question OpenGL lighting

    I have been using OpenGL for a little while now, and everything seems to be working ok until i tried to add a bit of lighting.

    Basically, my problem is that whenever i glEnable() lighting, there seems to always some ambient light, even if i glDisable() light zero...for my game, i want complete darkness at times, but that seems impossible.

    Also, the brightness of the ambient light seems to change depending on whether a certain object is drawn...even though i make no lighting calls when i draw it...could this be because of texturing??

    Thanks for any help
    sql_lall

  2. #2
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037

    Re: OpenGL lighting

    This question would be better suited in the games and graphics section.

  3. #3

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Re: OpenGL lighting

    sorry, haven't been here in a while...i use C++ only now, so thought i'd put it in here, as i was hoping for an answer hopefully using C++ code....

    anyway, if this should be somewhere else, is it possible for the whole thread to be moved there....admins? or should i repost?
    sql_lall

  4. #4
    Frenzied Member aewarnick's Avatar
    Join Date
    Dec 2002
    Posts
    1,037

    Re: OpenGL lighting

    Congrats on using c++. Welcome!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width