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 export/import/create custom heightmaps using Photoshop.
Once you have generated terrain heightmap or painted your own terrain heightmap you can export the heightmap file to tweak and modify in 2D software such as Photoshop. This is probably possible using GIMP (alternative to Photoshop), but I don't have any experience with using GIMP.
Open up Terrain Editor, go to File --> Export Heightmap.
Note: You don't have to export your heightmap. You can ignore this step and just create and import a custom heightmap to use right away.
Save the heightmap as any of the following file formats. These are the same formats you can save to import a heightmap.
I exported as test-heightmap.raw
Save it where you can find it later. I usually save in the level folder I am working on.
OPENING EXPORTED HEIGHTMAP
Lets open our exported heightmap. Using Photoshop to open the file we have Raw Options come up.
Set the following values:
Opened heightmap from CryEngine. Same one that we had in the map.
CREATE A NEW CUSTOM HEIGHTMAP IN PHOTOSHOP
Lets create a new custom heightmap from scratch.
In Photoshop go to File --> New and set the following:
Important: Width/Height values have to match the terrain size in CryEngine.
Generating random patters for your custom heightmap is simple. There are two filters we will use:
Difference Clouds Filter:
Save the heightmap as Photoshop Raw (.raw)
Back in CryEngine, in Terrain Editor go to File --> Import Heightmap.
Import the saved heightmap file.
Result of imported heightmap.
TWEAKING/MODIFYING THE HEIGHTMAP
We can tweak and modify the heightmap back in Photoshop using Levels.
Press Ctrl + L to open Levels window. Focus on Input Levels slider and Output Levels slider.
You can decrease the intensity of the heightmap.
You can also manually paint using the Brush.
Imported back in CryEngine:
You can also modify using the Terrain Editor Modify properties.
All content on this website is copyrighted ©2008-2019 World of Level Design LLC by Alex Galuzin. 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 Alex Galuzin.
Template powered by w3.css