Solved

How Would You Create Your Own Video Wipe Transition from the Top-Left

Question 44

Essay

How would you create your own video wipe transition from the top-left corner of the viewport down to the bottom-right corner - a diagonal transition? Fig. 1 shows such a video transition.
 How would you create your own video wipe transition from the top-left corner of the viewport down to the bottom-right corner - a diagonal transition? Fig. 1 shows such a video transition.     Figure 1: Wipe transition, at  \mathrm{t} / \mathrm{tmax}=0.66  Here, we wish to simply take pixels from either the first or the second video, depending on whether they are above or below the moving diagonal line. Write some pseudo-C or pseudo-Premiere pseudocode to produce correct pixel values during the transition. Hint: for any  x  and  y  position, we can determine where the line that  \{x, y\}  is on, which is parallel to the wipe, cuts the main diagonal from top-left to bottom-right of the frame, simply using similar triangles. To do so, it's easiest to calculate the y-intersept of that line (where it hits the y-axis).     Figure 2: Wipe transition geometry.
Figure 1: Wipe transition, at t/tmax=0.66\mathrm{t} / \mathrm{tmax}=0.66 Here, we wish to simply take pixels from either the first or the second video, depending on whether they are above or below the moving diagonal line.
Write some pseudo-C or pseudo-Premiere pseudocode to produce correct pixel values during the transition.
Hint: for any xx and yy position, we can determine where the line that {x,y}\{x, y\} is on, which is parallel to the wipe, cuts the main diagonal from top-left to bottom-right of the frame, simply using similar triangles. To do so, it's easiest to calculate the y-intersept of that line (where it hits the y-axis).
 How would you create your own video wipe transition from the top-left corner of the viewport down to the bottom-right corner - a diagonal transition? Fig. 1 shows such a video transition.     Figure 1: Wipe transition, at  \mathrm{t} / \mathrm{tmax}=0.66  Here, we wish to simply take pixels from either the first or the second video, depending on whether they are above or below the moving diagonal line. Write some pseudo-C or pseudo-Premiere pseudocode to produce correct pixel values during the transition. Hint: for any  x  and  y  position, we can determine where the line that  \{x, y\}  is on, which is parallel to the wipe, cuts the main diagonal from top-left to bottom-right of the frame, simply using similar triangles. To do so, it's easiest to calculate the y-intersept of that line (where it hits the y-axis).     Figure 2: Wipe transition geometry.
Figure 2: Wipe transition geometry.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents