An open API service indexing awesome lists of open source software.

https://github.com/bschwind/face-squash

An XNA demo to distort an image by stretching a user-defined quad over an image and mapping the values back to a rectangle.
https://github.com/bschwind/face-squash

Last synced: 11 months ago
JSON representation

An XNA demo to distort an image by stretching a user-defined quad over an image and mapping the values back to a rectangle.

Awesome Lists containing this project

README

          

Face-Squash
===========

A demo to distort an image by stretching a user-defined quad over an image and mapping the values back to a rectangle.

The main idea behind the algorithm is interpolating over a quad, as shown below. You then use those interpolated values as texture coordinates to sample the texture.

![Alt text](https://raw.github.com/bschwind/Face-Squash/master/QuadInterpolate.png "Optional title")

![Alt text](https://raw.github.com/bschwind/Face-Squash/master/screenshot.png "Optional title")