I was investigating code for an minecraft clone and noticed a frustum reference. I want to try to create minecraft like things in Monkey2 so I think I need this also.
I started to look around with google but have not been able to find anything I could understand yet.
I understand that you need to set the models in front ot the camera to show and what is not in front ot the camera to not show. What I have been trying to figure out is how to code something like this. In Minecraft there are chunks which are basically blocks of blocks. I think? I would need to loop through all chunks and check the angle of the camera and then the angle of the blocks to see which are behind the camera to set the visible flags. I would do this every frame? This I think would be fast enough?
Is there anyone who has some easy to understand links or thoughts/experience with occlusion and frustum? This is all new to me.
I also do not know if Monkey2 already has built in optimalisations like this.