top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

City Planner

Project type

Application

Date

Q2 2023

Made in

Unreal Engine 5

City planning tool for early stages of city planning. Generates terrain from a user-chosen height map. Possibility to create and edit houses, roads, train tracks, trees, and water. Group project made in Unreal Engine 5 as a standalone application.

Parts made entirely by me:

Terrain - Takes a png image that's imported by the user and creates a render target with desired terrain size using it. A flat mesh is then created with the same size as the render target. To get the height difference on the terrain a loop is executed that runs through every pixel and extrudes 4 vertices in a square shape on the newly created mesh, creating a cube with the center on read pixels position. The height of the extruded cube is determined by the pixel color of read pixel. For the mesh to be able to have water painted on it, it also has to have its UVs regenerated. That is made possible using XAtlas from the plug-in Geometry Script.

Houses - Made by placing an actor that is selectable using line trace. Only one house is selectable at the same time and the selected house is highlighted in green. An option to edit the currently selected house is available for the user. The actor contains a cube that is editable in rotation and length using mouse position, and width and height using keyboard inputs. World position is also changeable.

Plug-ins:
Geometry Script - Built-in plug-in in Unreal Engine 5
Easy File Dialog - https://www.unrealengine.com/marketplace/en-US/product/easy-file-dialog

bottom of page