- Home /
Terrain generation [2D,C#]?
I need to generate the terrain, but generate only the needed terrain (so only inside the camera), though I don't know how to get the X and Y of the edges of the screen.
Thanks for the answers, and I'm sorry if my english is bad.
Are you using an orthographic or perspective camera? Working out the edges of the screen is different for each.
Regardless, what you are better off doing is using some form of chunks, which could be a screen width in size. When you are 2 or 3 chunks away, it is unloaded. This would remove the need to recalculate terrain constantly as you move back and forth over a small area.
Your answer
Follow this Question
Related Questions
Program that generate a mesh from 3 images. What was its name? 0 Answers
Help with randomly generated terrain! 1 Answer
Terrain Generation 1 Answer
Thread ending prematurely? 2 Answers