Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Terrain offset when using heightmap

Discussion in 'General Graphics' started by huaweiping0, Jun 5, 2023.

  1. huaweiping0

    huaweiping0

    Joined:
    Jun 1, 2023
    Posts:
    1
    Hi,

    I'm new to the unity and just trying to use heightmap to create a terrain as a background of my scene. My heightmap is a 500x500 raw file and when I create the terrain, I find there is a offset in my terrain.

    I have some objects in the scene but they always hit my terrain at first, then I realize the offset when adjusting my camera position. Right now, I have to set the camera at (0,0,-10) to get match the origin of my terrain.

    I guess there is something related to the heightmap resolution as I find the only option might be 513x513 pixels for my case but is anyone know about that?

    Thanks,
    Weiping