A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate
in the Unity community.
Introducing the new Universal Render Pipeline and High Definition Render Pipeline subforums!
Unity 2019.3 Beta is out now.
Discussion in 'Handheld AR' started by Edur-Games, Jan 15, 2019.
Can I use a skybox as a background in the camera for ARFoundation?
The ARCameraBackground script is what renders the camera feed to the background. You do not need to use this in order to enable pose tracking. The default Unity Camera (without this script) will give you a skybox. Is that what you mean? No camera feed at all?
This sounds like something I want to do. Is it possible to switch between a camera feed and a skybox during runtime, ie switch of the ARCameraBackground and display the skybox, and vica versa?
Sure. You can either
1. Have two cameras with different setups and toggle them OR
2. Have one camera and disable the ARBackgroundCamera and switch the CameraClearFlags from solid color to skybox.
Is it possible to do a LERP kind of thing between the two?
Instead of the switch to just be instant, I'd like to fade between them
if you make your own material you can grab the feed in a shader and apply many types of effect to the feed including fading it out
Could you give me some more info on this please? Just a standard material, then stick that into the camera background?
Or what kind of material and where do I put it?
You’d need to write your own shader