Planetside Software Forums

General => Terragen Discussion => Topic started by: PeanutMocha on December 19, 2011, 01:56:25 PM

Title: Issues at border between two masked regions
Post by: PeanutMocha on December 19, 2011, 01:56:25 PM
I'm using image masks to draw two different terrain types, Jungle and Plains.  I checked in a paint program that the masks exactly align at the border (there are no pixels at the border that aren't in one mask or the other).

The underlying Base Colours shader shows through at the border.  Additionally, there is a white "glow" on the jungle side of the border and a geometric pattern on the plains side of the border.  See attached screenshot.  The project is also attached.
Title: Re: Issues at border between two masked regions
Post by: freelancah on December 19, 2011, 02:49:57 PM
tick the "Data is linear" and uncheck "Smooth interpolation" in the image map shaders settings.. It's the interpolation that smoothens the edges. Personally I would approach this dilemma by overlaying the textures in the right order or atleast having them overlap a bit. This way you avoid problems at seams
edit: also without the interpolation the pixels are very much visible due the nature of the maps resolution spread over vast distances
Title: Re: Issues at border between two masked regions
Post by: PeanutMocha on December 20, 2011, 12:15:26 AM
I see what you mean about the pixelization.

The mask is created by another program and is very complex, so would be very tedious to grow it by hand.  Any suggestions for a tool that can grow the mask border by a pixel?
Title: Re: Issues at border between two masked regions
Post by: freelancah on December 20, 2011, 04:37:21 AM
Well I suppose any image editing program should have an option to expand selection by N ammount of pixels. Here's a quick 2 pixel map of the overlapping parts. I would probably just add this to the "plains" layer
Title: Re: Issues at border between two masked regions
Post by: PeanutMocha on December 20, 2011, 04:43:34 AM
Thanks for the border image!

I only have Paint.NET and GIMP.  Do you know if either of those have a function to expand the selected region?  I'm fairly familiar with Paint.NET and didn't see that feature.  Just started with GIMP.
Title: Re: Issues at border between two masked regions
Post by: freelancah on December 20, 2011, 04:53:32 AM
I dont know about paint.net but I would imagine GIMP having such option. Actually think it would be weird if it wouldn't
Title: Re: Issues at border between two masked regions
Post by: PeanutMocha on December 20, 2011, 01:23:40 PM
I was able to expand the white region in GIMP... selected by color (white), then selection / expand.

However, things still aren't looking correct.  I'm not seeing the underlying shader anymore, but I still do see the white border and faintly see the geometric lines.  Attached an updated project. 

Any thoughts?
Title: Re: Issues at border between two masked regions
Post by: freelancah on December 20, 2011, 01:30:37 PM
Well I'd guess the geometric lines are still because of things not aligning correctly. Did you use 1 or 2 pixel border? You could make them overlay more because essentially it doesnt matter due the fact that one layer  goes on top of another. Anyway I'l take a look once I get to a machine with TG


edit: btw earlier I didnt comment on the white lines because it seemed to come from one of the surface layers you set up and I just didn't understand the way you set up all the shaders. For example you are using a heightfield that is black so you dont have any height to your terrain and yet the surface layers had altitude restrictions and whatnot.
Title: Re: Issues at border between two masked regions
Post by: PeanutMocha on December 20, 2011, 06:59:09 PM
Thanks for looking into this further.  The heightfield in the sample is all black due to upload size restrictions in the forum.  The actual one I'm using is too large to post here.
Title: Re: Issues at border between two masked regions
Post by: bobbystahr on December 24, 2011, 11:09:37 AM
Quote from: PeanutMocha on December 20, 2011, 06:59:09 PM
Thanks for looking into this further.  The heightfield in the sample is all black due to upload size restrictions in the forum.  The actual one I'm using is too large to post here.
there's a free file sharing service called sendSpace.com that you could upload a zipped file to and post the link they send you to us here...that would be helpful