Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just a quick questions about something that's occurring in my world. Every time I pitch my camera downward, everything starts turning black, and if I pitch upward, everything sort of intensifies.

I'm multiplying my normals by the normal matrix in the shader, and I'm multiplying my lights direction by the model view matrix.

If I leave the normal and light dir in world space everything ends up fine.

I thought putting them both in view space would not cause those weird things to happen?

share|improve this question

closed as unclear what you're asking by Trevor Powell, concept3d, Anko, Byte56 Dec 26 '13 at 23:43

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Please post the code. – Seth Battin May 24 '13 at 5:08
You are messing up something with your vectors/matrices, perhaps you forgot to put one vector in the correct space. – akaltar Dec 24 '13 at 1:21

Browse other questions tagged or ask your own question.