Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OpenGL plane Lighting (Small code)

 
Joshua Waring
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently I've moved into a more advance part of OpenGL which is lighting, but as what follows is an error which I keep hitting, I don't know if it's light positioning or what, but I've tried playing with positions and I can't seem to get it working correctly. There's just a plane which is positioned on the screen and I've created a moving triangle which moved horizontal to the light and the same problem occurs. simple enough said no one ever(apart from everyone who's not me Help is greatly appreciated.

 
fred rosenberger
lowercase baba
Bartender
Posts: 12087
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know nothing about OpenGL. Having said that...

It is not clear from your post what exactly the problem is. You say "I can't seem to get it working correctly", "the same problem occurs", and "an error which i keep hitting", but I don't see where you state what any of those are.

Does it compile? Does it run? Do you get an actual error message - and if so, can you post it here?

Does it run but not do what you expect? If so, what do you expect, and what does it actually do?
 
Joshua Waring
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay we'll that was a tiny fail
It's a scenario error where it doesn't appear tr way expected although has no returned errors.
The plane has a constant lighting (ambient) and if unaffected my the actual light. Basically it's dark grey all the time even if I place it dead on with the light or at least I think I am.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic