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.
- Host: GitHub
- URL: https://github.com/bschwind/face-squash
- Owner: bschwind
- Created: 2012-12-15T03:03:16.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-11-08T18:44:27.000Z (over 11 years ago)
- Last Synced: 2025-07-13T10:39:42.222Z (11 months ago)
- Language: C#
- Homepage:
- Size: 734 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.

