Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.07k stars 1.15k forks source link

Detected plane and the plane texture are not at the same position when using LWRP #284

Closed RealMSHB closed 4 years ago

RealMSHB commented 5 years ago

Hi I want to use Ar foundation and LWRP at the same time. after spending one day to get the LWRP work with AR foundation, now I have a problem that the plane detection works correctly and I can see the generated lines around the detected plane but the texture of the plane is at the height and position of the camera.

this is without the LWRP assigned: photo_2019-08-29_16-21-56

this is with LWRP: photo_2019-08-29_16-21-47

I have also tested the branch sample project that is available in one of the branches here and it has the same problem.

Unity 2019.1.14f1 Annotation 2019-08-29 162553

tdmowrer commented 5 years ago

ARFoundation 3.0 has much better LWRP and UniversalRP support. Could you try that? Here are step-by-step instructions.

apatelcgs commented 5 years ago

ARFoundation 3.0 has much better LWRP and UniversalRP support. Could you try that? Here are step-by-step instructions.

same issue with 3.0, unity 2019.3.0a11

tdmowrer commented 5 years ago

On what device(s) have you reproduced this issue? Is it limited to Android or iOS?

mdurand42 commented 4 years ago

This looks as though it is a consequence of not updating shaders for scriptable pipelines. Please follow the instructions for configuring your project for URP and re-open the issue if needed.

https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/ar-camera-background-with-scriptable-render-pipeline.html