07-11-2022, 05:21 PM | #41 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Image overlay with rotation (non clipping)
This is an improvement on the stock "overlay image" preset that includes non-clipping 2d rotation with adjustable axis of rotation. This preset does not crop the image directly but the thread also include a cropping only preset that feature smooth animation. Just add it on the item fx chain before the overlay preset. Follow here |
09-19-2022, 05:07 AM | #42 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
polygons & circles framework preset
|
02-13-2023, 06:15 PM | #43 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Overlay: image w/UYV chroma-key, masking, scaling
I created a much simpler to use chroma-key preset that works like an image overlay with scaling, offset and, very importantl, the hability to mask out unwanted parts of your foreground image. Here the post:
https://forum.cockos.com/showthread.php?p=2642845 https://stash.reaper.fm/46231/green2.png |
04-13-2023, 09:57 AM | #44 | |
Human being with feelings
Join Date: May 2006
Location: L.A. Cahleefornia
Posts: 305
|
Quote:
I have a piece of video that was originally 4X3 aspect ratio, but has been stretched out to 16X9. I just want to reduce the image width to create a pillarbox with the 4X3 picture centered in the 16X9 frame. Any help appreciated. Thanks.
__________________
Hey, I'm on Spotify too! No kidding! Yeah, dumb ol' me! |
|
04-13-2023, 01:41 PM | #45 | |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Quote:
|
|
04-13-2023, 04:03 PM | #46 |
Human being with feelings
Join Date: May 2006
Location: L.A. Cahleefornia
Posts: 305
|
I see what you are saying. I make the project's aspect 4X3 and then do this with the presets. I will try that. Obrigado.
__________________
Hey, I'm on Spotify too! No kidding! Yeah, dumb ol' me! |
04-13-2023, 04:14 PM | #47 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
No need to change the project size:just chain them. The first one forces the resize of the source to 4:3 making it actually smaller in width than the project´s. The second take this smaller source and paste it in the middle of the larger project´s frame.
|
06-26-2023, 07:51 AM | #48 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
Better dynamic Image flipper
Flipping an image with gfx_blit() using nagative values is a hack that leaves uncorrectable visual artifacts. Here is better version:
Code:
//girafx:flip // by papagirafe // release 1.0 //@param fh horizontal 0 0 1 0.5 1 //@param fv vertital 0 0 1 0.5 1 fh|=0;fv|=0; input_info(0,w,h)?( gfx_img_resize(-1,w,h); 0[0]=fh?w-1:0; 0[1]=fv?h-1:0; 0[2]=fh?0:w-1; 0[3]=fv?h-1:0; 0[4]=fh?w-1:0; 0[5]=fv?0:h-1; 0[6]=fh?0:w-1; 0[7]=fv?0:h-1; gfx_xformblit(0, 0,0,w,h,2,2,0); ); I found an old post where an image flipping method is proposed by Justin using gfx_deltablit(). So here is an alternate version: Code:
//girafx:flip 2 //by papagirafe //@param fh horizontal 0 0 1 0.5 1 //@param fv vertital 0 0 1 0.5 1 fh|=0;fv|=0; input_info(0,w,h)?( gfx_img_resize(-1,w,h); gfx_deltablit(0, 0,0,w,h, fh?w-1:0,fv?h-1:0, fh?-1:1,0,0,fv?-1:1); ); Last edited by papagirafe; 08-11-2023 at 12:41 PM. Reason: new info = new code |
06-27-2023, 08:37 AM | #49 | |
Human being with feelings
Join Date: Feb 2015
Posts: 1,096
|
Quote:
|
|
06-27-2023, 09:24 AM | #50 |
Human being with feelings
Join Date: Dec 2012
Posts: 7,272
|
Does it actually work like this? The number 0 should not be a valid variable name for the buffer. The version in your own thread uses a, which makes sense, but this one freaks me out.
__________________
Lorenzo's Tractor is Everywhere --- Ash's Tube --- Join the Partnership for a Drum Free Amerika |
06-27-2023, 11:58 AM | #51 |
Human being with feelings
Join Date: Aug 2020
Location: Brasil
Posts: 679
|
As surprizing as it looks, the version with 0s works the same: it's a trick I borrowed from Justin. The eel2 "table like" shared vector is closer to assembler than to an interpreted language :it takes the form of {base}[offset]. In the first version a[1..n] means {value of a = base}[1..n]; "a", being unitialized, takes a value of 0 which translate to 0[1..n]. Furthermore 0[3] is the same as 3[0]! The interpreter doesn't care if the base is a literal or a variable.
Last edited by papagirafe; 06-27-2023 at 03:50 PM. Reason: typos |
01-02-2024, 01:48 AM | #52 |
Human being with feelings
Join Date: Oct 2023
Posts: 45
|
Scripts to generate particles, etc
Some scripts useful to create visualizer videos for music releases:
https://forum.cockos.com/showthread.php?t=286779 |
Thread Tools | |
Display Modes | |
|
|