htmlMesh incomprehensible black frame and white frame

If that still doesn’t help, I’ll gladly try to help you further. Do not hesitate to ask! :smiling_face_with_sunglasses:

2 Likes

Thank you!

Originally, we had similar functionality for player movement. However, after integrating HtmlMeshRenderer) into the project, the call stack started overflowing during movement. We couldn’t quickly identify the cause, so we decided to modify the player movement logic.

We need some time to test the initial player movement approach you described above.

The new approach works as follows:

  • There is a mesh (playerSphere) for collision handling (to prevent the player from passing through other meshes).
  • There is a camera.
  • When the user presses W/A/S/D, the playerSphere moves, and the camera follows its new position following the sphere.

Unlike your approach (and ours before integrating HtmlMeshRenderer):

playerSphere → camera

Our current setup looks like this:
2025-08-11_13-12-40

Therefore, our team needs time to try reverting to the approach you suggested earlier.

Regarding this change:

bbMesh.billboardMode = Mesh.BILLBOARDMODE_ALL;

It didn’t actually improve anything—the mesh just started rotating around me with one of its corners, and the white border remained.

thx!

Hi!

After tons of tweaking and debugging, we still couldn’t figure out what was causing this behavior.
We tried changing the camera movement logic—parenting it to the spheres, experimenting with different subscriptions for calculating and applying the positions of the spheres and the camera.

Eventually, we decided to grab your library and dig through the code to spot potential bottlenecks.
Turns out, we found a 0.00001 multiplier in the private _getTransformationMatrix function inside HtmlMeshRenderer. When we tweaked it to 0.00000001, the white borders became barely visible from any angle—which is perfect for our use case.

It would be awesome to have the ability to assign some multiplier factor when setting up a constructor class. Or perhaps there are other alternative solutions available?

Hi!
I remind You of our problem)

Do you want to create a PR ?

@andrey_amelin I’m not the author of the ADDON, but I can do a PR.
@sebavan

would be great basically moving the literal into a static ppl can configure.

2 Likes
2 Likes

Thanks !!!

2 Likes

@sebavan @roland
Thank You very much!

1 Like