Jump to content

Compatibility between LODs, EdgesRenderer and InstancedMeshes


Ruffle
 Share

Recommended Posts

Hi, 

I recently implemented LODs for an InstancedMesh.

The problem is, this InstancedMesh has an EdgesRenderer (which works great) but when the quality is reduced (LOD), the edges aren't rendered anymore.

The problem doesn't exist for a regular Mesh, even with LODs:

http://www.babylonjs-playground.com/#QE7KM#14

Here's what happens when you add instances:

http://www.babylonjs-playground.com/#14ESWC#13

You can see that edges are rendered only for the masterMesh and when one of the instances gets degraded, the edges are rendered for the sourceMesh.

I tried to find an obvious solution to this but to no avail. It's not that big of a deal for me but I thought I'd ask anyway. Perhaps somebody knows a solution? Or maybe you're aware of this problem and are going to resolve it in a future update?

Thanks in advance.

 

Link to comment
Share on other sites

Btw, not directly related to edge renderers but

I noticed that if I change the .visibility of a LODed mesh, the value isn't carried over when the LOD changes (regardless if it's an InstancedMesh or a regular Mesh).

Is that the expected behavior? I can go around it by changing the .visibility of the MeshLODLevel.mesh but since I'm also using Instances, there are only some InstancedMeshed that I'd like to change the .visibility of...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...