Guide for adding soft edges to extracted character portraits

From A Reyvateil's Wiki
Jump to: navigation, search

This is Palsa's guide for creating soft edges around character graphics extracted from GUST's games using the lilie tool.

The original forum post is here.

After reading this tutorial, you should read this one, which is a continuation.

Contents

Introduction

Ok, it took me awhile to get around to this.

I'm going to share a few tricks that I've learned on how to add softened edges to the character portraits.

I'll also cover the techniques that I use to add borders and how I prefer to touch up certain places that look awkward.

This is the picture I will be editing:

0h03lwjhlbrna9e89cma.png

6gdvh3rzptdmk5z9u8cc.png

As you can see, some of the edges were altered during the decompression process.

Note. The methods I will be using are fairly basic and simple, and will take longer to explain then to actually preform.

Preparation

1. Before you do anything else, go to Canvas Size.

6ybcbd56qavxdmsuwhp6.png

n735ntmhw61x3g5mn7nt.png

Note how the original size is 384x384?

What I generally do is add a 1 to the highest digit under height.

So 384 height would become 484 height, 700 height would become 800, 950 would become 1050. etc.

But Only the height, we don't have any reason to alter the width.

I also set the placement to Up, so that new section will be added to the bottom of the picture.

fhluz5gzn4x4fkdtrn.png

2. Temporally switch your selection tool to Add.

l2iqx8eefejwhdo08mcr.png

And select the section directly under the portrait, only select the areas where the bottom of the portrait touch, leave the transparent sections alone.

3. Now, fill the selected areas with any color.

Note. this is not on the portrait.

tc21hku7kj3uto3k9uyy.png

It should look something like this when your done:

4vj490g7vvig8ii9mzs6.png

4. Switch your selection tools mode back to Replace, you do not want to leave it on Add.

Now your ready to start.

Note. When your done editing, just go back to Canvas Size and subtract the extra digit that we added earlier, so 484 returns to 384, you wont have to remove the area below.

76ja6cuocbtyxg4rfsi.png

A basic outline

1. Choose to Select All, then click on the picture so that it selects only the non-transparent regions

kdtl13i1odmlr7usin4n.png

2. Create a new raster layer above the first

xt8vq8x7exvpx4ipdwp.png

3. While you are still selected, go to Select Selection Borders

obboyn8yq1yab42atdo.png

Choose Inside border, make sure that the border width is set to 1, and anti-alias is set to off.

2y5e9zdx1i2vtl0o67.png

It should select the very edge of the picture:

02v3ambd8u8fgb1nz3bi.png

uvp6217v0pdg647v1ie.png

Now do you see why we did the 'Preparation' phase?

4. Create a new picture, the size doesn't matter, as long as its solid black

3jupbflsi38l6knwaz8p.png

This picture will be used several times, so I'll just call this one the black picture from now to the end.

Copy the black picture and paste it into the selection on the upper layer of our portrait.

Note. 'Past Into Selection' is usually Ctrl+Shift+L, but you should be able to access it from the 'Edit' tab.

fel15we084u4p7236nu.png

5. Deselect the picture and set the layer options for the upper layer to Opacity 75%, and Darken as an effect

x8fahsx39wupccgxkfor.png

mi9h3uob9as5xfs1ww8.png

blyvreifj5n3xzmiitvv.png

And that is how to add a basic outline.

Add a faded outline

Preform actions 1 through 2 of 'A basic border', but instead of adding a border this time, we'll copy from our black layer, and paste it into a feathered selection.

Note. See 'A basic border' for 1 & 2.

3. Fill the selection of the upper layer with black from our black layer.

Note. As before, paste into selection should be Ctrl+Shift+L or on the Edit tab.

It should look something like this:

qjgcm6g8voiqt0jjkgo.png

4. Now, add an Inside/Outside Feather.

gxd0uyk6051xhhn93o5g.png

It should be set to Inside and the feather amount we need is 2.

tloh9d5c95lms5m1cx.png

Hit Delete to clear the selection, it should look something like this:

0f77imgq5ynobkokvv61.png

5. Adjust the settings on the upper layer so that Opacity is 65%, and Darken is the effect.

2w9fofyal0jpefx26im.png

Now it should look like this:

48w3yf5byjf4kyhi9nem.png

geoy5z9g3xhbus5kqs.png

And that is how to make a faded outline.

Combining both methods

The best result is by combining both of the above methods and changing the Opacity for 'Both' of the upper layers to 50%.

up9cqx4rhwwr24quou7.png

It should create a more balanced image:

akd4atrulhql4n73rcey.png

xknz07dgd2wyr8o2vqdd.png

And that is how I generally go about this.

Touching up

A lot of the time the image will have an area that doesn't look right, because it is near a border, but the brightness of the 'Inner Line' is not consistent.

s7ltvhm7suo3br4owaj.png

I generally use two tools to fix this.

Paint Brush with the size set to 1.

d0ljwrgw2x9b7gf9a6n.png

And the Pen Tool.

d8vms7vt5o0ft4mr8pl.png

Setting up the Pen Tool can be difficult, and almost needs a tutorial of its own, for the basic functions.

y6nax2azb9yc7koj73um.png

For adding transparency to background color, follow the images:

kyhna95t2n821gom1jq.png

zcwqef6q4vfhtzdliqul.png

jm9g7ti8obwxc6ucp6aj.png

4h7zkcsm7tjtkxkhlj6g.png

cktxx12gx3nqsyg1d4re.png

Now, back to touching up.

1. Select either of the uppers layers and add a black pixel over several of the smaller places that need to be fixed.

4t8m8jffz6rl5y6e9lav.png

2. We'll use the Pen Tool for the rest.

If 'Create On Vector' is turned on in the Pen Tool, it will automatically create a new vector layer, we want this.

3. Change the vector layer to Opacity 65%, and leave the effect set to normal.

lq1r0v0xiuh1ahkltnt.png

After using the Pen Tool, you should have something like this:

6awqawnaegoexour2uf3.png

4. Now, right click on the vector layer to convert it to a raster layer.

w93y91u2xu4wpiplt4.png

5. Select around the transparent areas where you used the Pen Tool and hit the delete button, we do not want any ant-aliasing at this point in time.

hwestvvl0o8ybb71vlk.png

The result should look something like this:

a7erfc1djqpw4psonm7.png

Softened edges

Now I can finally get around to the soften edges part of the tutorial.

1. Make sure that you have right clicked on one of the layers and select to 'Merge Visible'.

k9bulcj3zspgjnza75zj.png

2. Now that our layers are merged, create a duplicate layer by right clicking on our layer.

ecg1bwtwp83ujc28g75g.png

3. Toggle the upper layers visibility to make it invisible.

pqiz1cs7k2ezurgv2y.png

Note. We will be working on the lower layer now.

4. Select all but the transparent regions.

h11p824y7887mj6jj1n.png

5. Go back to Select Selection Borders, but this time set it to Both Sides and turn Anti-alias on.

wzc5qcnpylfegtxaellp.png

u7wf1cmkzu9q3z19vix.png

As you can see, this time it selected both the inside and outside of the border and added a soft anti-aliasing effect.

6. Add a soften effect to the selection.

dx5va1s89jzlffzqv3ar.png

It should look something like this:

20fppf92xsb6p53pxsn.png

7. Deselect, and temporarily switch to the upper layer.

Leave it invisible, were not modifying it.

kmln458q7eus8cej978j.png

8. Select all of the non-transparent regions on the invisible layer, And Switch Back To The Lower Layer.

bid7nbqa590fqobp0plq.png

9. Go back to Select Selection Border, but this time turn Anti-alias off.

0711zosyym3pormsbs8.png

It should look like this:

56hyeh25n1s70aeoms.png

10. Make the selection black by adjusting the brightness.

byxpy5pfcwhxje6ci0.png

nja9g83cnq19vuwmkmp.png

It should look like this:

up21c4l99laeteijiwzi.png

11. Turn the upper layers visibility back on and set the Opacity to 70% with no effect.

fg0jb0k8x1as738lsnmo.png

And that is how I add a soft edge to the outline. ^_^

Here is what the finished portrait looks like:

pt3d111b7fjpj3603z3d.png

Face set for the costume

And here is the entire face set for this costume.

Note. I found a pixel sticking out of the hair that I had apparently missed while making the tutorial, so I fixed it in these.

z62cqzwg6ulf19qe8mzg.png

wpbnnukeydjlf7zsvy4l.png

rukumhfs49g95dxv3nt.png

ahrytko4vpzmw76nwyaq.png

iu1x1lknocp2w892j39.png

jybzrzxcxh8p5gykjjhd.png

yz4dhhv5b27y0pb7guyo.png

7ykbvmtpt6xv66oyvye.png

421itb4fuuqg7k2ups.png

Personal tools