Near and far plane positioning

Hi All,

In the past days we went in depth on near and far plane positioning for both ortho and perspective projection.

As you already know you can’t keep them neither to close and neither too far, otherwise you get weird winZ values.

Frequently by the way - for example looking to a small detail in a huge land - you get thing cut in the wrong way.

My question is:

Can somewhere be found an inverse formula to stretch the view field (in terms of distance between near and far plane) as much as possible without incurring in weird winZ values?

We really don’t know where to start. We already tried some empirical rules without success.