Using custom frame controls instead of relying on requestAnimationFrame #1258
Unanswered
Just-Moh-it
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently creating a Remotion video, that shows someone's screen in a 3d environment. I'm using the @remotion/three package that has a custom
ThreeCanvas
element anduseVideoTexture
based on theuseCurrentFrame
of the video returned by Remotion'suseCurrentFrame()
hook.Even though I could rotate a cube on the basis of the value returned by Remotion's
useCurrentFrame()
, I'm having trouble applying a glitch effect to the objects in the video using Drei's built-in glitch component, because Remotion is a video-player emulator relying on a frame-based system, while Drei uses arequestAnimationFrame
based loop.Is there any way I could fast-forward/rewind/pause/play built-in animations like Glitch based on my custom logic, instead of having the components update themselves on the basis of
requestAnimationFrame
?Beta Was this translation helpful? Give feedback.
All reactions