Skip to content

Troubleshooting

mika edited this page Sep 19, 2024 · 25 revisions

Troubleshooting

Problems loading point clouds at Runtime

Varjo VR issues with point cloud

URP + Worldspace Canvas

Points are duplicated (can see them in scene window, at other location)

  • See URP issue above
  • Or, test disabling other plugins from scene (like Graphy, or anything that uses UI or separate cameras for rendering)

Out of memory error in build (works fine in editor?)

Make sure you build x64 (64bit bit exe), instead of 32bit.

Android pointsize doesnt work?

Adjusting android material(shader) pointsize is not visible in the editor, only in builds.
If start unity with commandline params: -force-glgore or -force-gles, then it might work in editor too.
https://docs.unity3d.com/Manual/CommandLineArguments.html

Large las file gets splitted into different axis groupings

Delete scalars in CloudCompare (forum post)

Error message when converting LAS file

"LAS Import might fail - only pointDataRecordFormat #2 & #3 are supported (Your file is 0)" Its unknown las format, you need to open it in CloudCompare (or other external tools), then save as LAS 1.3/1.4 format.

Error message when importing plugin to project

"Assets\PointCloudTools\PointCloudViewerDX11\Scripts\PointCloudViewerTilesDX11.cs(1025,28): error CS0227: Unsafe code may only appear if compiling with /unsafe. Enable "Allow 'unsafe' code" in Player Settings to fix this error."

Need to enable [x] Allow 'unsafe' Code in Project/Player settings

image

Error message when loading .bin file

filename.bin cannot be opened with ReadAllBytes(), it might be too large >2gb UnityEngine.Debug:LogError(Object)

Limitation in the readallbytes, but in the next update (around summer 2019) can load these larger files too. https://github.com/unitycoder/UnityPointCloudViewer/issues/1

My .CGO format data conversion has some problems

Check if your data uses commas instead of dots (only dots are supported)

// bad data
2295027     
683,099976 880,200012 5544,700195
704,700012 879,400024 5538,500000

// good data
2295027   
683.099976 880.200012 5544.700195
704.700012 879.400024 5538.500000

Cannot see points

  • If you are using DX12 mode, its not supported in most shaders
  • Make sure your point cloud gets scaled and offset near 0,0,0 (otherwise it might be too far to see/find) or too big (if data is millimeters and its not scaled to unity meters)

V3 Tiles format cloud has missing points (or missing tiles)

  • When converting data, set -minpoints= value (its default to 500 or 1000, so any tile that has less than that points, is skipped)

V3 Tiles are loading wrongly, they appean in lines?

  • For V3 must enable -randomize=true in the converter

URP : Mesh points are all in one position only?

I converted point cloud, but cannot see anything on screen?

  • Check if your Unity titlebar has text "<DX11>", if it says "<DX11 on DX10GPU>" that won't work
  • Also set your Camera background to white, just in case the points are black
  • Points can also far away from view, try using (x) AutoOffset near 0,0,0
  • Points might be scaled too much (so they become one single point in scene), try without scaling or with different values

Mesh PointSize doesn't work in DX11 mode

Webgl mesh points are not visible

  • Use "UnityCoder/PointCloud/Mesh/AndroidColorSize" shader for webgl (shader is in "PointCloudViewerPro\Assets\PointCloudTools\Shaders\Mesh\Mobile" -folder)

Point cloud doesnt appear when i press play

  • Check console for errors (if there are errors and you have "break on error", it stops playing and cloud wont load)
Clone this wiki locally