Skip to main content
Question

How to disable shader effect of 3D tiles converted by Cesium 3D tiles writer

  • March 6, 2019
  • 3 replies
  • 90 views

I generated some 3D tiles data using Cesium 3D tiles writer.

Then shader effect is appeared in all of 3D tiles data.

The Cesium 3D Tiles writer seems to write the shader effect in b3dm data by default.

I would like to remove the effect from those 3D tiles data.

Could you tell the solution?

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

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • March 7, 2019

Hi @bigapplerizzi19,

Unfortunately, I don't think there is a parameter to turn off the shaders in the Cesium 3D Tiles writer at the moment. For the time being, it looks like the only appearance parameters that can be set are color (diffuse, ambient, specular, and emissive), shininess, and alpha (and many other parameters for textures) using an AppearanceStyler and/or AppearanceSetter.

If you would like to see a parameter to control the shader in the Cesium 3D Tiles writer in the future, please suggest it in the Ideas section.


Hi @bigapplerizzi19,

Unfortunately, I don't think there is a parameter to turn off the shaders in the Cesium 3D Tiles writer at the moment. For the time being, it looks like the only appearance parameters that can be set are color (diffuse, ambient, specular, and emissive), shininess, and alpha (and many other parameters for textures) using an AppearanceStyler and/or AppearanceSetter.

If you would like to see a parameter to control the shader in the Cesium 3D Tiles writer in the future, please suggest it in the Ideas section.

Thank you @chrisatsafe.

What are recommended appearance parameters of AppearanceStyler and/or AppearanceSetter to remove the shader?

My 3D Models are textured with image data.


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • March 8, 2019

Thank you @chrisatsafe.

What are recommended appearance parameters of AppearanceStyler and/or AppearanceSetter to remove the shader?

My 3D Models are textured with image data.

Hi @bigapplerizzi19,

Sorry for the confusion, currently there is no parameter or transformer that allows you to adjust the shader of 3D Tiles.

Rather the AppearanceStyler creates an appearance style that can later be applied to a surface and the AppearanceSetter Sets appearance style(s) onto the front and/or back sides of geometries as per the documentation. You can also learn more about how the AppearanceSetter/Styler work in the Add Appearances to a 3D City Model article.