Planetside Software Forums

General => Terragen Discussion => Topic started by: scania970 on April 15, 2013, 03:16:18 PM

Title: Convert Terragen Maps?
Post by: scania970 on April 15, 2013, 03:16:18 PM
Hi to everybody. I'm scania970 and I make maps for a free soft-body physics simulator called Rigs of Rods.
I always used L3DT for map making, but now I would like to learn using programs with more tools for map making (and more professional)
I made my first map, very very simple and without huge heightmap modifications, anyway, I would take it into RoR.

Since the terragen maps are on .tgd files, is there a way to convert them into .RAW files, since on the game the heightmaps are defined with this file?

Thankyou.

Oh, and I hope I'm on the right section.
Title: Re: Convert Terragen Maps?
Post by: Oshyan on April 16, 2013, 04:23:49 PM
Terragen does not output raw files. You can export heightfield terrains to Terragen's TER format (supported by many other applications, including L3DT) and to EXR, which can be easily converted to raw or other image formats with various image editors. To export a heightfield, right-click the Heightfield Generate node and choose Save As.

- Oshyan
Title: Re: Convert Terragen Maps?
Post by: gregsandor on April 16, 2013, 10:25:01 PM
I use Terragen2 alongside the original Terragen (I'm sure you can find a link to it somewhere around here).  As Oshyan suggests, use a Generate heightfield node (I usually remove all fractal displacement so I am just exporting the base terrain data), set your heightfield size and resolution, then export to .ter.  Open the resulting .ter in old TG, and from there export as .raw.

Greg
Title: Re: Convert Terragen Maps?
Post by: scania970 on April 21, 2013, 12:01:03 PM
Quote from: Oshyan on April 16, 2013, 04:23:49 PM
Terragen does not output raw files. You can export heightfield terrains to Terragen's TER format (supported by many other applications, including L3DT) and to EXR, which can be easily converted to raw or other image formats with various image editors. To export a heightfield, right-click the Heightfield Generate node and choose Save As.

- Oshyan
Ok, thankyou.
Why when I import the ter file on L3DT and then I generate attributes map, light map, etcetera, my map is totally flat?
Title: Re: Convert Terragen Maps?
Post by: Oshyan on April 22, 2013, 03:20:12 AM
I'm not clear what you mean "your map is totally flat", nor what you intend to do with the Attribute, Light map, etc. If you use a Heightfield Load on the L3DT exported .TER file, it should load in fine. If it doesn't, that's problem #1 and we can try to address it. You would need to load Attribute, etc. maps separately *if* they're in a compatible image format, and what you do with them would depend on what you're trying to achieve. I'm not familiar with what L3DT is generating, so it's hard to say what they'd be useful for.

- Oshyan
Title: Re: Convert Terragen Maps?
Post by: scania970 on April 22, 2013, 12:48:09 PM
The map is flat, the max height is zero..
Title: Re: Convert Terragen Maps?
Post by: Oshyan on April 23, 2013, 02:13:05 AM
OK, can you post the terrain here?

- Oshyan
Title: Re: Convert Terragen Maps?
Post by: scania970 on May 08, 2013, 12:49:46 PM
Yes, sure here it is. You need just the Tgd file right?

http://share.cx.com/pBrrBv (http://share.cx.com/pBrrBv)

Oh, hope you didn't misunderstand me, the map is ok on Terragen 2 but it's flat on L3DT
Title: Re: Convert Terragen Maps?
Post by: Oshyan on May 15, 2013, 06:03:18 AM
Ah, I did misunderstand. Sounds like a problem you need to solve in L3DT then. Hopefully the L3DT forums can be helpful for that.

- Oshyan
Title: Re: Convert Terragen Maps?
Post by: Matt on May 16, 2013, 05:24:28 PM
In your file, the terrain is generated using a procedural terrain. To export this, you need to convert your procedural terrain to a heightfield.

Hopefully this will help:

http://www.planetside.co.uk/forums/index.php/topic,9319.msg98876.html#msg98876

Matt
Title: Re: Convert Terragen Maps?
Post by: scania970 on May 24, 2013, 01:37:52 PM
Quote from: Matt on May 16, 2013, 05:24:28 PM
In your file, the terrain is generated using a procedural terrain. To export this, you need to convert your procedural terrain to a heightfield.

Hopefully this will help:

http://www.planetside.co.uk/forums/index.php/topic,9319.msg98876.html#msg98876

Matt
Thankyou for your reply and sorry for my last answer!

I just read the thread you linked to me, but I've not understand very well, what I need to do.
I go on my Node Network then I must go on Fractal Terrain or Heightfield Shader?
If it's one of them where do I need to set the resolution of my map?
Title: Re: Convert Terragen Maps?
Post by: Oshyan on May 28, 2013, 02:38:23 AM
Plug the *last node in your fractal terrain network* into the Shader input of a Heightfield Generate Node. The rest of the instructions are there in the other thread, click *Generate* in the node settings, then in the node network right-click the heightfield node and choose Save As.

- Oshyan
Title: Re: Convert Terragen Maps?
Post by: scania970 on June 04, 2013, 09:32:12 AM
Hi, thankyou for the reply.
I can't understand very well, what I need to do, because english is not my first language, so sometimes I have some problems, may you please show a screenshot of where should I go please?

One time you learn, you never forget the "lesson"  :)
Title: Re: Convert Terragen Maps?
Post by: Tangled-Universe on June 04, 2013, 09:49:44 AM
Here's more info...I couldn't find all the other posts where I covered this item, but here are a couple which should help:

http://www.planetside.co.uk/forums/index.php/topic,11124.msg114082.html#msg114082
http://www.planetside.co.uk/forums/index.php/topic,11702.msg118672.html#msg118672
http://www.planetside.co.uk/forums/index.php/topic,11547.msg117807.html#msg117807

I found these using the search by entering keyword "export" + "heightfield" and entering my forum username in the "by username" part.