CZML loading

Hello,

I try to load some points with czml:

http://devel.iwlearn.org/iwlearn/iw-projects/3399/maps_graphics/project_locations/@@cesiumczmlview.html

the czml at:

http://devel.iwlearn.org/iwlearn/iw-projects/3399/maps_graphics/project_locations/@@czml.json

gets loaded but the billboards do not show.

it should look like http://devel.iwlearn.org/iwlearn/iw-projects/3399/maps_graphics/project_locations/

can you have a look at the code (starts at line 184 iv @@cesiumczmlview.html) and tell me what i am doing wrong there

It looks like you need to insert a call to visualizers.update(currentTime) inside the animate function in order for the visualizers to build the 3D primitives.

Since it looks like you’re not doing anything time-varying in your CZML, it doesn’t matter what currentTime is set to, so you can just default-construct a JulianDate to set it to “now”.

It looks like you need to insert a call to visualizers.update(currentTime)
inside the animate function in order for the visualizers to build the 3D
primitives.

This partially works, the visuializers._dynamicObjectCollection has the
values from the loaded
czml, the billboard graphic gets loaded, but stil is does not show on the
globe

In your CZML json file, the location of the billboards are specified as Cartesian X/Y/Z coordinates in meters, but it looks like you might be intending to specify Cartographic lon/lat/alt in degrees:

“position”: {“cartesian”: [31.5, -2.0, 0.0]}

This Cartesian position is far below the surface of the earth.

right it should be cartographicDegrees, corrected.

but it still does not show,

It looks like it’s showing up for me. Maybe try clearing your browser cache?

Ok I get it on my personal laptop, on my office computer there
might be an issue with webGl on my office computer. I’ll investigate

and report back.

OK definitively a driver/webgl problem:

It does not run on (i.e, the baselayers show but the czml layers do not)

on an HP Probook 4720s (ATI Rdeon HD 5400) Ubuntu 12.04, open source driver

Note that only firefox support webgl on that machine, google chrome does not support

webgl on this configuration. When I start chrome with --ignore-gpu-blacklist the cesium

globe appears, but the czml is not rendered (like in firefox)

It does run on a compaq CQ 61 (Intel GM 45 Express), Ubuntu 12.04, open source driver

next issue:

Polyline seems to ignore the outlineWidth and width parameter

http://devel.iwlearn.org/iwlearn/iw-projects/3399/maps_graphics/project_locations/@@cesiumczmlview.html

the czml at:

http://devel.iwlearn.org/iwlearn/iw-projects/3399/maps_graphics/project_locations/@@czml.json

{"polyline": 
{"color": {"rgba": [59, 255, 0, 255]}, 
"width": 21.0, 
"outlineWidth": 30.0, 
"outlineColor": {"rgba": [0, 255, 237, 255]}, 
"show": true}, 
"id": "b015b42583a74c4a9c338170b54e3583", 
"vertexPositions": {"cartographicDegrees": [33.420872703735036, -2.5326792529019868, 0, 33.420872703735036, -2.5367950950326392, 0, 33.418641105834887, -2.5390245040521209, 0, 33.422074333373715, -2.550342982741765, 0, 33.432545677365617, -2.5558306941639022, 0, 33.433403984250781, -2.5632047694333928, 0, 33.436322227658877, -2.565948600555275, 0, 33.446106926143727, -2.5640622172912204, 0, 33.459496513543726, -2.5733226174996267, 0, 33.490738884144925, -2.5906428149146072, 0, 33.49417211168376, -2.5842978195115771, 0, 33.501553550891245, -2.5949299559776953, 0, 33.513913170030683, -2.6009319290364812, 0, 33.517861381700243, -2.5999030213958223, 0]}},

but the polyline is shown with a width of aprox 3 px

( i am using b14)

Good new and bad news.

First, the bad news. This is an issue with ANGLE and not in our control. Both Chrome and Firefox use ANGLE on Windows, and it only support line widths of 1, making thicker lines and outlined lines impossible using traditional line rendering. They are no interested in changing it. WebGL report will show what your minimum/maximum values are: http://analyticalgraphicsinc.github.com/webglreport/

The good news is that the polylineMaterials branch has new materials based lined rendering, which should go into master sometime soon (and then b15 on May 1st). This will fix the issue and allow for both outlines and widths (along with custom materials for all kinds of effects, like arrow heads, ribbon lines, etc). If you want to give the new stuff a spin, you can just grab that branch, but keep in mind that there is still some work being done on it.

Matt

Good new and bad news.

First, the bad news. This is an issue with ANGLE and not in our control.
Both Chrome and Firefox use ANGLE on Windows, and it only support line
widths of 1, making thicker lines and outlined lines impossible using
traditional line rendering. They are no interested in changing it. WebGL
report will show what your minimum/maximum values are:
http://analyticalgraphicsinc.github.com/webglreport/

OK, so it's a known issue

The good news is that the `polylineMaterials` branch has new materials
based lined rendering, which should go into master sometime soon (and then
b15 on May 1st). This will fix the issue and allow for both outlines and
widths (along with custom materials for all kinds of effects, like arrow
heads, ribbon lines, etc). If you want to give the new stuff a spin, you
can just grab that branch, but keep in mind that there is still some work
being done on it.

fine with me I'll wait for the next iteration :slight_smile:

OK definitively a driver/webgl problem:

It does not run on (i.e, the baselayers show but the czml layers do not)
on an HP Probook 4720s (ATI Rdeon HD 5400) Ubuntu 12.04, open source driver
Note that only firefox support webgl on that machine, google chrome does
not support
webgl on this configuration. When I start chrome with
--ignore-gpu-blacklist the cesium
globe appears, but the czml is not rendered (like in firefox)

Another observation:

Lines and Polygons are rendered. Points and Billboards are not.
(Is this a known behaviour?)