Tech Off Post

Single Post Permalink

View Thread: Discuss the Beginning Game Development series on Coding 4 Fun
  • User profile image


    Been looking at the article a little more

    Just to be sure can i ask is this article and corresponding code finished???


    With these changes to the camera class, integrating the terrain into the game will be a lot easier. It also shows you that there are many ways of accomplishing the same task. You should experiment with the various versions and choose the one you like best.

    Terrain Elevation

    In the last article you may have noticed that we used the Scaling matrix to change the size of the terrain mesh before rendering. These scale variables must be applied to any coordinate resolutions, so I moved them into separate variables. Remember to set add _device.RenderState.NormalizeNormals = true to recompute the normals.

    At the bottom of the Terrain class add the following code.

    From what i can gather the tutorial doesnt explain how to integrate the newly created terrain into the main project.