Only the sensors or visualizers written with custom shaders need to be migrated to URP/HDRP. The rest of them will work without any changes.
Which means the Depth Camera, RGBD Camera, DepthBuffer Lidar and the Point Cloud Visualizers need to be migrated.
In addition to the shader, the post-processing steps are also different in URP/HDRP. In the built-in pipeline, the post-processing is applied in the OnRenderImage method of the script. In URP/HDRP, the post-processing steps are different.
Note
Now only support migrating the Depth Camera and RGBD Camera to URP/HDRP.
-
Create the URP project
-
Install the ROS-TCP-Connector package
-
Install this package and import sample assets
-
Update the materials from
Window->Rendering->Render Pipeline Converter. Tick theRendering SettingsandMaterial Upgradethen clickInitialize And Convert
-
Open
DepthCameraShader Graph, changeActive TargetsfromBuilt-intoUnivsrsal, then change the material toFullscreenand clickSave Asset -
Go to the
Settingsfolder, create a newURP Universal Renderasset calledURP-DepthCamera-Renderer, and add theFull Screen Pass Renderer Fetureon it -
On the
Full Screen Pass Renderer Feture, select theDepthCameraShader Graph as thePass Material. -
Add the
URP-DepthCamera-Rendererto theRenderer ListofDefault Render Pipeline Asset, such as theURP-HighFidelityasset. And tick theDepth Textureselection -
Select the
DepthCameraandRGBDCameraprefabs, set their renderer toURP-DepthCamera-Renderer -
The Depth Camera and RGBD Camera should work normally in URP
Migrating to HDRP is relatively simple. You need to:
-
Create the HDRP project
-
Install the ROS-TCP-Connector package
-
Install this package and import sample assets
-
Update the materials from
Window->Rendering->HDRP Wizard. ClickConvert All Built-in Materials to HDRP -
Open
DepthCameraShader Graph, changeActive TargetsfromBuilt-intoHDRP, then change the material toFullscreenand clickSave Asset -
Add a custom pass volume in the scene via
Volume->Custom Pass. Set theModetoCamera, drag the Depth Camera or RGBD Camera in the scene to theTarget Camera. Add theFull Screen Custom Passin theCustom Passeslist. Set theFullScreen MaterialtoDepthCameraShader Graph. -
The Depth Camera and RGBD Camera should work normally in HDRP








