-
Notifications
You must be signed in to change notification settings - Fork 281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for 3D Tiles Styling Language #1392
Comments
Hi @yuziqii, The project board you linked hasn't been updated in a long time 😅 Yes, we have updated Cesium for Unreal to support Those limitations that you listed are true, and they're due to several factors:
So unfortunately, to take advantage of Unreal's node-based material graphs, you have to do it all at the beginning, and it can't be changed at runtime. However, your work with the 3D Tiles styling language looks awesome! This would be a cool community contribution, if you're willing. Regarding your question, I don't think I follow. The |
@j9liu Thanks for your reply. The reason I use the Therefore, I prefer the 'Translucent' blend mode. However, as you can see from the pictures in my previous comment, simply changing the blend mode from By the way, I would love to submit a PR about this feature once I resolve these minor issues. I'm open to discussing this further if anyone has ideas. |
Is there any updates about Styling metadata?
I've noticed the material system is already supports metadata styling by using the
CesiumFeaturesMetadataComponent
, which is quite impressive. However, there seem to be two limitations: But we have to generate the material layer first, and as far as I can see, there are two limitations:In light of this, I delved into the code found out a potential solution. Here's my thoughts:
FColor
, then encode the result to a texture pamameter defined in material layer or material layer blend. This process is just like encoding metadata to the corresponding texture parameter, with an additional evaluation step.StylingResult
texture parameter.And I have tried to implement this, here is the result:
However, I encountered some issues. In order to set the vertex opacity, I changed the material blend mode to
Translucent
. Strangely, the tileset appeared darker then when using the blend modeOpaque
orMask
. Yet, if I switch to theMask
blend mode, I can't set the tileset to be translucent. It can only be either transparent or opaque. Thus, I'm wondering if there is any way to use blend modeMask
to achive translucent in the tileset? Any help would be greatly appreciated!The text was updated successfully, but these errors were encountered: