This issue is kind of related to the StackOverflow post here.
I have two layers that I’d like to display stacked on top of each other in Cesium. The bottom layer is a heat map (pulled from this repo); the upper layer consists of opaque polygons with a slightly higher height property than the heat map (think rectangles, ellipses, or polygons loaded from GeoJSON).
The heat map needs a couple of tweaks to show transparently over Cesium’s base tile set. Applying the relevant PR seems to introduce a bug where a translucent entity (heatmap) will occasionally “poke through” any opaque layers above it depending on the camera’s pitch / magnitude. I’ve created a gist so that you can see the bug in action (just copy/paste into sandcastle).
Am I using the translucenct property correctly? It seems like the fix suggested in the stack overflow article above won’t apply to this situation.
Thanks for the update! I’d take a shot at fixing render ordering, but there’s a pretty steep learning curve (and you probably wouldn’t want to see my code :P).
Rick –
To get your started, just add the Cesium + CesiumHeatmap script to your page, create the heatmap using a bounding box (NSEW lat / lon coordinates), then use one of the setData() methods to draw pixels on the canvas (hint: use setWGS84Data() for latitude / longitude data). If you need more help, I can work up an example later on today.
This issue is kind of related to the StackOverflow post here.
I have two layers that I'd like to display stacked on top of each other in Cesium. The bottom layer is a heat map (pulled from this repo); the upper layer consists of opaque polygons with a slightly higher height property than the heat map (think rectangles, ellipses, or polygons loaded from GeoJSON).
The heat map needs a couple of tweaks to show transparently over Cesium's base tile set. Applying the relevant PR seems to introduce a bug where a translucent entity (heatmap) will occasionally "poke through" any opaque layers above it depending on the camera's pitch / magnitude. I've created a gist so that you can see the bug in action (just copy/paste into sandcastle).
Am I using the translucenct property correctly? It seems like the fix suggested in the stack overflow article above won't apply to this situation.
Here's a handy-dandy .gif of what's happening:
Any advice is greatly appreciated!
Can you give some tips about how to develop your functions above gif