Hi, I know that this topic was discussed not one time, but after reading all of them I could found, I still have questions.
I try to make for now simple space simulator, but I faced with some issues regarding projection matrix:
1. - If I set very big zFar value, I will see model even if it is huge, but in that case I will have problem with picking, because it is not working if zFar is more than 16777216
2. - I can set ZFar separately in shader as I use logarithmic z-buffer, but it will still have picking issues because it just return true/false randomly.
3. If I set zFar to 16777216, It will definately decrease my view distance even if I scale my models down.
Taking into view all this issues, I want to know the best technique to rendering huge objects and to keep picking algorithm work correct.
I read about multi-layer rendering with multiples depth buffers, but I didnt find any example and I don`t know the concept in general.
Could anyone point me on the right way?