Author Topic: A guide on how to generate heightmaps with L3DT.  (Read 21996 times)

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
A guide on how to generate heightmaps with L3DT.
« on: January 08, 2011, 07:20:53 pm »
This is a step by step guide on how to generate heightmaps and import them to Feral Heart. I'm sorry if the guide doesn't work for you, this is the first time I've made a guide for anything.

Note: I've found a way to create terrain masks based on altitude. The mask tutorial is listed after the heightmap tutorial.

You will need:
L3DT. Get version 2.9 at this link: http://www.bundysoft.com/L3DT/downloads/standard.php

Gimp. Get it at this link: http://www.gimp.org/downloads/

Step One: Open up L3DT. If this is your first time using L3DT, a walkthrough will pop up. I advise that you complete the walkthrough to get a hang of L3DT, but once you do, return here.

Step Two: Click File>New Project. A popup will appear, asking what type of project you want. Click Designable map, then click next. Make sure you do not click blank designable map.

Step Three: The window will change. You will see two sliders called width and height. Change both numbers to 512. Leave everything else alone. Click next.

Step Four: The window will change again, and you will see a single option called "HF/DM ratio". Ignore it and click next.

Step Five: You will see a number of sliders and a single drop-down menu. Play with them to make the map you want. Click Next.

Step Six: You will now see a list of options with check boxes by them. Only check Design map and Heightfield, Feral Heart does not use the rest. Click Ok. Let your map generate.

Step Seven: You will now see your heightmap. If you do not like it, return to step two, or press Ctrl+W and return to step six.

Step Eight: Press Ctrl+E. You should now see an export menu. Click the drop down menu and select png.

Step Nine: Type in the name of your heightmap. Then click the button with three periods.

Step Ten: A browser should appear. Go to your Feral Heart folder. Then go to media>terrains, then click save.

Note: If you do not know where your Feral Heart folder is, try checking C:\FeralHeart.

Step Eleven: Instead of saving, you should return to the export menu. That's ok. Uncheck lock aspect ratio and then click ok.

Step Twelve: Now your map is exported to Feral Heart, but your work is not done yet. If you try to load it now in the map maker, your game will crash. Close L3DT, don't save, and open up gimp.

Step Thirteen: Press File>Open. Go to your Feral Heart folder, then go to media>terrains. You should see your heightmap from L3DT. Open it up.

Step Fourteen: We're almost done. Click Image>Scale Image. Change the first two numbers from 512 to 513. Click Scale.

Step Fifteen: Click File>Save. Close gimp.

Step Sixteen: Open up Feral Heart and go to the map maker. Then go to the world tab.

Step Seventeen: See the word defaultTerrain.png at the top? Change it to yourfilename.png. Press enter.

Note: If FH crashes when you try to load your heightmap, something is wrong with your heightmap image. Make sure that it is 513x513 and that it is a png file. Also make sure that it doesn't have a transparency layer. If you still have problems, I advise that you go to the help section.

Step Eighteen: Your heightmap should be loaded into Feral Heart. Congratulations.

Note: Sometimes your heightmaps may seem too flat in Feral Heart. To resolve this, go to the world tab and adjust the height setting.

Cheers to Kayo and Shell Prisoner for helping me import my first L3DT map into Feral Heart. Without them, I couldn't have made this guide.


----------------------------------------------------------------------------------------------


The Mask Tutorial. The mask this tutorial generates is based on altitude, which means you could have snowy mountain peaks, grassy valleys, and sandy beaches. I think painting the mask by hand may make a prettier map, though. I assume you have already completed the heightmap tutorial, so I'm going to be less specific with this one.

You will need:

Your heightmap from L3DT.
Gimp.

Step One: Open up gimp.

Step Two: Open up your heightmap from your terrains folder.

Step Three: Click Image>Mode>RGB.

Step Four: Click Colors>Posterize. Set it to three posterize levels. Click ok.

Note: If you're feeling adventurous, try having more than three posterize levels. You can fine tune your altitude based mask better with higher posterize levels. For example, you could have only the very top of your map have snow.

Step Five: You should see your map split into three distinct shades of grey. I hope you've made a terrain mask before, because this part is a little hard to explain.

Step Six: Bucket fill the brightest level with Red 255, Value 100, and Saturation 100.

Step Seven: Bucket fill the middle level with Green 255, Value 100, and Saturation 100.

Step Eight: Bucket fill the darkest level with Blue 255, Value 100, and Saturation 100.

Step Nine: Save as: yourfilenamemask.png.

Step Ten: Open up Feral Heart. Go to the mapmaker, then go to the world tab.

Step Eleven: Replace defaultTerrain.png with your heightmap.

Step Twelve: Replace defaultMask.png with your mask. Congratulations, you have created and loaded your terrain mask.
« Last Edit: March 30, 2011, 06:05:38 am by Hoc »

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #1 on: January 08, 2011, 08:12:05 pm »
I wonder, should I place this guide in the maps section of the forum instead?

TealSkeletore

  • Guest
Re: A guide on how to generate heightmaps with L3DT.
« Reply #2 on: January 08, 2011, 11:59:02 pm »
Hey, thanks for making this tutorial. I will move it to the maps section, and I'll sticky it too :)

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #3 on: January 09, 2011, 12:14:16 am »
Thanks.

buta the lion

  • Guest
Re: A guide on how to generate heightmaps with L3DT.
« Reply #4 on: January 09, 2011, 12:08:25 pm »
Thank you so much. it Worked :D.

p.s can you change the map in gimp so there will be higher mountings. or will it make it crash?.

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #5 on: January 09, 2011, 02:30:56 pm »
If you have it into Feral Heart's mapmaker, go to the world tab and adjust the height.

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #6 on: January 09, 2011, 03:18:16 pm »
Updated the guide and implemented a mask tutorial. You can now generate masks based on altitude. Enjoy.

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #7 on: January 09, 2011, 08:27:41 pm »
That's a hard question to answer, since different people install it into different places. But by default, it goes here: C:\FeralHeart

Offline Hoc45

  • Curious Wanderer
  • *
  • Posts: 28
  • Floof-O-Meter: 6
    • View Profile
Re: A guide on how to generate heightmaps with L3DT.
« Reply #8 on: January 09, 2011, 10:28:11 pm »
Which step are you referring to? Also, you shouldn't have to go into the fhmaps folder.

Woha

  • Guest
Re: A guide on how to generate heightmaps with L3DT.
« Reply #9 on: January 10, 2011, 10:37:50 pm »
Do you think you could have a tutorial about what terrain masks are?
I'm completely new to all this and so far your tutorials are stellar! Hope to see a extrapolated version for all things MapMaking at some point. You're good at it.