Skip to content

SRP (URP & HDRP)

mika edited this page Feb 10, 2025 · 15 revisions

In version 3.00 and later, URP and HDRP rendering is included with the plugin. Check PointCloudTools/SRP/ folder for the SRP assets.

For earlier versions, use these:

In some sample scenes, standard materials are used for boxes/spheres, you need to convert them into URP/HDRP materials. You can use Unitys own Windows > Rendering > Material Converter or my custom script to only convert standard materials inside PointCloudConverter/ folder: Window/PointCloudTools/Convert Materials to HDRP and Window/PointCloudTools/Convert Materials to URP

Setup for URP

  • Install URP
  • Enable URP in Project Settings/Graphics/, assign "URP Asset" to SRP pipeline setting field *Or you can use your own URP rendering asset too..
  • You only need to do next steps, IF you want to use VR or you have WorldSpaceCanvas in the scene (or other rendering issue with URP)
  • Open V3 sample scene: Assets\PointCloudTools\Demos\PointCloudViewer\Scenes\PointCloud-TilesViewerV3.unity
  • From inspector Enable SRP: [x] Use URP Custom Pass
  • Select PointCloudTools/SRP/URP Asset_Renderer (or assign to your own urp rendering asset)
  • Click Add Renderer Feature
  • Select PointCloudCustomPassURP from the dropdown
  • Press Play!
    *tested on 2021.3.19f1 (regular URP) & 6000.0.32f1 (uses RenderGraph)

URP Images

  • image

Setup for HDRP

  • Install HDRP
  • Enable HDRP in Project Settings/Graphics/, assign "HDRenderPipelineAsset" to SRP pipeline setting field
  • Open V3 sample scene: Assets\PointCloudTools\Demos\PointCloudViewer\Scenes\PointCloud-TilesViewerV3.unity
  • From inspector Enable SRP: [x] Use HDRP Custom Pass
  • Select MainCamera
  • Add "CustomPassVolume" component
  • In custom volume, Press + and add "PointCloudCustomPassHDRPV3" (this is for V3 viewer)
  • Press + to Add Viewers and assign "@TilesViewer V3" to that field (you can assign multiple viewers here)
  • Press Play!

HDRP Images

  • image

Troubleshooting SRP's

  • Cannot see Measuring line?

  • Toggle Use LineRenderer in GLDebug (in MainCamera)

  • image

  • Error spam like: Script attached to 'DefaultLookDevProfile' in scene '' is missing or no valid script is attached. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

  • Delete those HDRP resource files if you dont use HDRP