Setting the texture draw distance for the renderer

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Setting the texture draw distance for the renderer

      Hey guys,

      I'm at a loss modifying the drawing distance for the renderer in my game. I've tried disabling culling before the drawing of the terrain patches, extended the camera frustrum so that it encloses the entire terrain, but the renderer is only drawing triangles within a bounding box of around 50.0f from the camera position.
      There should be an image of what's happening linked here...

      [IMG:http://www.freeimagehosting.net/uploads/4544d65b88.jpg]

      ...which shows what is being output. The black mesh being drawn is the collision data for the terrain from Bullet's diagnostic drawer.

      Does anyone have an idea why this is happening?

      Thanks in advance :)
      PsychoLogic
    • Ahhh, I knew it would be something stupid causing it.

      The 'dim' value used in the creation of the SkyBox was hard coded to 50.0f and dictates the distance from the camera to draw the vertices of the mesh, so the sky box was being drawn over the top of the terrain. I changed the dim value to a function of the camera frustrum's m_Far value and its all fixed.

      PsychoLogic