You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using React Three Fiber (R3F) with GSAP timeline animations, texture transitions on materials fail to work properly when debug mode is enabled. The issue specifically occurs in the following scenario:
Setup
Using R3F with GSAP timeline
Timeline controls both object transformations and material texture changes
Implemented a debug overlay using React context
Debug info updates on each frame
Expected Behavior
Texture transitions should occur smoothly at specific timeline points
Debug mode should not affect material/texture behavior
Timeline animations should work consistently regardless of debug state
Actual Behavior
When debug mode is disabled: Everything works as expected
When debug mode is enabled: Material textures flicker and the transitions of these fail
Other timeline animations (position, rotation) continue to work normally
Here what happens is that I had to change the texture to Brand2, but it does not do so but when moving the scroll blinks the texture but never changes
Here I show how it is flashing
Here I show the expected result at that point of the scroll, that is, it should change to brand2, I commented on the useEffect that updates information in the DevContext and works as expected
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
When using React Three Fiber (R3F) with GSAP timeline animations, texture transitions on materials fail to work properly when debug mode is enabled. The issue specifically occurs in the following scenario:
Setup
Expected Behavior
Actual Behavior
Code Structure
Visit the repository I’m working on to see the code
Demostration of the Problem
Here what happens is that I had to change the texture to Brand2, but it does not do so but when moving the scroll blinks the texture but never changes

Here I show how it is flashing

Here I show the expected result at that point of the scroll, that is, it should change to brand2, I commented on the useEffect that updates information in the DevContext and works as expected

Beta Was this translation helpful? Give feedback.
All reactions