as the title
I got the forward render pipeline setting correct
-create custom forward render data
-add ar render data to UniversalRenderPipleineAssts
then I build the game, it shows a black screen, then I put a box in the screen, and build again the box looks like static, if the tracking works at least I should see a box located in the real 3D world, so I guess the tracking also stops working, and I noticed this:
it was working with Unity2019.3+ARfoundation 3.0, since unity released the new version, I want to update some of my old projects…but not sure did I made any mistake with new version??
I have exactly the same issue, black screen no matter what and objects placed in space, the phone only track left/right movements and rotations, but no Z+ or Z- movement.
At least it this is what look like, because the screen, except the objects, is totally black so I can only imagine what’s going on.
This issue only happen if the project is URP, if project is 3D everything works correctly
( sorry I’m a noob, I hope I explained myself )
If you already got an URP proj find the file ForwardRenderer in Settings directory in your project folder. In the Inspector go to Renderer features and add new Renderer Features. (you have arrived at your destination ) Unity URP 2019.4.4f1 ARFoundation 3.1.3 works at least
Here are all steps needed to set up AR Foundation with Universal Render Pipeline (URP):
Set ‘Universal Render Pipeline Asset’ to ‘Project Settings/Graphics/Scriptable Render Pipeline Settings’.
Check that the ‘Project Settings/Graphics/URP Global Settings’ reference is set.
Add ‘AR Background Renderer Feature’.
And the very important, but not an obvious part. Set a '‘Project Settings/Quality/Render Pipeline Asset’ for the default quality level (marked as green) to ALL platforms you intend to use with AR Foundation.
I have been getting this too, always intermittently or after building or resetting my library.
FINALLY, I believe I have tracked it down to making sure the ‘Rendering’ is set in all of the ‘Quality’ levels. Like in the image above, the Medium quality needs to be selected ‘grey’ and the URP is set to the Pipeline Renderering Asset.
Almost all of the instructions show using the GRAPHICS tab only to set up the Pipeline Asset. My assumption would be that the Quality would default to what’s in the GRAPHICS tab if it’s null.
Note that this documentation may be out of date depending on the version of URP in your project. (Instead of Pipeline Asset (Forward Renderer), you might see URP Asset (with Universal Renderer), otherwise the steps are the same.) I’ve made a note for us to update this doc.
Sorry to dig this up, but I’m still having trouble making URP and AR Foundation work. I’m on Editor 2022.1.3f1, AR Foundation 4.2.3. I created a project using the AR (Core) Template and just using that, the sample scene shows the camera background and detects planes as it should on an actual iOS device.
The issue:
After recompiling and installing on my device, the background is black. Detected Planes (shown as dotted transparent meshes) do work and respond to the devices movements.
I’m having this problem too with 2022.1.4f1 and AR Foundation 5.0.0-pre.12. I don’t really want to downgrade the project, it’s fairly complex. Unfortunately, 2022 won’t let me downgrade AR Foundation to 4.2.3 to test if that would work, so I assume this won’t work until AR Foundation Remote is updated.
@KyryloKuzyk will you be updating AR Foundation Remote soon to work with 2022 and URP?
If you used AR Foundation 4.2.3 on your computer before, you can find the package in a Unity cache folder. For example, on mac cache is located here:
/Users/username/Library/Unity/cache/packages/packages.unity.com/com.unity.xr.arfoundation@4.2.3
Then, you can install the package by pressing ‘Package Manager/Install package from disk’ and selecting the package.json file.
Other people complained that camera video doesn’t work in a real build, not in the Editor. Does camera video work fine for you in a real build with Unity 2022 and URP? If it’s not, then it will also not work with the AR Foundation Remote plugin. The ‘replicates real AR device behavior in Editor’ part of the plugin comes into play here
Thanks for the quick response. I did not try a real build with AR Foundation 5.0, but it’s good to know your plugin is replicating actual device beahvior.
I probably do have 4.2.3 elsewhere, but I was able to remove the ‘fixed’ AR Foundation 5.0 library after removing the ARKit and ARCore packages first. Then I could use the Package Manager to install 4.2.3. But, unfortunately I still have a black screen. The plane recognition works fine, just no background renderer.
I did build this version, with 4.2.3 to the iPhone and it is indeed black in the build as well. Therefore, it must be a 2022.1 problem or a URP problem. I’m using URP 13.1.8 release version and I see no option to downgrade to test another URP version. I’ve carefully gone through the setup steps and cannot get anything but the black screen, with working planes, etc.
For now, you should use the latest LTS version of unity and the corresponding packages of if you can. Sorry, I don’t have any advice if you’re on 2022 with the latest packages