question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Globe Materials not compatible with enableLighting = false

See original GitHub issue

Closely related to https://github.com/AnalyticalGraphicsInc/cesium/issues/6039, but use-case is different nevertheless so decided to open a separate issue (cc @lilleyse as he might be working on this already).

Steps to reproduce:

Result: shader compilation fails

Desired result: not have any time-of-day lighting effects, but still be able to use a globe material for slopes / heights.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jasonbeveragecommented, Dec 20, 2017

That looks great! We have a pretty nice “splatting” layer in osgEarth that we could probably port to Cesium using globe materials. Basically you feed in a land use raster to the GPU and figure out what texture to repeat based on the land use code (grass, rock, same, etc), the normal and elevation.

Here’s a screenshot of what it looks like in osgEarth

https://pbs.twimg.com/media/B1SsPThIIAAjIdD.jpg

On Wed, Dec 20, 2017, 4:58 AM Yousef notifications@github.com wrote:

@pjcozzi https://github.com/pjcozzi correct.

I’m not using globe materials directly, but experimenting with code based on it to generate snow 😃:

[image: image] https://user-images.githubusercontent.com/368857/34201400-a4f9c2f6-e574-11e7-88d8-30526ac1e434.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AnalyticalGraphicsInc/cesium/issues/6042#issuecomment-353018824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAT74jx1eDjWJXeBF6kNFGInZfACMqJkks5tCNpGgaJpZM4Q8bwb .

1reaction
YousefEDcommented, Dec 20, 2017

@pjcozzi correct.

I’m not using globe materials directly, but experimenting with code based on it to generate snow ⛄️ 😎

original image

snow: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Globe Materials not working w/ globe.enableLighting=false ...
I am using the standard stk-terrain dataset, if that's relevant. 2. A minimal code example. If you've found a bug, this helps us...
Read more >
Performance with small polygons in 3D mode - Google Groups
These geometries are added as entities (not primitives) as interaction such as selection is required. ... enableLighting = false; ... material: Cesium.
Read more >
terriajs-cesium/CHANGES.md - UNPKG
600, * Fixed globe materials when `Globe.enableLighting` was `false`. [#6042](https://github.com/AnalyticalGraphicsInc/cesium/issues/6042).
Read more >
Globe - Cesium Documentation
Clipping planes are not currently supported in Internet Explorer. ... Default Value: false ... Enable lighting the globe with the sun as a...
Read more >
CesiumTerrainProvider - Cesium Documentation
Viewer('cesiumContainer', { imageryProvider : imageryProvider, baseLayerPicker : false, terrainProvider : terrainProvider }); // The globe must enable lighting ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found