vctr data processing and do mesh extrusion for visualizing
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.mdwith 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
- 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 )
- git clone Cesium Unity Samples repo ( https://github.com/CesiumGS/cesium-unity-samples.git )
- unpack built tgz file to cesium-unity-samples\Packages\com.cesium.unity folder (overriding)
- git clone cesiumjs repo ( https://github.com/CesiumGS/cesium.git )
- move Vector folder to Apps/SampleData/Cesium3DTiles folder
- build ( "npm install" and "npm run build")
- local run ( "npm start" )
- open Cesium Unity Samples repo with Unity Editor and open 02_CesiumMelbourne scene
- set CesiumGeoreference and Cesium Globe Anchor of DynamicCamera lot, lat, height (0, 0, 3000)
- change Tileset Source to "FromUrl" and change url for each test by referencing above for Cesium3DTileset component in Melbourne Photogrammetry game object.
- 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)
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
Can we get an update on this?
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.