Here, that was an experiment to see the math involved in the Vertigo Effect, which consisted as zooming in a specific speed matching the panning you'd to keep your subject in the same size and position in your camera, but the world around them would dramatically shift in position.

Don't mind too much the rest of the scene, that's the rest of remnants of a failed OpenGL engine.


@Ronflaix cool! what is that math?

Web 1 0 0

@hillexed if Wikipedia is referring me to the proper stuff, distance = width/(2 * tan(fov / 2))

It needed a vit of massaging to get into the code but once it was there, it worked neatly

Sign in to participate in the conversation

锝冿綑锝傦綊锝咃綋锝愶絹锝冿絽: the social hub of the information superhighway jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal support us on patreon or liberapay!