About the problem I had on building my program in release mode, I have found the issue. It have taking long time to track this problem down because you can not debug in release mode, so I though. But with some tweaking with the properties for the project in visual studios it was possible to track down where the error occurred. And it was when I tried to bind my vertexes, normal’s and uv to the graphic card. The glGenBuffers was where the access violation happened and I had no clue why. After some searching on the internet about my problem I find someone who had have the same problem. And he had find that it was a bug in Qt, which is a cross-platform application framework that I am using for my project. So apparently I needed to use something else to initialize me opengl functions. So I had some problems getting that to work cause some things do not work with each other, some things need to be included before other things and so on. But eventually I got it to work. So now am using glew to initialize me opengl functions. So now I can build my project release mode! And it help me fps a lot. But I’m not entirely satisfied with the fps entirely jet. So I possible need to rework me LoD structure some how..
But some good news is that I have sun light on my planet now, and it is working good!
And what can that white thingy be? Can it be a atmosphere?!?