I am attempting to re-render the scene after users change a dat gui slider, as this reforms some of the meshes. However, calling renderer.render(scene, camera) in the method within the scene pipeline module (called on start) does not work. It seems re-rendering on update would be the best move, but the documentation is not clear on when/how update event is triggered.
can you provide some more context on your setup and what you’re building? what framework are you using and what changes are the dat gui slider supposed to have on the scene?
assuming you’re using XR8.Threejs.pipelineModule(), render() is already called within that pipeline module so adding the call elsewhere is not recommended. The source for that pipeline module looks similar to this: web/examples/threejs/custom-pipeline-module/customThreejsPipelineModule.js at master · 8thwall/web · GitHub . Note that renderer.render() is called within the onRender() lifecycle method. If you need more control over the renderer, you can use your own custom three.js pipeline module as linked above instead of XR8.Threejs.pipelineModule() but it would be good to learn more about your use-case first to make sure that is the right approach.
Thank you for your response! It turns out I had an error elsewhere in the code that was messing things up, and manually re-rendering actually won’t be necessary.