Technical difficulties with lighting on a simple project!

Started by Phyyl, March 09, 2013, 04:24:38

Previous topic - Next topic

Phyyl

Hi everyone ! this is my first post, I just created an account here. I'm gonna make it really simple, I'm having trouble solving what could be a very simple problem for you (but not for me :D). I set up lights in OpenGL using LWJGL, and the result of it on a 16x16x16 chunk of blocks is this (caution, this may be difficult to watch for a good programmer (haha)) :


If you ever encountered something like that or have any idea of what it could be, please help!

I was also wondering what bits of code I should post so if you need anything just ask!

Thanks alot!

quew8

Post rendering code and wherever you set up lights. If you're not using standard OpenGL lighting (as in writing your own shaders) then we'll need to see them too

Phyyl

Sorry I was on vacation,

Found my problem if anyone is having the same thing, I was simply not creating blocks properly and what we saw is the result of faces overlapping each other!
But thanks anyways!

Here a new problem I'm having, and also the developpement of my project ! :D

http://lwjgl.org/forum/index.php/topic,4935.0.html