cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

vctr data processing and do mesh extrusion for visualizing

Open tomlee-dev opened this issue 4 months ago • 2 comments

Description

for VCTR (Polygon, Point)

spec document: https://github.com/CesiumGS/3d-tiles/tree/vctr/TileFormats/VectorData

for polygon mesh extrusion works min height -200m and max height 1000m from geoide 0 height.(hard coded)

and for Point. there is no mesh for this just cesium globe anchor, mesh filter with one vertex mesh, and mesh renderer(I thought about this but I don't have best idea about this. adding sphere mesh to render? maybe better idea)

for Polyline. I've not finished implementing this yet. I don't have clear time line (FYI)

for testing this. use with other PR code. https://github.com/CesiumGS/cesium-native/pull/1228 https://github.com/CesiumGS/cesium-unity/pull/601

Issue number or link

Author checklist

  • [x] I have submitted a Contributor License Agreement (only needed once).
  • [x] I have done a full self-review of my code.
  • [x] I have updated CHANGES.md with a short summary of my change (for user-facing changes). ~~- [ ] I have added or updated unit tests to ensure consistent code coverage as necessary.~~ ~~- [ ] I have updated the documentation as necessary.~~

Testing plan

for VCTR Polygon testring (URP) http://localhost:8080/Apps/SampleData/Cesium3DTiles/Vector/VectorTilePolygons/tileset.json http://localhost:8080/Apps/SampleData/Cesium3DTiles/Vector/VectorTilePolygonsBatchedChildrenWithBatchTable/tileset.json

  1. build this PR with other PR code after that we can get com.cesium.unity-{version number}.tgz in CesiumForUnityBuildProject folder. ( https://github.com/CesiumGS/cesium-native/pull/1228, https://github.com/CesiumGS/cesium-unity/pull/601 )
  2. git clone Cesium Unity Samples repo ( https://github.com/CesiumGS/cesium-unity-samples.git )
  3. unpack built tgz file to cesium-unity-samples\Packages\com.cesium.unity folder (overriding)
  4. git clone cesiumjs repo ( https://github.com/CesiumGS/cesium.git )
  5. move Vector folder to Apps/SampleData/Cesium3DTiles folder
  6. build ( "npm install" and "npm run build")
  7. local run ( "npm start" )
  8. open Cesium Unity Samples repo with Unity Editor and open 02_CesiumMelbourne scene
  9. set CesiumGeoreference and Cesium Globe Anchor of DynamicCamera lot, lat, height (0, 0, 3000)
  10. change Tileset Source to "FromUrl" and change url for each test by referencing above for Cesium3DTileset component in Melbourne Photogrammetry game object.
  11. set material from other PR( https://github.com/CesiumGS/cesium-unity/pull/601 ) to Opaque Material in Cesium3DTileset component in Melbourne Photogrammetry game object. and change rendering setting ( AddRendererFeature and other things follow instruction in other PR page, https://github.com/CesiumGS/cesium-unity/pull/601) image

for VCTR Point testing. http://localhost:8080/Apps/SampleData/Cesium3DTiles/Vector/VectorTilePoints/tileset.json http://localhost:8080/Apps/SampleData/Cesium3DTiles/Vector/VectorTilePointsBatchedChildrenWithBatchTable/tileset.json

1~10 are same of VCTR Polygon testing 11. check to set true of Show Tiles in Heirachy in Cesium3DTileset component in Melbourne Photogrammetry game object. 12. in child objects of Melbourne Photogrammetry game object. replace mesh filter to "Sphere" mesh and change value of scale of game object transform to 100, 100, 100 image

tomlee-dev avatar Aug 25 '25 09:08 tomlee-dev

Can we get an update on this?

JanikCodes avatar Nov 19 '25 09:11 JanikCodes

Can we get an update on this?

I have no timeline for updating this. if you need this before this PR is merged, you can checkout this to you local repository and build this by your self. I am sure this vctr data processing code is working great.

by the way for Polyline. the spec is guiding render technique for visualizing it with line width(pixel width). that is why I dont have clear time line fot it. I have no idea for rendering it in Unity for now.

TomLeeLive avatar Nov 20 '25 04:11 TomLeeLive