I'm currently working on a project using the lwjgl. I have a working world that has textures and vertexes in Vertex buffer objects. The next step I'm trying to implement is lighting. I have the normals for my world defined and have set up a VBO for them. However, it causes the program to crash.

This is the code I use to set up the normal VBO, it is the same setup I use for the texture and vertex VBO's that I know work.

I was able to fix the problem. I was getting a crash dump, not a stack trace, but I realized while I was trying to get my world lighting to work, I also had my non-world vbo enabled. When it called glNormalPointer and had no normal data that second vbo caused everything to crash. When I disabled that the world lighting worked, and then when normals were added to the second vbo everything's lighting worked.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org