MartybNz
Hey that sounds very interesting. Do you have an example of a non-clipped orthographic/perspective 3d viewer?
Sadly, no, because pretty much everything these days uses the graphics card for viewing. I think even CPU renderers like Mantra have near/far clipping planes, albeit probably for different reasons.
Another reason for near/far clipping planes is to avoid numeric underflow/overflow in other computations. It's hard to avoid or check for underflow/overflow cases everywhere, so most things put arbitrary near/far clipping planes, but those can be out at 10^-15 and 10^15, so it's not a big concern.
The biggest reason for them, though, is that just about every graphics course and textbook under the sun teaches clipping only in terms of clipping a 0-1 cube, (because it's easier to teach), in which case, everything needs to be transformed into a space between 0-1. It's easy to do clipping differently, but most people just go by the textbooks. Way back when I was writing my own software renderer, I was figuring most everything out on my own, so I did pretty much no clipping except in screen space; I also got a lot of other things completely wrong, though, so different doesn't necessarily mean better. :wink:
Wow, I should stop rambling. My apologies!
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [
www.youtube.com]