UnityPackage-River Tool

RiverTool是一款由Chris Morris开发的用于Unity3.x的游戏开发工具,适用于SixTimesNothing项目的DawnOfTheTyrant。该工具提供了一系列功能,如创建新河流、添加节点、调整参数等,帮助开发者轻松构建复杂的河流地形。为了最佳效果,建议在最终化河流时使用高“RiverSmooth”参数,并利用Unity内置地形工具进行进一步调整。通过合理选择节点位置和参数设置,开发者可以创建出美观且符合自然规律的河流。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

River Tool

Overview

The River Tool was developed by Chris Morris for an upcoming Six Times Nothing game, Dawn Of The Tyrant, and adapted for public use.

For the latest news on updates for this tool or other Six Times Nothing projects, follow: @_chris_morris on Twitter.

Requirements

The River Tool requires Unity 3.x

 

Watch the Tutorial Video

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.

Usage

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

*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.

*IMPORTANT TIP: After finalizing, delete the script attached to your new river game object to avoid accidentally deleting your mesh. If you close out of Unity (thus deleting local variables), open it back up and try to edit your finalized river, it will be deleted.

The River Tool has one basic function.

  1. New River - Creates a new river object
    1. Click "New River" to create a new river Game Object - 'River' - and select it.
    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.
    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*
    5. Click "Smooth River" to smooth the terrain at the river's edge to your liking. This is available after you finalize.
    6. If the river's edge is protruding, click "Close River" to correct. This is available after you finalize.

Parameters

The River Tool has four parameters that are updated procedurally.

  1. "Riverbed Texture Prototype" - This is the texture prototype (from the terrain's texture list) to use for the riverbed. *Remember, starts at 0*
  2. "River Width" - This is the width of the river.
  3. "River Depth" - This is the depth at which the river is dug. *note: The terrain will not deform below height 0
  4. "Mesh Smooth" - This is the number of steps used in the spline calculations. Change this to suit your triangle/UV needs.

Tips

  • To create a nice looking river, you should try to choose nodes that avoid uphill regions. The tool will force the river downhill and create valleys, but big valleys don't look very good.
  • Finalize the river with a high "River Smooth" for the best results.
  • Use Unity's built-in terrain tools to Raise/Lower terrain to adjust and smooth further.
  • If you are creating a river on rocky, jagged terrain, set a deeper depth to get good definition.
  • If you are getting bare spots in your river, set a higher depth
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值