Skip to content

Conversation

tomlee-dev
Copy link
Contributor

@tomlee-dev tomlee-dev commented Aug 25, 2025

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.
CesiumGS/cesium-native#1228
#601

Issue number or link

Author checklist

  • I have submitted a Contributor License Agreement (only needed once).
  • I have done a full self-review of my code.
  • 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. ( Add gltf converting for vctr cesium-native#1228, StencilShadowVolume.Shader from CesiumJS to Unity #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( StencilShadowVolume.Shader from CesiumJS to Unity #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, StencilShadowVolume.Shader from CesiumJS to Unity #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant