var gl = canvas.getContext("experimental-webgl");
gl.clearColor(0.5, 0, 0, 0.5);
gl.clear(gl.COLOR_BUFFER_BIT);
var clear = scene._clearColorCommand;
clear.color.alpha = 0;
clear.color.red = 0;
clear.color.blue = 0;
clear.color.green = 0;
clear.execute(context, passState);
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
var viewer = new Cesium.Viewer('map', {
contextOptions : {
alpha : true
}
});
viewer.scene.skyBox.destroy();
viewer.scene.skyBox = undefined;
viewer.scene.sun.destroy();
viewer.scene.sun = undefined;
viewer.scene.moon.destroy();
viewer.scene.moon = undefined;
viewer.scene.skyAtmosphere.destroy();
viewer.scene.skyAtmosphere = undefined;
viewer.scene.backgroundColor = new Cesium.Color(0,1,0,0.0);
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Any thoughts?
Thanks for the quick reply Scott. That worked well until I tried rendering GeoJSON data. Then transparency breaks: http://zebradog.github.io/globe/
Any thoughts?
i was using this method to set the transparency of the background and it has been working great.
I tried to update from release 1.9 to 1.10 and now i can't get transparency working. I tried out release 1.11 now too as 1.10 was having some issues when stars and so on were disabled and the issue still persists.
I can't find what has changed that disables this functionality.
Any help would be greatly appreciated!
Kind regards,
Daniel
I too am trying to get transparency to work with 1.11 with no success. Here's my current code:
var earthViewer = new Cesium.Viewer('cesiumContainer', {
webgl: {
alpha: true
}
});
earthViewer.scene.skyBox.destroy();
earthViewer.scene.skyBox = undefined;
earthViewer.scene.sun.destroy();
earthViewer.scene.sun = undefined;
earthViewer.scene.skyAtmosphere.destroy();
earthViewer.scene.skyAtmosphere = undefined;
earthViewer.scene.moon.destroy();
earthViewer.scene.moon = undefined;
earthViewer.scene.backgroundColor = new Cesium.Color(0,0,0,0);
All objects are being successfully destroyed, but the background colour persists despite setting its alpha to 0.
Kind regards!
How would I remove the earth as well in all but a subarea, like only render the earth inside a bounding volume, or rectangle or ellipse?
Thanks, -Adrienne
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
var viewer = new Cesium.Viewer('cesiumContainer', {
globe: false});