Open ibiltari opened 4 years ago
Wow, that looks good. I'll give it a go later this week-end!
Thank you for you time. I tried contacting Arturo to see what he has to say about this, because such code is been added to Openframeworks with is MIT license...
Anyway this is for a project that we want to re-distribute, it will use Xjadeo as the video player so i will like the licenses to be as compatible as posible so i will look to take it from other sources with other licenses or remaking the mat code.
Finally i implemented scale modifying opengl vertex position and perspective projection through homography calculation and applying it to the opengl matrix, (should be perspective correct).
I created the following controls (osc only for the moment):
/jadeo/art/xscale f "modify the x scale of the video, 1.0 = no change, positive to scale up, negative down" /jadeo/art/yscale f "modify the y scale of the video"
/jadeo/art/corners (8 floats) "x,y,x,y,x,y,x,y corner value to add to each " (that's why i have created also individual corner controls, i encountered in some softwares is not easy to work with such array, easier with 2 float arrays)
/jadeo/art/corner1 ff "x,y corner 1, displacement, 0= no change" /jadeo/art/corner2 ff "x,y corner 2, displacement, 0= no change" /jadeo/art/corner3 ff "x,y corner 3, displacement, 0= no change" /jadeo/art/corner4 ff "x,y corner 4, displacement, 0= no change"
They are activated with a new configure option --enable-warp, i have put all my new code under '#ifdef WARP' and not modified anything outside that