View my example on this page.
On Demand Rendering Using Tween : https://sbcode.net/extra_html/tween.html
You can see the source code using the <> button at bottom right.
Double click anywhere on the floor in the example.
In the source code,
- Take note of my animation loop with the render call commented out and see what else i’m doing.
- Look at the tween commands where I use the onUpdate callback.
- Look at the controls code where I also call render
- Look at all the sections in the code where there is a comment “this line is unnecessary if you are re-rendering within the animation loop”
The example comes from this page : https://sbcode.net/threejs/tween/
