Feb
3
2014

River Mesh Generator

river_mesh_maker_unity_1

Testing river mesh generation,
idea is from forum topic: http://forum.unity3d.com/threads/225561-Is-there-any-way-to-have-a-river-flow-without-flow-maps?p=1502875

Webplayer:
http://unitycoder.com/upload/demos/RiverMeshMakerUnity/

Features:
– Start point, length, width, segment length, adjustable x-position (middle of the river), in the screenshot using Mathf.Cos(#)
– Each piece/segment has UV (0,0 to 1,1) so can scroll the texture to Y direction..

Todo:
– Terrain editor plugin (to dig river in unity terrain object)

Problems:
– Would need better water shader..
– Start of the river bit bugged
– Tried baking flow direction to vertex colors, but couldnt get the angles right..
– Visible tiling on slices (depends on shader used.. but should blend them somehow)
– vertical segment start and end have duplicate vertices, not needed..

Image#2: mesh geometry, made from 4 vertices per segment

river_mesh_maker_unity_2


Related Posts

About the Author:

.fi

3 Comments + Add Comment

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.