Jumping scene #53
-
Hello, sorry to bother but yet again a question I don't seem to find answers anywhere and would rather ask someone who knows the subject so much <div ref={ref}>
<GlobalCanvas
eventPrefix="client"
eventSource={ref}
style={{ pointerEvents: 'none' }}
scaleMultiplier={0.01}
globalRender={false}
>
<Environment
background={false}
environmentIntensity={
currentSettings.current.environment.environmentIntensity
}
preset={currentSettings.current.environment.preset}
/>
<GoboSpotlight
settings={currentSettings.current.goboSpotlight}
decayAnimation={decayAnimation}
/>
<ambientLight intensity={2} />
<EffectComposer
enabled={
currentSettings.current.toneMapping.enabled ||
currentSettings.current.hueSaturation.enabled
}
>
{currentSettings.current.toneMapping.enabled && (
<ToneMapping
blendFunction={currentSettings.current.toneMapping.blendFunction}
adaptive={currentSettings.current.toneMapping.adaptive}
resolution={currentSettings.current.toneMapping.resolution}
middleGrey={currentSettings.current.toneMapping.middleGrey}
maxLuminance={currentSettings.current.toneMapping.maxLuminance}
averageLuminance={
currentSettings.current.toneMapping.averageLuminance
}
adaptationRate={
currentSettings.current.toneMapping.adaptationRate
}
/>
)}
{currentSettings.current.hueSaturation.enabled && (
<HueSaturation
blendFunction={
currentSettings.current.hueSaturation.blendFunction
}
hue={currentSettings.current.hueSaturation.hue}
saturation={currentSettings.current.hueSaturation.saturation}
/>
)}
</EffectComposer>
</GlobalCanvas>
<SmoothScrollbar />
{children}
</div> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Honestly not sure why you are seeing that jumping. I would try commenting stuff out until it works as expected and try to fix it that way 🤔 |
Beta Was this translation helpful? Give feedback.
Thanks for the example code @antoine-hellocafeine
It seems delaying the postprocessing render priority fixes the bounce issue:
<EffectComposer renderPriority={1}>
I suspect we have to make sure the postprocessing render happens after the scrolling which is also driven by the R3F frame loop
hope this helps!