Planetside Software Forums

General => Terragen Discussion => Topic started by: Syx on October 12, 2010, 01:45:33 AM

Title: Import grayscale images as heightmaps?
Post by: Syx on October 12, 2010, 01:45:33 AM
Is it possible in Terragen 2? I've been looking all over the menus and can't even find an option to import ANYTHING. Has this feature really disappeared? I've been able to find no way to generate heightmaps besides fractally, which seems terribly limited when you already know what you want.
Title: Re: Import grayscale images as heightmaps?
Post by: gregsandor on October 12, 2010, 01:57:58 AM
Right click on the node network panel;

Create Heightfield Operator -->
Heightfield from Shader

Load the greyscale image into an Image Map Shader and plug that into the above.
Title: Re: Import grayscale images as heightmaps?
Post by: Dune on October 12, 2010, 04:11:08 AM
Or load it into an image map shader, set the scales, coordinates and displacement and directly plug into compute terrain.
Title: Re: Import grayscale images as heightmaps?
Post by: Oshyan on October 25, 2010, 01:47:40 AM
Loading using an Image Map Shader or Heightfield Load is the correct approach. the Heightfield From Shader node is deprecated. Image Map Shaders can provide displacement directly (displacement tab), and Heightfields can load image formats.

- Oshyan
Title: Re: Import grayscale images as heightmaps?
Post by: gregsandor on October 25, 2010, 01:59:53 AM
What's "deprecated" mean? 

Quote from: Oshyan on October 25, 2010, 01:47:40 AM
Loading using an Image Map Shader or Heightfield Load is the correct approach. the Heightfield From Shader node is deprecated. Image Map Shaders can provide displacement directly (displacement tab), and Heightfields can load image formats.

- Oshyan
Title: Re: Import grayscale images as heightmaps?
Post by: Dune on October 25, 2010, 02:57:18 AM
I think it means it's going to be dumped as an option. I found this wording in Flash too for old functions.
Title: Re: Import grayscale images as heightmaps?
Post by: Oshyan on October 25, 2010, 04:26:47 AM
Yes, it means it's no longer recommended to be used and may be removed in the future. Usually it has been replaced by something newer, better, etc. In this case using a separate shader is unnecessary as the Heightfield Generate now has shader conversion built in to it (just use the Shader input).

- Oshyan
Title: Re: Import grayscale images as heightmaps?
Post by: Tandem on January 03, 2011, 12:25:28 AM
Quote from: Oshyan on October 25, 2010, 01:47:40 AM... Heightfields can load image formats ...
Oshyan,
Can you please clarify which image formats are supported by TG2 to generate terrain using the Add Terrain > Heightfield (load file) command.  Also, are both 8 bit and 16 bit images supported?
Title: Re: Import grayscale images as heightmaps?
Post by: blackcat on January 03, 2011, 09:30:59 AM
All of my landscapes are generated from artwork I create in Photoshop and save as greyscale bmp images. (I will probably start using the tiff format in the future, though.)

After starting TG2, I click Add Terrain/Heightfield (load file)

I go to the folder where the file is kept. I select the proper file type to be listed (in this case "Windows or OS/2 Bitmap" and then choose the image I want to use.

Bitmap, TIFF and Targa formats appear to be the only choices...which certainly seem sufficient to me.
Title: Re: Import grayscale images as heightmaps?
Post by: Henry Blewer on January 03, 2011, 12:38:25 PM
I like to use bitmap files. I believe, I may be wrong, that this format has the same memory size as a file that it uses in memory. If there is a memory issue, it makes it easier to tweak the project so it can still be rendered.