revast / dvj

Automatically exported from code.google.com/p/dvj
GNU General Public License v3.0
0 stars 0 forks source link

Projection rectangle mapping #222

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
4 corners to drag.

Code with more in mind.

Original issue reported on code.google.com by interim....@gmail.com on 30 Nov 2010 at 6:08

GoogleCodeExporter commented 9 years ago
just in case you don't know, what you're looking for is "homography"; see e.g. 
the thread here for some useful code: 
http://www.openframeworks.cc/forum/viewtopic.php?f=9&t=3121

Original comment by Christop...@gmail.com on 30 Nov 2010 at 8:21

GoogleCodeExporter commented 9 years ago
Neat!

I hadn't run across the term "homography" before.

For my particular purpose (Shpongle's tour), my requirement is pretty simple: 
allow the VJ to align the 4 corner verts with fixed points on the projection 
receiving medium. As such, it's mostly a UI problem.

However, I'll keep that information you linked to in mind, should I desire to 
implement more interesting/complex transforms.

Thanks for that!

(Side-note: It's always a pleasant surprise (and a slight mystery) when other 
people's comments appear in this issue tracker, since I haven't actually 
released the software for use, yet... Please wish me luck as I approach that 
goal.)

Original comment by interim....@gmail.com on 1 Dec 2010 at 12:10

GoogleCodeExporter commented 9 years ago
this is exactly what homography does. 
and the nice thing about it is, with the code i linked to (afaik) you can just 
enter the four corners, and it calculates an opengl matrix transform you apply 
to your output texture - should be blazingly fast.

yeah, i subscribed the issue tracker rss feed and pipe in where i have 
something to say... :-) i still plan to find the time to install it again some 
soonish time in the future... :D

Original comment by Christop...@gmail.com on 1 Dec 2010 at 9:19

GoogleCodeExporter commented 9 years ago

Original comment by interim....@gmail.com on 26 Dec 2010 at 9:34

GoogleCodeExporter commented 9 years ago
For reference, here's this feature in action:

http://interimdescriptor.blogspot.com/2011/01/shpongletron-nye.html

Original comment by interim....@gmail.com on 3 Jan 2011 at 8:16