Questions tagged [opengl-es-lighting]

18 questions
0
votes
1 answer

The position of light in opengl

I am trying to draw a rotating cubic and add a spot light in a fixed position in front of this cubic. But because i set the wrong value in z-axis, the light don't show up. After i tried different position of light, the cubic finally displays as i…
Frank Cheng
  • 5,928
  • 9
  • 52
  • 80
0
votes
0 answers

Headlight or understanding of way the light works

I'm developing a project of 3D maze with OpenGL. Despite my poor knowledge of programming, I managed to build it, add textures and steering with mouse and keyboard (stolen from net in most part, though). Now I'm stuck with lighting. My idea (similar…
zaguoba
  • 33
  • 7
-1
votes
1 answer

Can't initialize method initGeometry(gl); initLighting(gl); on class

Help me find my mistake. I make an example from book but may be author (or i)make some trouble and i cant find solve. First class is geometry of my object import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.FloatBuffer; import…
1
2