Skip to content

Commit 4045db5

Browse files
committed
added rotation to zoom_composite :barf_emoji:
1 parent eb36e32 commit 4045db5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: inputs/scripts/zoom_composite.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
output_file = "zoom.mp4" # name of output file (this will be saved in the folder with the key frames)
2828
preview_output = False # if enabled this will show a preview of the video in a window as it renders
2929
zoom_out = False # if enabled this will zoom out instead of zooming in
30+
rotate_speed = 0. # change from 0. if you _really_ want to barf
3031
acceleration_smoothing = 0. #1.8 # if > 0. this slows the start and stop, good values are 1 to 3
3132
video_size = (1920*2, 1080*2) # video output resolution
3233
encode_lossless = False # set to True to make an uncompressed video file (this will take a lot of disk space)
@@ -114,6 +115,7 @@
114115
scaleX = ((expand_left + expand_right)/100. +1.) ** (-z)
115116
scaleY = ((expand_top + expand_bottom)/100. +1.) ** (-z)
116117
glScalef(scaleX * aspect_adjustmentX, scaleY * aspect_adjustmentY, 1.)
118+
glRotatef(t * rotate_speed, 0., 0., 1.)
117119

118120
glBindTexture(GL_TEXTURE_2D, frame_textures[f0])
119121
glBegin(GL_QUADS)

0 commit comments

Comments
 (0)