unity基础开发----Unity3D的River Tool 河流工具

River Tool(河流工具)

The River Tool requires Unity 3.x

要求Unity 3.x 版本

Download(下载)

Direct Download

Asset Store

Installation instructions(安装说明)

Unzip and import "PublicRiverTool.unitypackage" into your project. If no package exists, just unzip and copy the folder directly into your assets folder.

解压并导入"PublicRiverTool.unitypackage"文件到你的项目中。如果没有包存在,就解压并拷贝到你的assets文件夹中。

Usage(用法)

First, drag "WaterToolScript.cs" onto your terrain object.

首先,拖拽"WaterToolScript.cs"到你的地形对象上。

*Note: The terrain object's position needs to be at (0, 0, 0). If you need to you can create the river at this position and then move the terrain and river mesh back to the original, offset, location.

*注:地形对象的位置需要在(0,0,0)上,如果你把地形、河流网格移回到原始偏移位置就可以创建河流了(翻译的别扭呵呵)

The River Tool has one basic function.

使用River Tool的基本步骤:

创建新河流步骤:

1.Click "New River" to create a new river Game Object - 'River' - and select it.

点击"New River" 创建一个新河流对象-“River” 并选择它。

2.Click "Add River Node". Give the editor window focus (right click) and find an appropriate node position with your mouse. Press 'r' on your keyboard to add a node at that location.

点击"Add River Node", 在编辑窗口上找到一个合适的位置点下鼠标右键。然后在键盘上按下"r" 键就可以在你选择的位置创建一个节点。

3.Continue adding nodes and changing parameters until you are satisfied with your river.

按照上面的方法继续添加节点并且调整参数,直到创建出你比较满意的河流为止!

4.Click "Finalize River" to finish the river and deform the terrain. *You cannot add nodes after finalizing*

点击"Finalize River" 完成河流和变形的地形。当你点击"Finalize River"后,你就不能再添加节点。

5.Click "Smooth River" to smooth the terrain at the river's edge to your liking. This is available after you finalize.

点击"Smooth River"按钮用来平滑地形和河流边缘。


6.If the river's edge is protruding, click "Close River" to correct. This is available after you finalize.

如果河流边缘凸出地形外面,点击"Close River" 就可以得到矫正。

Parameters(参数)

The River Tool has four parameters that are updated procedurally.

工具的四个参数及细节。

"Riverbed Texture Prototype" - This is the texture prototype (from the terrain's texture list) to use for the riverbed. *Remember, starts at 0*

河床纹理原型- 河床的纹理来自于地形的纹理。 *记住,要从0开始*

"River Width" - This is the width of the river.

河的宽度

"River Depth" - This is the depth at which the river is dug. *note: The terrain will not deform below height 0

河的深度- 调整河流的深度。* 地形的高度不能低于0*

"Mesh Smooth" - This is the number of steps used in the spline calculations. Change this to suit your triangle/UV needs.

网格平滑

自己测试的效果,感觉还不错!

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值