We continue with CryEngine 3 SDK tutorials. If you are just starting to learn and use CryEngine 3 SDK, start here.
In this tutorial we cover how to create/add roads.
HOW TO ADD ROADS
To add roads in CryEngine go to RollupBar --> Objects --> Misc --> Road
Begin placing control points of the road on your terrain. Every time you Left Click, it will place a control road point. Place as many as you need and shape the road path.
Once you are happy with how the road looks, double-click to end the road.
APPLYING ROAD MATERIAL/TEXTURE
Lets apply a material on the road.
Click on No Custom Material in the road properties in RollupBar.
Material Editor will open up, here you can choose the road material you want the road too display.
Once you have chosen the material, click on Assign Items to Selected Objects in the Material Editor toolbar. This will apply the material to the road.
With the road selected you will have road properties or Road Params displayed in the RollupBar.
Here you can define various properties of the road.
Often you will need to tweak certain control points and reshape the road. To do so you must enable Edit function for the road.
Click on Edit to enable editing of road control points.
If you do not see the control points you have to turn on helpers. You can turn on helpers by pressing Shift + Spacebar or go up in the perspective viewport and press on/off helpers button.
At this point you can drag individual control points of the road using the move tool. You can constraint each control point along a specific axis. This helps to keep the road on a certain plane.
If you need to drag the road up, enable Z constraint and you can drag the road control point and re-position its height.
ALIGN ROAD TO HEIGHT MAP
Editing control points and repositioning the road will not modify your terrain to fit the road.
In order for the terrain align its heightmap to the road, there is a function just for that. This will modify the heightmap of the terrain to fit the road control points.
In the Road Params choose Align Height Map.
Make sure the road is selected in order to see the Road Params and Align Height Map.
Terrain height map will be modified. You will need to reshape and repaint the terrain so it fits better with the world to fix what Align Height Map function did.
ADD/DELETE ROAD CONTROL POINTS
You can easily add or delete control points of the road.
Select the road and go to Edit mode.
Delete = Double Click on the Control Point to delete
Add = Hold Ctrl + Left Click to add control point
PLACE A VEHICLE TO TEST
Final step is to place a vehicle to test the road and terrain.
To add a vehicle, go to RollupBar --> Entity --> Vehicles folder --> HMMWV (or any other vehicle)
All content on this website is copyrighted ©2008-2024 World of Level Design LLC. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.
World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of AlexG.
Template powered by w3.css