I'm trying to implement LOD to boost my game's performance. I found a very nice tutorial.
The basic concept that I think I understand is: Get the distance from the camera to the object, check for the right LOD-level and then render the object with the "right amount of instances".
How do I implement that? The provided example code is a mystery to me...
- Is this a good method to implement LOD?
- Can someone please explain me detailed, how I have to implement it, with the queries and so on...
I'm rendering all of my objects with
GL11.glDrawElements(GL11.GL_TRIANGLES, model.getRawModel().getVertexCount(), GL11.GL_UNSIGNED_INT, 0);
The example code uses
GL_POINTS. Can I implement it also with