LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Phyyl on March 09, 2013, 04:24:38

Title: Technical difficulties with lighting on a simple project!
Post by: Phyyl on March 09, 2013, 04:24:38
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)) :
(http://i.imgur.com/LVIAdus.png)

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!
Title: Re: Technical difficulties with lighting on a simple project!
Post by: quew8 on March 09, 2013, 11:04:52
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
Title: Re: Technical difficulties with lighting on a simple project!
Post by: Phyyl on March 18, 2013, 01:47:41
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