NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Show HN: Reverse perspective camera for OpenGL (Three.js) (github.com)
tobyhinloopen 5 days ago [-]
Link to live demo linked on the github -> https://bntre.github.io/reverse-perspective-threejs/

Well that is just the right amount of nauseating, trippy and interesting

bntr 4 days ago [-]
For an extra dose of nausea, there's also a cross-eye stereo version: https://bntr.planet.ee/temp/rp/

(Alt + mouse wheel changes the eye distance)

tobyhinloopen 4 days ago [-]
That's so cool! I want more cross-eye content.
JayStavis 4 days ago [-]
this is really neat. going to try it out with a creative coding tool I've been playing with.

are there any performance considerations to consider here relative to standard three cameras (either perspective or orthographic) ?

bntr 4 days ago [-]
No performance hit - it's just a custom projection matrix. The rest of the rendering pipeline works exactly the same as with a normal camera.
msk-lywenn 4 days ago [-]
Makes me feel the z-test should be reversed in reverse perspective mode but maybe it would just be even weirder?
recursive 4 days ago [-]
That seems like it's just normal perspective from the opposite direction.
bntr 4 days ago [-]
Exactly. Reversing the z-test is one way to get a reverse-perspective effect, but it doesn't allow for a smooth transition between projections (like dolly zoom).
12 days ago [-]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 04:30:33 GMT+0000 (Coordinated Universal Time) with Vercel.