Loosing colors when adding Auto LOD to a mesh

There’s something about a mesh I’m using that causes color loss when I apply auto LOD: https://playground.babylonjs.com/#TA8LXM#1

This issue obviously doesn’t arise with most meshes. But I can’t figure out what it is about my particular mesh that’s causing this issue. Much thanks for your help.

Guess what? It was a bug :slight_smile:
The fix will be pushed to master and to the nightly in a hour or so

Good catch!

Thanks for your help with this. It’s incredible how responsive you folks are! I really appreciate it.

I can confirm that the colors no longer disappear. But I’m having a hard time actually simplifying the geometry of my molecule mesh. Here’s an updated playground example:


When I try to simplify the molecule, the number of vertexes doesn’t change. On the other hand, when I try to simplify a sphere mesh, it works great.

Any ideas? Thanks again.

1 Like

Trying to ping @RaananW (if he still around :)) as he wrote the simplification engine

Hi @Jacob_Durrant,
TL;dr - I think it has something to do with the colors vertex data. But I can’t find the concrete reason.

I can’t find the file’s history in git anymore (it has moved one too many times), but I remember fixing an issue with colors when I implemented this (a few years ago). (Deleted a sentence here)

I will try finding time to debug this later this evening, but as some here have probably noticed, I don’t have a lot of time lately :slight_smile:


Glad to see you back mate!

1 Like

Raanan is back \o/

1 Like

Sorry (sorry sorry sorry!) for the delay. I’m in Japan (family business) until next Tuesday and promise to find the time and look into that