unity遊戲程式設計(11) 創建遊戲地形

Download Unity遊戲程式設計(11) 創建遊戲地形

Post on 13-Apr-2017

96 views

Category:

Software

3 download

Embed Size (px)

TRANSCRIPT

  • Unity(11)

    March 21, 2017

  • shap

    e th

    e fu

    ture

    Unity

    2 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3Dterrain

    Assets> Import Packages> Environment

    Environment 1/5

    3 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    5

    (Cliff)

    (Grass)

    (GrassRock)

    (MudRock)

    (Sand)

    Environment 2/5

    4 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    2

    Environment 3/5

    5 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3

    Boardleaf ()DesktopMobile

    Conifer()

    Palm ()

    Environment 4/5

    6 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3

    Environment 5/5

    7 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    GameObject> 3D Object> Terrain

    500m500m600m

    Terrain Width = 400 (X)

    Terrain Length = 300 (Z)

    Terrain Height = 150 (Y)

    8 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Draw

    Pixel Error ()

    Base Map Distance

    Cast Shadows

    1/9

    9 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Material

    Built In StandardUnity 5.xPBR (Physically-Based Rendering) splat

    Built In Legacy DiffuseLambert lighting model ()

    Built In Legacy SpecularBlinnPhong lighting model ()

    Custom

    2/9

    10 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Reflection Probes

    Off

    Blend Probes

    Blend Probes And Skybox

    Simple

    ThicknessY

    3/9

    11 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Draw

    Bake Light Probes For Trees

    Detail Distance

    Collect Detail Patches

    Detail Density/

    Tree Distance

    4/9

    12 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Billboard Start

    Fade Length3D

    Max Mesh Trees3D

    5/9

    13 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Speed

    Size

    Bending

    Grass Tint

    6/9

    14 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Terrain Width (X)

    Terrain Length (Z)

    Terrain Height (Y)

    Heightmap Resolution2N1

    Detail Resolution

    Detail Resolution Per Patch

    7/9

    15 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Control Texture ResolutionSplat

    Base Texture ResolutionBasemap Distance

    8/9

    16 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    816RAW

    Import Raw

    Export Raw

    9/9

    17 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Raise/Lower Terrain (/)Shift

    Brush Size 1~100

    Opacity 0~100

    1/4

    18 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Paint Height () () Shift

    Brush Size 1~100

    Opacity 0~100

    Height Flatten

    2/4

    19 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Smooth Height () ()

    Brush Size 1~100

    Opacity 0~100

    3/4

    20 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    4/4

    21 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Paint TextureEdit Textures

    Brush Size 1~100

    Opacity 0~100

    Target Strength 0~1.0

    1/3

    22 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    2/3

    23 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3/3

    24 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Place Trees ()Shift+

    1/7

    25 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Brush Size

    Tree Density

    Tree HeightRandom

    Lock Width to HeightTree Width

    Ramdom Tree Rotation

    2/7

    26 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3/7

    27 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Place Details ()Shift+

    Place Details

    4/7

    28 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Detail Texture

    Min Width

    Max Width

    Min Height

    Max Height

    Noise Spread

    5/7

    29 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Healthy Color

    Dry Color

    Billboard

    6/7

    30 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    7/7

    31 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Environment\Water\Water4\Prefabs\Water4Advanced.prefab

    1/2

    32 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    2/2

    33 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Assets> Import Packages> Characters

    1/3

    34 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    FPS Controller

    Characters\Prefabs\FPSControl.prefab

    FPS ControllerMain Camera

    FPS Controller

    Shift+

    2/3

    35 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3/3

    36 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    GameObject> 3D Object> WindZone

    Mode

    Directional

    ShpericalRadius

    Main

    Tubulence

    1/2

    37 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Pulse Manitude

    Pulse Frequency

    Bend Factor

    2/2

    38 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Asset StoreFree HDR Sky

    1/3

    39 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Window> Lighting

    SceneSkybox

    2/3

    40 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3/3

    41 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    GameObject> 3D Object> Tree

    Shape

    Length ()

    Radius ()

    1/4

    42 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Cap smoothing ()

    Crinkliness ()

    Seek Sun ()

    Flare Radius ()

    Flare Height ()

    Flare Noise ()

    2/11

    43 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    3/11

    44 Wu, ShyiShiou Dept. of E.E., NKUT

    1

    2

    3

    /

  • shap

    e th

    e fu

    ture

    Distribution

    Frequency () = 40

    Distribution () = Opposite

    4/11

    45 Wu, ShyiShiou Dept. of E.E., NKUT

    Random ()

    Alternate ()

    Opposite()

    Whorled()

  • shap

    e th

    e fu

    ture

    Twirl () = 0.25

    Growth Scale = 1

    Growth Angle = 0.18

    5/11

    46 Wu, ShyiShiou Dept. of E.E., NKUT

    Twirl=0 Twirl=0.25

  • shap

    e th

    e fu

    ture

    ()Delete

    ()Delete

    ()

    6/11

    47 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    ()

    Distribution

    7/11

    48 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    8/11

    49 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    9/11

    50 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Shape

    Size ()

    Perpendicular Align ()

    Horizontal Align ()

    Wind

    Main wind ()

    Main Turbulence ()

    Edge Turbulence ()

    10/11

    51 Wu, ShyiShiou Dept. of E.E., NKUT

  • shap

    e th

    e fu

    ture

    Geometry/Material

    11/11

    52 Wu, ShyiShiou Dept. of E.E., NKUT