Planetside Software Forums

General => Terragen Discussion => Topic started by: cajomi on December 04, 2007, 11:55:05 AM

Title: Terrain combination?
Post by: cajomi on December 04, 2007, 11:55:05 AM
Correct me if I am wrong, but it seems to me, that if you import two height fields at the same location, the last terrain simply overwrites the first one.
Title: Re: Terrain combination?
Post by: rcallicotte on December 04, 2007, 12:32:24 PM
Yes.

Use Heightfield Merge to combine the two heightfields.  Don't know the scientific exactness behind it, but it appears to work this way.
Title: Re: Terrain combination?
Post by: cajomi on December 04, 2007, 12:43:05 PM
That does mean, that TG2 will not be able to render rivers. For that, two terrains are necessary, one to shade with a water shader, one to shade with the river bed shader, and of course water with transparence.
That would mean, that carrara is the only software to render true rivers.
Are there plans, that the water object can be a loaded heightfield?
Title: Re: Terrain combination?
Post by: rcallicotte on December 04, 2007, 12:58:48 PM
I was pretty sure someone did something with rivers related to GC2, but perhaps it wasn't related to imported terrain files to TG2 to do that.
Title: Re: Terrain combination?
Post by: old_blaggard on December 04, 2007, 03:18:55 PM
I don't quite know what you mean - someone here used a GC terrain and its exported flow maps to create a river.  You can use masking very easily to create a river, and from what I understand the maps that GC can export work as masks just fine.
Title: Re: Terrain combination?
Post by: Matt on December 04, 2007, 09:44:51 PM
Heightfields can also be applied additively. In the Displacement tab of the Heightfield Shader, uncheck "flatten surface first". Not very intuitive but it works.

Matt
Title: Re: Terrain combination?
Post by: Matt on December 04, 2007, 09:46:40 PM
A Merge Shader can be used to merge two shader branches according to the highest altitude, and this would allow you to shade your water heightfield differently.

Matt
Title: Re: Terrain combination?
Post by: cajomi on December 05, 2007, 12:22:07 AM
Thanks for the answers.

The problem is not the shading. GeoControl2 can export two terrains: One dry and one with water (all not water parts are lowered). This would make it possible, to render true rivers. You can not only shade the rivers, but shade the water surface, the transparency (when available) and you can shade the underlying river bed. But that can only work, if both geometries are present. If you use a water object, the water object it seperated from the terrain and so allows the fading out and showing the ground.
Title: Re: Terrain combination?
Post by: Matt on December 05, 2007, 10:03:13 AM
The Lake object should do the trick. This is a separate object, so when transparency is supported you will get the results you want. You can use the Lake object as a water table because you can displace its surface however you want. (I even considered calling the Lake object "Water Table".) If you input a heightfield shader to the water shader then you will get the topography you need.

I think that to make it more intuitive we might want to add a separate shader channel to the Lake object which can be used for defining the water table (rather than chaining the heightfield with the water surface shader as we do now).

EDIT: it would also be good if this can be done without the node network.

Matt
Title: Re: Terrain combination?
Post by: cajomi on December 05, 2007, 11:14:22 AM
So the water object is the solution!
Thank you, I will have to try that.

BTW: I am planning a video tutorial (or two), to show, how to work with imported terrains inside of TG2. That is a lot of work, and it would be wasted time, if the workflow would change to much.
Should I better wait until the next update?
The 1. tut will mostly show how to add details (this should be controlled with imported masks) where they are needed (so different fractal details to different parts), and how to use imported masks for shading.
The 2. will deal with rivers and roads.
Title: Re: Terrain combination?
Post by: dhavalmistry on December 05, 2007, 11:17:01 AM
Quote from: cajomi on December 05, 2007, 11:14:22 AM
So the water object is the solution!
Thank you, I will have to try that.

BTW: I am planning a video tutorial (or two), to show, how to work with imported terrains inside of TG2. That is a lot of work, and it would be wasted time, if the workflow would change to much.
Should I better wait until the next update?
The 1. tut will mostly show how to add details (this should be controlled with imported masks) where they are needed (so different fractal details to different parts), and how to use imported masks for shading.
The 2. will deal with rivers and roads.

no no...dont wait...make it now NOW NOW!!!!!! :D
Title: Re: Terrain combination?
Post by: rcallicotte on December 05, 2007, 11:54:08 AM
However this happens, this is awesome.   ;D
Title: Re: Terrain combination?
Post by: SeerBlue on December 05, 2007, 02:02:22 PM
Matt's suggestion of using the Lake object for rivers works quite well, especially with the files GC2 output Cajomi mentioned. I was working on images for ME-DEM doing just that before my computer died a horrible death. GC2's output works so well because it is an actual derivative of the heightfield and not generated manually in PS ,for example, so it blends very good. Just plug your water terrain into the water shader above the lake object.
The only thing I noticed while experimenting with this is the increased render time that comes with water in images.
I looked for images on my external harddrive but had not archived any there, so all was lost when my graphics computer failed massively,,,,and this laptop isn't up to rendering the tgd's I had anyway. SeerBlue
Title: Re: Terrain combination?
Post by: rcallicotte on December 05, 2007, 04:25:29 PM
Thank you so much SeerBlue.  I plan to try this this week or next.
Title: Re: Terrain combination?
Post by: dhavalmistry on December 05, 2007, 04:53:19 PM
I was actually going to make a discussion topic here about importing and using GC/GC2 terrains in TG2.....cuz they look a lot different in GC2 and in TG2...I dont know about you but its hard to visualize things in GC2 preview render and then try to achieve same thing when brought over in TG2

I could really use some help in that area....

and I didnt know that Planetside had plans to change UI....to be honest...I like this UI and I am very much used to it....changing it might only make loose grip in some cases like me....
Title: Re: Terrain combination?
Post by: rcallicotte on December 05, 2007, 07:30:12 PM
@cajomi - Bring the tutorials on.  I own GC1 now and want to make the best of GC1 and GC2 in TG2.  Bringing GeoControl into a TG2 light will help me and a lot of other people, present customers GeoControl and TG2 or future customers.  I see a lot of potential in this.
Title: Re: Terrain combination?
Post by: Matt on December 05, 2007, 09:28:32 PM
Johannes: The next update will not make any changes that would invalidate the current workflow, although we do have improved ability to preview shaders in separate views and transparency is coming soon.

dhavalmistry: The changes to the Lake object that I mentioned would be in addition to the current capabilities. The ability to do things at a "low level" by capitalising on the way the renderer works, as we do now, will always be there, even if there are simpler ways of doing things in future. The only thing that might affect that is that in the long term future of Terragen we plan to release a separate version that does not have so much access to the "Deep" feature set, but that will only happen when we have developed simpler ways to achieve most everyday tasks.

Matt
Title: Re: Terrain combination?
Post by: cajomi on December 06, 2007, 12:09:06 AM
Well, so I hope I get that done in between two weeks (the first tut!).
Title: Re: Terrain combination?
Post by: rcallicotte on December 06, 2007, 10:47:33 AM
Perfect. 

I understand you're busy with the GC2 release, nevertheless.



Quote from: cajomi on December 06, 2007, 12:09:06 AM
Well, so I hope I get that done in between two weeks (the first tut!).
Title: Re: Terrain combination?
Post by: peejay on December 06, 2007, 01:34:27 PM
"although we do have improved ability to preview shaders in separate views and transparency is coming soon."

hey that's good news. But what I want, what I really really want is to Import models without the 16 shader limit - please - huh? - pretty please with jam on top?  ::)
Title: Re: Terrain combination?
Post by: neon22 on December 07, 2007, 11:29:17 PM
Well I'm having a ball with GC2 and then rendering in TG2. Its fantastic :-)

Using BigBen's layer masking approach http://forums.planetside.co.uk/index.php?topic=1301.msg12986#msg12986 (http://forums.planetside.co.uk/index.php?topic=1301.msg12986#msg12986) and masks exported from GC2.

Here's an image from the test files on Cajomi's site.
Title: Re: Terrain combination?
Post by: Tangled-Universe on December 08, 2007, 04:48:11 AM
That looks pretty awesome neon :)
Those masks seem to work very well!

I'm looking forward to see your tutorials Johannes  ;D
Title: Re: Terrain combination?
Post by: neon22 on December 08, 2007, 05:14:36 AM
Thanks but most of it is from a single mask - sedimentation (generated by GC2) - and using multiple colour_adjust shaders to clip out successive regions.
The two other maps (supplied by Cajomi) are for the road and the road border - I did some merging and inverting to make soft borders for the stones along the roadside to use as density masks for the fake stones.

(the parts where the road cuts into the hillside were done with a surface shader using this roadside mask and terrain steepness.)