This is a very abstract question, although there are several ways to go if you want to create a scene in which the player can move.
In this answer, I assume that you have the knowledge and control over the processes of vertices, indexes, textures, colors, and normals when creating your model in code.
Use the 3D program to simulate your world. This three-dimensional model should contain information about vertices, indices, texture coordinates, colors, and normals. At runtime, your application applies the information from your model file to regular vertex arrays.
Generate a scene using an image (usually an image in grayscale), and let, for example, black represent the lowest point and white represent the highest point. Then use a texture that describes the landscape and texture for the landscape, and also apply colors to the landscape to get, for example, black color that describes the pits and white that describes the top of the mountains.
These methods, as a rule, I use, however, a quick Google search for "generating OpenGL terrain" or "highfield terrain OpenGL" will give you a good start. I also know that there are several models ready to use on the Internet.
source share