Skip to main content
Question

Create texture/border on Cesium 3d Tile

  • June 5, 2020
  • 3 replies
  • 132 views

Hi

I have created cesium 3d tiles from a shapefile. The screenshot with pink 3d cylindrical shape shows that.

 

 

I would like to add border and vertical lines as you can see in the sample screenshot from google earth below:

 

Can anyone help on how I can do that?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Unfortunately this isn't possible with FME. You might be able to try and render the silhouette in Cesium, however, I'm not sure. https://cesium.com/docs/cesiumjs-ref-doc/ModelGraphics.html

 

 

Sorry for the lack of help :-/

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • June 5, 2020

You might be able to do this with the CSGBuilder to subtract the textured side if you have a 3D feature for area you want to cut out. Similarly if you have a 2D feature, you could do a similar operation with the SpatialFilter and then extrude and chop the feature.

If this works for you, then you can use step 6/7 from the Adding Different Textures to a 3d City Model article to add the screenshots as an appearance on the top and sides.

CSGBuilder_Difference.fmw


virtualcitymatt
Celebrity
Forum|alt.badge.img+47

You could actually try and create the lines separately as Lines (I think b3dm supports lines). But you can't set a color on them with FME (https://knowledge.safe.com/idea/95399/allow-vector-features-in-gltf-to-be-coloured.html) so they would be white. If you're happy with white this could be an option.

 

 

It's not a solution, more of a workaround