Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon Intervals and Availability broken in IE #7103

Closed
hpinkos opened this issue Oct 1, 2018 · 6 comments
Closed

Polygon Intervals and Availability broken in IE #7103

hpinkos opened this issue Oct 1, 2018 · 6 comments

Comments

@hpinkos
Copy link
Contributor

hpinkos commented Oct 1, 2018

http://localhost:8080/Apps/Sandcastle/?src=CZML%20Polygon%20-%20Intervals%2C%20Availability.html&label=CZML

This works in 1.45 but not in 1.46

TypeError: Unable to get property '_target' of undefined or null reference
TypeError: Unable to get property '_target' of undefined or null reference
   at UniformSampler.prototype.set (https://cesiumjs.org/releases/1.46/Source/Renderer/createUniform.js:198:9)
   at ShaderProgram.prototype._setUniforms (https://cesiumjs.org/releases/1.46/Source/Renderer/ShaderProgram.js:501:13)
   at continueDraw (https://cesiumjs.org/releases/1.46/Source/Renderer/Context.js:1000:9)
   at Context.prototype.draw (https://cesiumjs.org/releases/1.46/Source/Renderer/Context.js:1036:9)
   at DrawCommand.prototype.execute (https://cesiumjs.org/releases/1.46/Source/Renderer/DrawCommand.js:502:9)
   at executeCommand (https://cesiumjs.org/releases/1.46/Source/Scene/Scene.js:2069:13)
   at executeCommands (https://cesiumjs.org/releases/1.46/Source/Scene/Scene.js:2259:17)
   at executeCommandsInViewport (https://cesiumjs.org/releases/1.46/Source/Scene/Scene.js:2756:9)
   at updateAndExecuteCommands (https://cesiumjs.org/releases/1.46/Source/Scene/Scene.js:2604:13)
   at render (https://cesiumjs.org/releases/1.46/Source/Scene/Scene.js:3163:9)

Related: A bunch of these tests are failing with the same error message: http://localhost:8080/Specs/SpecRunner.html?spec=DataSources%2FGeometryVisualizer

@hpinkos
Copy link
Contributor Author

hpinkos commented Oct 1, 2018

Marking this Next Release because it's a regression. We really should have caught this before now...

@hpinkos
Copy link
Contributor Author

hpinkos commented Oct 26, 2018

@likangning93 this seems to have broken with your Materials on Ground Primitives PR

@hpinkos
Copy link
Contributor Author

hpinkos commented Oct 26, 2018

This is what git bisect found

image

Cesium doesn't work at all in the two ? commits so its hard to say when it broke.

@lilleyse
Copy link
Contributor

Looking into this closer, this seems to happen when

  1. Depth textures aren't supported
  2. Ground primitives are batched

When ground primitives are batched they derive texture coordinates from reading czm_globeDepthTexture which is not defined if depth textures aren't supported.

Either the ground primitives shouldn't be trying to draw themselves at all. Or they shouldn't be batched.

@likangning93 do you know if this might be a quick fix?

@likangning93
Copy link
Contributor

I'll take a look

@likangning93
Copy link
Contributor

@hpinkos sorry must have slipped my inbox somehow...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants