View Full Version : crop diagonally?
chilledinsanity
18th September 2008, 15:16
I'm trying to take 2 shots from the exact same scene, but crop the screen diagonal so that only part of it shows on top of the other. Can this be accompished in avisynth or virtualdub?
Guest
18th September 2008, 15:26
Your sig has a link to a site with illegal movie downloads. Remove it from your sig or you'll be struck.
chilledinsanity
18th September 2008, 15:46
How are these downloads illegal? I MAKE them! I wrote the script, animated the characters, did the mapping, voiced some of the characters, filmed it and edited it. I use a computer game engine to animate it, but showing game footage is not illegal.
hanfrunz
18th September 2008, 16:14
i don't know exactly if i understood what you want. You could use stackhorizontal(v1,v2) to stack two clips together. Then rotate it with a rotate-plugin (use search) and crop it.
Or you could draw a key mask (black=v1, white=v2) with photoshop/gimp and use some keyer-plugin (i think there is one...)
hanfrunz
chilledinsanity
18th September 2008, 16:23
It sounds like the latter is what I need, I'll have to research that, thanks.
Guest
18th September 2008, 16:32
How are these downloads illegal? I MAKE them! I wrote the script, animated the characters, did the mapping, voiced some of the characters, filmed it and edited it. I use a computer game engine to animate it, but showing game footage is not illegal. OK, sorry, I saw "episodes" and assumed they were TV things. My bad.
chilledinsanity
18th September 2008, 17:13
Hehe, that's fine. Actually my question here pertains to the new episode I'm currently working on since I'm hoping to overlay part of a scene on top of another recorded at the exact same angle to edit out a glitch I'm having.
mikeytown2
18th September 2008, 18:34
Using a rotated mask would be the best way to do this in my opinion.
Here's my hacked together version
a=BlankClip(199,640,640,color=$000000)
b=BlankClip(199,640,640,color=$FFFFFF)
StackHorizontal(a,b)
Spinner(angle=45,check=false,bg=false)
ZoomBox(640,480,align=5,zoomFactor=-100,SourcePAR=4.0/3.0)
masked=last
a=ColorBars().Trim(0,199)
b=a.invert()
Overlay(a,b,mask=masked)
http://avisynth.org/vcmohan/Spinner/Spinner.html - Spinner
http://forum.doom9.org/showthread.php?p=1111789#post1111789 - ZoomBox
Didée
18th September 2008, 20:27
No need to actually perform a rotation. A diagonal mask can be easily made with MaskTools v2a35.
Diagonal TopLeft--BottomRight mask:
mt_lutspa(true,"x y < 255 0 ?",U=3,V=3)
Diagonal BottomLeft--TopRight mask:
mt_lutspa(true,"x 1 y - < 255 0 ?",U=3,V=3)
If a soft boundary is needed, add a blur(1).
mikeytown2
18th September 2008, 23:56
@Didée
I get an Integer Overflow Error with your code.
http://manao4.free.fr/?M=D - MaskTools
Didée
19th September 2008, 00:48
You've to load mt_masktools-25.dll, not mt_masktools-26.dll.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.