Jump to content
Search Community

Help Needed: Dual Display Issue in Object Rotation with GSAP and Three.js

duu

Go to solution Solved by duu,

Recommended Posts

Posted

I always use GSAP, and I appreciate it very much. Thank you.

Now, I am facing a strange phenomenon. I have implemented a simple rotation control on a single object loaded in the most common setup (GSAP + Three.js) to control GSAP animations.

However, when I execute it, I encounter a peculiar issue where the object both rotates and does not rotate, displaying these two states simultaneously.

 

 

image.thumb.png.d4df79070f1e822707f34516c52a6837.png

Here's a demo to replicate this phenomenon:

 

What could be the problem here?
And how can I resolve it?

Please help.
 

  • Solution
Posted

The issue was caused by the rendering being processed twice. I've resolved it myself.

Posted

Glad you've solved your issue! Rendering things twice sounds like you're working in React, if that is the case please read the following article https://gsap.com/react. Hope it helps and happy tweening! 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...