터레인 높이기/낮추기 및 높이 설정 등과 같이 높이에 영향을 미치는 터레인 툴은 하이트맵이라고 불리는 그레이스케일 텍스처를 사용합니다. Unity는 터레인의 각 포인트 높이를 직각 배열의 값으로 나타냅니다. 이 배열은 그레이스케일 하이트맵을 사용하여 표시됩니다. 하이트맵은 터레인에 빌드되고, 하이트맵에 저장된 값은 터레인의 각 포인트 또는 버텍스의 높이를 정의합니다.
하이트맵을 Unity 에디터로 임포트하거나 익스포트할 수 있습니다. 이는 실제 높이 데이터를 사용하여 에베레스트 산 같은 랜드마크를 리플리케이트하거나, Photoshop 같은 외부 에디터에서 하이트맵 이미지를 작업할 때 유용합니다. 또한 Houdini, World Machine 등과 같은 3D 모델링 애플리케이션을 사용하여 터레인을 생성한 후 Unity에 하이트맵으로 임포트할 수도 있습니다.
하이트맵은 RAW 파일로 저장하는 것이 좋습니다. RAW 파일은 대부분의 이미지 및 랜드스케이프 에디터와 호환되는 16비트 그레이스케일 포맷을 사용합니다. Unity 에디터에서는 터레인에 대한 RAW 하이트맵 파일을 임포트하거나 익스포트할 수 있습니다.
에디터에서 임포트 및 익스포트 설정에 액세스하려면 인스펙터에서 Terrain 컴포넌트를 선택한 후 Terrain Settings 버튼(툴바의 기어 아이콘)을 클릭하십시오.
Texture Resolutions (On Terrain Data) 아래에 Import Raw 와 Export Raw 라는 레이블이 표시된 두 개의 버튼이 있습니다.
Import Raw 를 사용하면 Unity가 RAW 파일 포맷의 하이트맵을 읽은 후 에디터에서 생성할 수 있습니다.
Export Raw 를 사용하면 Unity가 하이트맵을 에디터에서 RAW 파일 포맷으로 작성할 수 있습니다.
프로퍼티 | 설명 |
---|---|
Depth | 임포트되거나 익스포트된 하이트맵에서 픽셀당 Unity가 사용하는 비트 수를 결정합니다. • Bit 16: 16비트(2바이트)를 사용합니다. • Bit 8: 8비트(1바이트)를 사용합니다. |
Resolution | 임포트된 하이트맵의 텍스처 해상도(너비 및 높이)입니다. |
Byte Order | 임포트되거나 익스포트된 하이트맵에서 Unity가 각 픽셀의 바이트 순서를 지정하는 방식을 결정합니다. 이 값은 주로 16비트 뎁스 하이트맵에 적용되며, 플랫폼별로 동작합니다. |
Flip Vertically | Unity가 x축에서 익스포트된 하이트맵을 수직으로 플립할지 여부를 결정합니다. |
Terrain Size | Unity가 임포트된 하이트맵을 적용할 터레인의 크기입니다. |
2020–06–30 페이지 수정됨
새로운 UI와 옵션을 반영하도록 콘텐츠를 업데이트함
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.