Friday, February 26, 2010

Creating Road In Unity Game Engine

Unity game engine is a great engine for developing game on PC, MAC, iPhone, and other platforms. However, I noticed that Unity does not have a road editor compared to Torque (game engine). One can use primitives to resolve this issue, but I prefer to use a 3d modeling tool. Thus, in this tutorial I will show you how to create roads using 3ds Max.

THINGS YOU MIGHT NEED:
a) A 3D modeling tool
b) Road Design/Map
c) Road Textures

1) Open 3ds Max, click CREATE and select SHAPES.
(click the picture to view in X-Large)

1b) Enter/Select all the necessary values and settings as desired. (Use the same values and setting to achieve similar results as this tutorial)


2) Create the desired road using the top view.


3) Select the Map Editor. (Shortcut: hit M on the keyboard to pop up the Map Editor)

 

3b) Click on the none button next to Diffuse. Double Click on Bitmap and select your road texture.

 

 4)  Make sure the desired material is selected.
4a) Select the "Assign Material to Selection" button in the Material editor to assign material
4b) Select the "Show Standard map in Viewport" to show material layout in your Viewport.
4c) Play Around with the Tiling Values to get the desired tiling.


5) Export as .FBX to Unity Game Engine.



~* By: Verse316 *~

2 comments:

  1. I love it! I hadn't ever used the line tool quite like that to make a road (I always made a box and a line and then extruded the box along the path of the line). So much better to do it your way! Do you have any brilliant ideas for an easy way to make sidewalks automatically on either side of the road?

    ReplyDelete
  2. Meanwhile there are a few tools available to do this in Unity; EasyRoads and Road/Path tool.

    We made a short overview of the different pros and cons of these tools on our blog:
    http://www.previewlabs.com/roadpath-tool-vs-easyroads3d/

    ReplyDelete