u/Jlmmbo

Need help understanding a clipping issue on my 4d perspective projection software

I’ve been working on a 4D rendering software project called Ducky. The projection itself seems correct — edges and vertices appear where I’d expect them to — but there’s some strange clipping behavior with faces/volumes that I can’t figure out.

https://reddit.com/link/1tdz870/video/83cxm2wmeb1h1/player

I’m pretty sure this isn’t just an artifact of 4D geometry. Since in 3D, faces smoothly shrink out of existence (like on the side of a rotating cube) or stretch into existence, but they don’t abruptly appear/disappear. I’d expect the same kind of thing for volumes in 4D, so I suspect there’s a bug somewhere in my clipping or projection pipeline.

I've tested and it doesn't seem to be a near plane(volume) problem

Any ideas on what could cause this would be greatly appreciated.

reddit.com
u/Jlmmbo — 6 days ago