Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER for Video Editing/Mangling

Reply
 
Thread Tools Display Modes
Old 10-30-2018, 12:20 PM   #1
sonicowl
Human being with feelings
 
sonicowl's Avatar
 
Join Date: Oct 2015
Posts: 371
Default How to mirror in video processor - kaleidoscope

How to mirror in video processor?
gfx_blit gives only x,y,w,h. Tried negative numbers for w and h, but no luck. Anybody knows how to do it?

Last edited by sonicowl; 11-01-2018 at 02:44 AM.
sonicowl is offline   Reply With Quote
Old 10-31-2018, 01:11 AM   #2
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,177
Default

Quote:
Originally Posted by sonicowl View Post
How to mirror in video processor?
gfx_blit gives only x,y,w,h. Tried negative numbers for w and h, but no luck. Anybody knows how to do it?
You don't have to mirror in the video processor. Just double click the video item to open the properties. Then click in video properties (down on the right side) and transform the video like you want. Mirroring, flipping etc.

Hope that helps.
Eli
Eliseat is offline   Reply With Quote
Old 10-31-2018, 07:36 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 12,623
Default

Try this:
Code:
input_info(0,w,h);
gfx_blit(0,0, 0,0,project_w,project_h,w,0,-w,h);
For more power you can also use gfx_deltablit() to do transformations, e.g.
Code:
input_info(0,w,h);
gfx_deltablit(0, 0,0, project_w,project_h,
             w,0, // starting source coordinates
            -w/project_w,0, // source delta-X/delta-Y with respect to output X
            0,h/project_h   // source delta-X/delta-Y with respect to output Y
            );

Last edited by Justin; 10-31-2018 at 07:43 AM.
Justin is offline   Reply With Quote
Old 10-31-2018, 07:54 AM   #4
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,177
Default

Quote:
Originally Posted by Justin View Post
Try this:
Code:
input_info(0,w,h);
gfx_blit(0,0, 0,0,project_w,project_h,w,0,-w,h);
For more power you can also use gfx_deltablit() to do transformations, e.g.
Code:
input_info(0,w,h);
gfx_deltablit(0, 0,0, project_w,project_h,
             w,0, // starting source coordinates
            -w/project_w,0, // source delta-X/delta-Y with respect to output X
            0,h/project_h   // source delta-X/delta-Y with respect to output Y
            );
Saved for the love of video processor.
Eliseat is offline   Reply With Quote
Old 10-31-2018, 01:01 PM   #5
sonicowl
Human being with feelings
 
sonicowl's Avatar
 
Join Date: Oct 2015
Posts: 371
Default

Thank you both.
I will learn this video processor coding... so much you can do with it. But it will take time.
I would like to make kaleidoscope effect, so my first step was to figure out mirroring. But before I dive into it further, I better ask... Justin, do you maybe already have kaleidoscope preset made and can share it?
sonicowl is offline   Reply With Quote
Old 10-31-2018, 02:12 PM   #6
EpicSounds
Human being with feelings
 
EpicSounds's Avatar
 
Join Date: Jul 2009
Posts: 5,647
Default

I did basic 4-quadrant kaleidoscope effect with the flip options in source properties but it wasn't quick or fun. A preset would be great.
__________________
REAPER Video Tutorials, Tips & Tricks and more at The REAPER Blog
EpicSounds is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.