Quantcast
Channel: Questions in topic: "chunks"
Viewing all articles
Browse latest Browse all 165

How to load/save 'Chunks' near cam for mesh terrain?

$
0
0
Hi, I have a procedurally generated mesh, I want to be able to generate an 'infinite' amount of them. I have a rough idea on how to do this, but can't seem to put it into code. :/ I'm trying to have my terrain generate based on the position of the camera. I can easily give each terrain it's heightmap via perlin noise and offsetting it, but I don't know how to save/load this when needed. Would I just instantiate a terrain prefab? And when the camera gets close do I enable it's renderer? How do I know the camera is facing, or near, a chunk?

Viewing all articles
Browse latest Browse all 165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>