Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7196

Threejs crashing when rendering a huge mesh with different materials

$
0
0

So I have a mehs which has around 59k cubes in it. I wanted to assign a different color to each cube, so I did that using a MeshFaceMaterial.

But when I went to the webpage, it instantly crashed in Chrome. So I tried Firefox instead, since it has better dev tools, and it rendered part of the cubes, then froze and crashed horribly.

Is a MeshFaceMaterial not made to handle around 59k materials? or is it just rendering so many materials that is the issue?


Viewing all articles
Browse latest Browse all 7196

Trending Articles