{"by":"bntr","descendants":8,"id":45874597,"kids":[45955131,45955569,45956219,45874598],"score":52,"text":"I&#x27;ve extended the standard OpenGL camera to allow smooth transition between normal perspective, orthographic, and reverse perspective projection.\nTo demonstrate the effect, I built a demo using Three.js.<p>Reverse perspective can feel a bit disorienting at first,\nbut this demo is meant to highlight a few of its interesting advantages:<p>1. An extended <i>Dolly zoom</i> effect. <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Dolly_zoom\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Dolly_zoom</a><p>You can think of it as an extrapolation of the classic Dolly zoom into negative space.\nIt produces a cinematic sense of vertigo or sudden insight,\nand also lets you pull the camera back from an object without distracting the viewer with surrounding geometry.<p>2. A wider and more complete spatial view.<p>Near objects no longer obscure distant ones;\nthe viewer can see both the façade of a building and what’s happening on its roof, or even behind it.<p>Code and details: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;bntre&#x2F;reverse-perspective-threejs\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;bntre&#x2F;reverse-perspective-threejs</a>","time":1762771294,"title":"Show HN: Reverse perspective camera for OpenGL (Three.js)","type":"story","url":"https://github.com/bntre/reverse-perspective-threejs"}