Author Topic: Heightmap (greyscale) export - another option  (Read 29817 times)

Offline Henry Blewer

  • Member
  • *
  • Posts: 6333
  • The cooler weather is great!
    • flickr.com/photos/njeneb/
Re: Heightmap (greyscale) export - another option
« Reply #15 on: July 08, 2011, 08:12:42 PM »
These were done by Walli. I have not viewed them in a while. I am 80% sure he covers how to export bitmap/tiff files for landscapes.

http://www.planetside.co.uk/content/view/58/27/
http://flickr.com/photos/njeneb/
Forget Tuesday; It's just Monday spelled with a T

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12364
  • Holy snagging ducks!
Re: Heightmap (greyscale) export - another option
« Reply #16 on: July 15, 2011, 11:52:20 PM »
To export a heightfield, right-click a Heightfield Generate node in the Node Network view and choose Save File As. Give it a name with a TER or EXR extension. TER is the Terragen heightfield format, supported by many heightfield editors, and convertible to TIFF with TerraConv: http://koti.mbnet.fi/pkl/tg/TerraConv.htm
EXR is a high accuracy image format supported by many advanced image editors, e.g. Photoshop.

- Oshyan

Offline Pyronious

  • Member
  • *
  • Posts: 10
Re: Heightmap (greyscale) export - another option
« Reply #17 on: June 10, 2012, 12:27:40 AM »
Thanks Oshyan.

Just tested this in 2.4.32.1 and the TER export works fine and can be converted to TIFF using the tool you linked to.

However, EXR export appears broken in this release. Using the EXR method creates a solid white image.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3203
  • I'm the crazy one
Re: Heightmap (greyscale) export - another option
« Reply #18 on: June 10, 2012, 03:07:11 AM »
The values in the exported EXR are heights in metres. This is so that there is an unambiguous mapping between elevation and pixel values, without any messy conversion settings. Some values might be negative; others might be greater than 1. However, many EXR image viewers will treat a pixel value of 1 as "white", which is reasonable enough, but that means you won't see most of the information that is in the file, even when it is there. You can make this information visible by adjusting the levels (if editing in 32-bit) or by importing into your image editor with a much lower exposure setting.

Matt
« Last Edit: June 10, 2012, 03:09:36 AM by Matt »
Just because milk is white doesn't mean that clouds are made of milk.

Offline Pyronious

  • Member
  • *
  • Posts: 10
Re: Heightmap (greyscale) export - another option
« Reply #19 on: June 10, 2012, 03:12:57 AM »
Thank you for the clarification. For future reference:
  • In Photoshop, select View Menu -> 32-bit Preview Options...
  • Adjust "Exposure" slider downwards. In my case a value of -10 worked.
Thanks again.

Offline bobbystahr

  • Member
  • *
  • Posts: 9317
  • Turn, and face the Strange Ch Ch Changes...D Bowie
Re: Heightmap (greyscale) export - another option
« Reply #20 on: June 11, 2012, 03:44:07 PM »
That was very helpful...I've just created some dispersal maps with that technique...thanks very much Matt and Pyronious
something borrowed,
something Blue.
Ring out the Old.
Bring in the New

bobbystahr

Offline Wolfos

  • Member
  • *
  • Posts: 1
Re: Heightmap (greyscale) export - another option
« Reply #21 on: June 29, 2012, 05:45:38 PM »
Sorry for bump, but I just get this solid gray render. No contrast at all.
Every program that can import Terragen maps is Windows only and Terragen only exports to the useless .ter format (which can be converted by, YOU'VE GUESSED IT! A WINDOWS ONLY APPLICATION!).

Why can't Terragen just export like all other programs? It's basically useless now when you want to do anything except for a render in Terragen. For Mac, there's only a single 'alternative', and that's the ancient Bryce (which probably doesn't work in later versions of OS-X anyway).
« Last Edit: June 29, 2012, 05:50:06 PM by Wolfos »

Offline cyphyr

  • Terragen Alpha Tester (Win)
  • ***
  • Posts: 3848
    • richardfraser
Re: Heightmap (greyscale) export - another option
« Reply #22 on: June 29, 2012, 05:58:39 PM »
Right click on the Heightfield load or Heightfield generate and select "save file as", then choose .exr from the save as type dialogue. Exr files can be opened in Photoshop and converted to other formats easily. If the exr image you open up is all white or all black look at images>adjust>exposure (or levels) in photoshop.
Job done :)
Richard

Ah I should have read the previous replies,
You'll need to make sure the Heightfield generate is the last node in your terrain generation stack just before the compute terrain. You'll also need to position it over the area of interest.
« Last Edit: June 29, 2012, 06:05:31 PM by cyphyr »
www.richardfraser.co.uk
https://www.facebook.com/RichardFraserVFX/
/|\

i7 5930 @3.5Ghz, 32Gb
i7 980 OC'd @4Ghz, 16Gb

Offline mavor

  • Member
  • *
  • Posts: 5
Re: Heightmap (greyscale) export - another option
« Reply #23 on: August 14, 2012, 06:30:07 AM »
Ok I got everything working... except I want to clamp the heightfield generator to just generate what's on my planet instead of an infinite heightmap. How do I do this? At every size I tested, I always end up with half-made continents on the edges of my heightmap (because it just keeps generating and generating)...

Any ideas? I want to push what is on my planet to a map.. nothing more nothing less :)

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12364
  • Holy snagging ducks!
Re: Heightmap (greyscale) export - another option
« Reply #24 on: August 14, 2012, 06:39:00 AM »
You cannot generate export an entire planet into any format at this time.

- Oshyan

Offline mavor

  • Member
  • *
  • Posts: 5
Re: Heightmap (greyscale) export - another option
« Reply #25 on: August 14, 2012, 06:54:33 AM »
Then is there any way to somehow clamp the heightmap generation to the size of the planet without getting the half-formed continent edges?

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12364
  • Holy snagging ducks!
Re: Heightmap (greyscale) export - another option
« Reply #26 on: August 14, 2012, 07:00:43 AM »
I'm not really clear what you mean. Heightfield generation is planar, I suspect it's not going to work well past a certain (large) size. What are you intending to use the output for? Even if it did work, you're looking at a tremendously large data set for any reasonable level of detail.

- Oshyan

Offline mavor

  • Member
  • *
  • Posts: 5
Re: Heightmap (greyscale) export - another option
« Reply #27 on: August 14, 2012, 07:02:56 AM »
I will use a 1/100th accuracy (or lower accuracy if required) version of a planet created using the procedural planet generation kit for a 2d tiles-based game i'm setting up. ;) Exact accuracy is not very important to me.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12364
  • Holy snagging ducks!
Re: Heightmap (greyscale) export - another option
« Reply #28 on: August 14, 2012, 07:25:00 AM »
And you need it to cover an entire planet? Quite honestly it sounds like your needs *might* be better served by a dedicated heightfield modeler, particularly one with tiled output, for example World Machine or L3DT. I don't know exactly what the limitations of heightfield export are in TG, but I think you'll have a tough time getting the data that you want, unfortunately.

- Oshyan

Offline mavor

  • Member
  • *
  • Posts: 5
Re: Heightmap (greyscale) export - another option
« Reply #29 on: August 14, 2012, 08:13:04 AM »
Oshyan, it seems to me that terragen just has the better procedural generation tools.. L3DT and world machine are fine and dandy, but they don't have the believability of well-designed terragen continents/planets... :)

**Edit: Perhaps the ability to control how much height resolution for every given point there is would allow something like this to be more possible...
« Last Edit: August 14, 2012, 08:29:06 AM by mavor »

 

anything