Planetside Software Forums

Support => Terragen Support => Topic started by: xevious2501 on November 05, 2016, 07:04:18 PM

Title: Question? How to export Heightmaps from TG 4 terrains?
Post by: xevious2501 on November 05, 2016, 07:04:18 PM
Been trying to figure this one out but i need some help.
Looking into the old TG software wiki instructions i was able to export geometry via the micro exporter but even when checking off normals its not generating any maps.
And noteably i need height maps not just normals.   

Any help would be greatly appreciated.  even a simple TG file with the setup.

Thanks :P
Title: Re: Question? How to export Heightmaps from TG 4 terrains?
Post by: Oshyan on November 06, 2016, 12:45:48 AM
The Micro Exporter only outputs geometry. If that's not what you need, it's not the approach to use.

For height maps/heightfields, you need to use a Heightfield Generate node. If your terrain is Procedural, then you feed the last shader in your procedural terrain network into the Shader input of your Heightfield Generate. Then you set the size of the heightfield in meters and pixels (area coverage and detail, respectively) and Generate. Then right-click the node in the node network and choose Save As. You can save as EXR or TER (Terragen terrain format).

- Oshyan
Title: Re: Question? How to export Heightmaps from TG 4 terrains?
Post by: CG MANIA on May 08, 2018, 03:20:19 PM
Oshyan,
I've tried this for a heighmap I've imported into Terragen but I get a white image in exr export. Am I doing something wrong? I have attached a screenprint of the node network
My purpose is to import a heightmap in Terragen, use the border blending percentage to shrink the edges and export it again so it is easier to integrate with other terrains.
Title: Re: Question? How to export Heightmaps from TG 4 terrains?
Post by: Oshyan on May 08, 2018, 07:18:10 PM
The Border Blending happens in the Heightfield Shader (red), not the Heightfield Load. You need to connect the output of that to the *Shader* input (right-side) of the Heightfield Generate. Then you must click the Generate button in the Heightfield Generate node to get the result. I believe you know the rest.

- Oshyan