- Home /
Why are my meshes disappear when scrolling in the editor? (not a back side issue)
I get that meshes are one sided and they disappear when you look at them from the wrong side. I also get that as you pass a camera through meshes, they disappear. Neither seem to be the case in this situation.
I'm generating some tiled meshes in script. For whatever reason, the editor camera is clipping the entire mesh when the mesh touches the border of the window frame and I can't for the life of me figure out why. I expect that the mesh should pass beyond the frame of the window.
The goal is to see a continuous set of tiles without gaps on the edge of the window. It's as if the camera is optimizing the meshes out of the way because they are on some boundary but it's still visible.
Anyone?
Answer by Jesse Anders · Oct 02, 2010 at 01:12 PM
Make sure you're recomputing the mesh bounds as needed. The bounds should be recomputed automatically when you assign triangle indices to the mesh, but if you modify the mesh vertices without modifying the triangles, you may need to call Mesh.RecalculateBounds() explicitly.
Thanks. That's the bit that I was missing. It's missing from the Procedural Height $$anonymous$$ap code example which is why I missed it. It works great now.