-
Notifications
You must be signed in to change notification settings - Fork 17
SRP (URP & HDRP)
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:
- URP https://github.com/unitycoder/UnityPointCloudViewer/issues/126
- HDRP https://github.com/unitycoder/UnityPointCloudViewer/issues/105
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
- 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)
- 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!
-
Cannot see Measuring line?
-
Toggle Use LineRenderer in GLDebug (in MainCamera)
-
-
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