AnalyticalGraphicsInc / czml-writer

A library for writing CZML content for use with Cesium.
Other
388 stars 142 forks source link

Z-ordering #20

Open mramato opened 12 years ago

mramato commented 12 years ago

In order to properly render CZML on the client, we need some form of Z-ordering in the specification itself. I believe this can easily be accomplished by giving each graphical type (Billboard/Point/Polyline/etc..) a constant value zOrder property. zOrder would start at 0 (bottom of the stack) and go up from there. Higher numbers are drawn on top of lower numbers. If no zOrder property is specified, it is assumed to be 0.

Cesium doesn't actually have support for z-ordering yet, but adding it to the spec now is easy enough and will help other clients who wish to use CZML.

pjcozzi commented 12 years ago

@bagnell and I will look at better z-order support in Cesium as part of the DDR. Right now, it is sort of implicit within a CompositePrimitive.

I am on board with adding it to CZML regardless of if it is ready in Cesium. A few comments:

I'll put some of these notes on the DDR page when I get that up next week.

bhawnadaryani commented 11 years ago

I need to tackle z-ordering with billboards and polygon. Has any progress been made? If not then I would like to tackle it. Any leads would be greatly appreciated.