-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Description
First of all thanks a lot for this awesome library! The future is now! :D
But it seems that when I use <EffectComposer> from @react-three/postprocessing in my scene the hit testing goes wrong. There are still hit results but the position/rotation is completely wrong.
If I remove the <EffectComposer> everything works completely fine.
Versions i'm using:
- @react-three/xr: 5.0.4
- @react-three/postprocessing: 2.4.6
- @react-three/fiber: 8.0.19
<XRButton
mode="AR"
sessionInit={{
requiredFeatures: ['hit-test'],
optionalFeatures: ['dom-overlay', 'dom-overlay-for-handheld-ar'],
domOverlay: { root: document.body }
}}
>
<Canvas
gl={{
preserveDrawingBuffer: true
}}
shadows
frameloop="demand"
onCreated={(rootState) => {
rootState.camera.position.x = 12
rootState.camera.position.y = 5
rootState.camera.position.z = 13
}}
>
<XR referenceSpace="local">
// my 3D scene
</XR>
<EffectComposer autoClear={false}> // this guy messes up hit testing
<Outline
blur
edgeStrength={4}
pulseSpeed={0.5}
visibleEdgeColor={0xffffff}
hiddenEdgeColor={0xffffff}
/>
<SMAA />
</EffectComposer>
</Canvas>
Metadata
Metadata
Assignees
Labels
No labels