Issues at border between two masked regions

Started by PeanutMocha, December 19, 2011, 01:56:25 PM

Previous topic - Next topic

PeanutMocha

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.

freelancah

#1
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

PeanutMocha

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?

freelancah

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

PeanutMocha

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.

freelancah

I dont know about paint.net but I would imagine GIMP having such option. Actually think it would be weird if it wouldn't

PeanutMocha

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?

freelancah

#7
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.

PeanutMocha

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.

bobbystahr

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
something borrowed,
something Blue.
Ring out the Old.
Bring in the New
Bobby Stahr, Paracosmologist