I encountered an issue while loading terrain data in Cesium for Unity. I have a set of oblique photography b3dm files and point cloud pnts files for a specific region. Loading the b3dm files works fine, but when loading the pnts files, the angles are incorrect. After modifying the gltfUpAxis in the tileset.json file for the point cloud, the loading works correctly. However, theoretically, I shouldn’t have to modify the JSON file since the gltfUpAxis should be the same for both b3dm and pnts. Why is one correct and the other incorrect?
Hi @zdd900224, welcome to the community!
In the past, we’ve had people post about issues with their point clouds, but it turned out that they were tiled with the wrong orientation. For example: Point cloud data loading error. So my first question is to ask what you used to generate this data—it could be related.
If that isn’t similar to your problem, though, let us know. We would still appreciate more detail so we can diagnose your issue. In particular:
- Can you share a screenshot of the incorrect rendering?
- Do the b3dm and pnts tiles belong to the same Cesium3DTileset?
Thank you in advance!
I’m very sorry that I only saw your reply due to some personal reasons.
I generated the data using a software:DJI Terra.
it can be assumed that b3dm and pnts belong to the same cesium3dtileset because I generated it using the same code, but the URLs are different.
Thank you again for your help!
Hi @zdd900224,
No worries. Unfortunately, it’s difficult to provide support for 3D Tilesets that were generated outside of Cesium software. Something may have gone wrong in the tiling process.
But I won’t rule out the possibility that it’s a Cesium error. Do you still have your source photogrammetry / point cloud data? If so, I would recommend trying to tile the data through Cesium ion and see if that loads with the correct orientation. Then we can narrow down where the error may be coming from.
I haven’t used the Cesium ion yet,but I did two other tests to see if it was helpful。
1.The PNTS data is loaded correctly in the Cesium web。
2.The PNTS data is not loaded correctly in CesiumForUnity, but if I check “Show Tiles In Hierarchy” and then select a tile, modify the “Rotation X” of “Cesium Global Anchor” from 0 to 90, then the pnts will be loaded correctly。