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.

label-layer issue with Luma.gl v4

See original GitHub issue

It seems that nothing is shown in the label-layer example with Luma.gl V4, which works fine with Luma.gl V3.

More specifically, with V4, when initializing a Texture2D with a 2d canvas, a Texture2D object of width=1 and height=1 is returned. See code below in the label_utils.js:

return {
  mapping,
  texture: new Texture2D(gl, {
    pixels: canvas,
    magFilter: GL.LINEAR
  })
};

This is probably related to refactoring of the texture class in Luma.gl. (I had a glance at the change log and saw a few changes on that class.) Anyway, it works great with V3. Just wonder if my thought is correct.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
ibgreencommented, Apr 17, 2020

@gregsadetsky Recommend opening a new issue with well worded title (e.g. Mipmap failure on WebGL1 / ChromeOS). This is a very old issue that’s been closed for three years (and luma.gl is now on v8!).

We do not do any testing on ChromeOS but can certainly take patches or even make fixes if we can pinpoint the issue sufficiently, so that would be the initial goal in that issue.

1reaction
howtimeflies0commented, Jun 8, 2017

@rivulet-zhang yeah. this issue has appeared multiple times. It’s due to WebGL1’s inability to handle non-power-of-two textures. It didn’t appear in luma.gl v3 because we didn’t follow the spec closely and didn’t use WebGL context in its default state.

https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Using_textures_in_WebGL#Non_power-of-two_textures

There are three ways to resolve it: 1) use power-of-two-textures (resize your texture with power-of-2 width / height. this is preferred method; 2) turn off mipmap, change min filtering mode to GL.LINEAR and also change wrap mode to GL.CLAMP_TO_EDGE. 3) use WebGL 2.

We are going to add a check to luma.gl in our next alpha version to automatically do 2) for users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

label-layer issue with Luma.gl v4 · Issue #683 · visgl/deck.gl
It seems that nothing is shown in the label-layer example with Luma.gl V4, which works fine with Luma.gl V3. More specifically, with V4, ......
Read more >
Upgrade Guide - luma.gl
Upgrade Guide. Upgrading from v8.4 to v8.5. Transpilation. The module entry point is now only lightly transpiled for the most commonly used evergreen ......
Read more >
decky.gl | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Source - GitHub
worldPosition (#7318) - [pydeck-carto] fixed example for H3 strokes (#7306) #### deck.gl [8.9.0-alpha.4] - Oct 4 2022 - [CARTO] Support custom markers with ......
Read more >
Untitled
Hungry luma mario galaxy, Nigel hess shakespeare pictures, Pekka huovinen ... Dentist bennett rd st clair, Lendziona 6, Project life sunshine edition, ...
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