You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cesium-dev
I would like to change the transparency of a Cesium3DTileset. For single tiles I managed this via the alpha value in color, but how does it work for the whole tileset? The style function does not change anything for me:
var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
url : './resources/3dtiles/tileset'
}));
tileset.style = new Cesium.Cesium3DTileStyle({
alpha: 0.2
});
Many thanks,
Jörn
Victor
unread,
Jun 12, 2018, 4:33:49 PM6/12/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cesium-dev
Hi Jörn,
Cesium's 3D Tiles' style has only a very limited set of options in terms of appearance (show and color, as far as I know). So to change your the transparency your only option is to decide a color and set the alpha value along with it. For example:
var myStyle =newCesium.Cesium3DTileStyle({ color :"color('#FFFFFF', 0.2)",//white, alpha = 0.2 show :true }); tileset.style = myStyle;
If so I do not see anything related to styling of the 3D Tiles. May be you can point out which line for me? I have also added your code (with the alpha field) to give it a try and the tiles didn't turn transparent.
-victor
Gabby Getz
unread,
Jun 14, 2018, 10:08:23 AM6/14/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cesium-dev
The photogrametry tileset don't have any meta data (or under the hood, a feature table) to style.
If you do want to style a photogrametry tileset, take a look at classification.
Thanks,
Gabby
Gabby Getz
unread,
Jun 14, 2018, 10:09:25 AM6/14/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message