- May 3, 2018
- 1,403
- 1,011
INTRO
I have noticed that many have been exploring using Daz3D for generating art content for some of their game-related projects, such as for VN's. In a thread talking about issues with an image looking flat, which partly looked like the characters were copied and pasted into a background scene, I suggested using an old photoshop trick to help blend the characters into their environment. This same trick is used if you want to add something to a photo (such as the old family dog). On request, I have made this Guide showing how you can do this trick, for free, and without too much hard work (mostly clicking and setting numbers).
To quickly switch between images, right click on each and choose open in new tab. using the control button hold it and press numbers, your broswer should move beween tabs, move your tabs around to get the order right but you should be able to flicker between the two to see the changes and get a sence which looks best.
ART BY @Chatterbox
CONTEXT
So this process will assume you are working with the following situation (or similar): You are making a game (such as a VN) where you plan to have a background drawn, and characters are drawn (or placed) on top of the background. The background and the characters are shaded to be similar to have realist lighting effects (such as using Daz3D, simple vector art will not work for this), and the background is a separate image from the characters. This is so character images can have different poses and can be swapped out during run-time. Having separate images for the background, for each character and their unique poses, can help lower the memory footprint of your game, and can help speed up render times as you don't need to re-render the background every time. The only issue with this is that the characters will not have any Global Illumination that matches them with their environment, so characters may not look like they fit in. This guide aim's to fix that while keeping all of the pro's. This does not work for animations.
TWO METHODS
Method 1 requires more work, but is more customizable (and the focus of this guide), Method 2 is more accurate, much simpler, but will require you to make a third rendering (background, character, and character with background) but may or may not look better, this method will be described at the end.
PREREQUISITES
A background image has already been rendered. Characters have been posed and rendered. It is critical that the characters be rendered with a light setup that is very much like the room was lit.
Gimp, Gimpshop, or Photoshop (any decent image editing software)
Lastly, you will need to download the latest version of Gimp. Gimp is an image editing software, similar to photoshop and very powerful (second best to photoshop I would think) and more importantly free. If you are more comfortable with photoshop but can not afford it, there is a version of Gimp called Gimpshop design to work and look like photoshop to help transition photoshop users to Gimp without the learning curve. You can also use Photoshop since a lot of the concepts are the same and I don't think anything I will be doing is Gimp specific. This guide will continue and present itself as if you are new to Gimp
Gimp Setup
After downloading and installing Gimp, this may be what you see (I do not own the image)
some ass-ugly program that looks like it came from the 90's or early 2000's with lots of windows and different things everywhere, and to be honest it is crappy. I think this is information overload (and ugly), this is what my gimp looks like:
(whoops the colors match the background of the forum thread, XD )
Much better, that looks much more professional and friendly.
To personalize and clean up Gimp, there are a few things you need to do. The main thing that makes Gimp look good is to install a dark theme (gimp may already have it installed and you just need to go to Edit>Properties>Theme but I will not get into this too much). Dark theme not only looks lit, but I find in many of my drawings that the color of the screen affects how I see the image, so a nighttime image may not look right when that gross marble white background surrounds the image.
Next let's clean up the mess of windows, first move everything into one window by going to Windows and checking "Single-Window Mode" (you only need multiple windows if you are going to use multiple monitors), as seen below
Also note that for quicker access to the menu, you can just right click anywhere over the image editing area, to open up a quick access dropdown/shortcut menu like this
Second tool bar
this way you don't need to constantly move your mouse to the tool bar, bring it to you!
Next there are going to be a bunch of tabs. You don't really need all of them, it is way too much information overload when starting your first gimp project. You can remove all but the Tool Options and the Layers tab, by clicking on the little carrot that is to the right of the tabs and clicking Close Tab in the menu that pops up, as seen here
After closing the unneeded tabs, you can click and drag the remaining tags and organize Gimp to your liking.
Optionally to make many of the tools easier to access, we will add more of them to our toolbox just follow this image
(enlarge the image)
The guide will continue to use the main toolbar to access all the major tools and menu, but you should try finding tool icons or using the right click to bring up the toolbar shortcut to get used to working with gimp (especially to save time if you are going to do this process for each character and pose per scene).
PART 1 LIGHT WRAPPING
The first trick is to try to make it look like the character belongs in the scene by making the light of the scene wrap around the edges of the character image, trying to emulate the real-life behavior of how background light wraps around (or glints) the sides of objects.
The first step is to open your background image in Gimp, as such
Next, we are going to do two things at once, we are going to add the character image, but we are going to add it as a layer (thus making a new layer). There are two important concepts with Image editing, the first concept is layers. That is, we divide parts of the image into layers so that we can overlap them, combined them, and do different effects either on each layer independently or effects between layers. This includes a having a character layer, and maybe editing the layer so the character is not so bright, while not changing the brightness of the background. Or you can have one layer as an image of sparks on a black background, you can then change the blend mode (discussed later) of the spark image layer to Addition at it makes it look like the sparks are part of the image not just on top of the image, since in real life this is exactly what is happening, the light of the sparks is being added to the light of the background image.
So to add the character in as a new layer, find the Open as Layer under File
and find the image of the character you want.
Here is what I am working with (Made by @Chatterbox )
Something important I want to point out is, depending on your render output, the background could not have transparency enabled. Transparency, or called the Alpha channel when talking about digital pictures, is how computers allow for images to have transparent parts. If you see the name of one or more of your layers look bold like this (the background layer text is bolded)
If you see bolded text for the layer name, that is Gimp's way of telling you that the file was not saved or set to have an alpha channel (saves on memory size). Since a lot of the effects and edits we are going to do with the image are going to be used on the background image (or a copy of it) and these effects are going to use the alpha channel, we need to enable transparency for the image, else bad things happen.
To do this, RIGHT CLICK on the LAYER you want to change, and click the Add Alpha Channel option
Now the text should be normal like this
After making sure all the layers have an Alpha channel, we are going to duplicate (make a copy) of the background image. You can either: RIGHT CLICK on the BACKGROUND LAYER and click Duplicate Layer, or if you notice in this image, there is an Icon next to this option that looks like 1 photo infront of another, this same icon can be found at the bottom of the Layers Tab, clicking on that icon will do the same thing (BUT MAKE SURE YOU HAVE THE RIGHT LAYER SELECTED WHEN YOU CLICK THE ICON, THE CURRENT ACTIVE LAYER WILL BE HIGHLIGHTED SO YOU KNOW WHICH EFFECT WILL APPLY TO WHICH LAYER)
The Next important thing to learn about for using Image Editors is Selection. Selection is the idea that you can select only part of an image or a layer. Just as effects you apply to a layer will only apply to that one layer, effects will also check to see what you have selected, and will only apply that effect to the selection. You can tell what is selected by having those crawling white and black ant, anything inside of area is selected. Sometimes it will be hard to tell what is selected because selections can be inverted, as discussed later. The important thing to know is, at any time you want to make sure the layer is properly selected, click on the layer, and press Ctrl + A to select the whole layer. Selections are not hard (is or is not selected) but can be soft (50% selected) this way we can effects fade in and out of areas of selection.
What we want to do in this next step is to make a cutout in this second background image (layer) that we just made, but we want to make this cutout in the shape of our character. For now what we want to do is make a selection. But rather than drawing a box or a circle, or trying to freehand draw a selection shape around our character, we are going to try an automated method. To do this, we are going to convert the character's alpha channel into our selection channel. This means tricky areas like patches of hair where you can see through the locks, instead of trying to figure out how to draw the selection area for the hair by following the strands, the program will automatically be able to set the right selection value for hair and other stange things in our image. To do this, we just RIGHT CLICK on our CHARACTER LAYER and select, Alpha to Selection like this
With the selection in the shape of our character, we will now LEFT CLICK THE SECOND BACKGROUND LAYER. With the second layer selected, we will press delete, and you see get something that looks like this, a background with a hole in the shape of your character.
By going to the character layer, we could select it to find the Selection area we wanted, and because the selection areas is independent of the layer system, we could click the second layer, but still have the same selection area, so when we click delete, we have the selection in the shape of our character so it will delete (remove) part of the image in the shape of our character, but only do this deleting to the one layer we have selected.
After that, Move the Background Copy layer to the TOP of the stack by Left clicking and HOLDING and DRAGGING the layer to the top, you should see a thin white line above the Character layer, this indicates where Gimp things you want to put the layer (in order of the stack).
Next we are going to blur this layer. To do this, MAKE SURE THE MODIFIED BACKGROUND IS SELECTED BY LEFT CLICKING ON IT, and make sure the whole layer is SELECTED by pressing Ctrl + A (the white/black ants should now crawl around the imaeg, no longer in the shape of the character), then go to the tool bar (right click on the image) and choose Filters>Blur>Gaussian Blur
A popup should show up, depending on the size of your render, you may have to play with this number, but get it blurry enough (20 to 60) such that a good portion of the blur covers the character
I went with 45, (the chain means both numbers stay linked or proportional).
If you did this to the rigth layer, and this layer is on top, the background should look blurry, but the character should look not blury, but having some colors bleed around them like this
I have noticed that many have been exploring using Daz3D for generating art content for some of their game-related projects, such as for VN's. In a thread talking about issues with an image looking flat, which partly looked like the characters were copied and pasted into a background scene, I suggested using an old photoshop trick to help blend the characters into their environment. This same trick is used if you want to add something to a photo (such as the old family dog). On request, I have made this Guide showing how you can do this trick, for free, and without too much hard work (mostly clicking and setting numbers).
To quickly switch between images, right click on each and choose open in new tab. using the control button hold it and press numbers, your broswer should move beween tabs, move your tabs around to get the order right but you should be able to flicker between the two to see the changes and get a sence which looks best.
ART BY @Chatterbox
CONTEXT
So this process will assume you are working with the following situation (or similar): You are making a game (such as a VN) where you plan to have a background drawn, and characters are drawn (or placed) on top of the background. The background and the characters are shaded to be similar to have realist lighting effects (such as using Daz3D, simple vector art will not work for this), and the background is a separate image from the characters. This is so character images can have different poses and can be swapped out during run-time. Having separate images for the background, for each character and their unique poses, can help lower the memory footprint of your game, and can help speed up render times as you don't need to re-render the background every time. The only issue with this is that the characters will not have any Global Illumination that matches them with their environment, so characters may not look like they fit in. This guide aim's to fix that while keeping all of the pro's. This does not work for animations.
TWO METHODS
Method 1 requires more work, but is more customizable (and the focus of this guide), Method 2 is more accurate, much simpler, but will require you to make a third rendering (background, character, and character with background) but may or may not look better, this method will be described at the end.
PREREQUISITES
A background image has already been rendered. Characters have been posed and rendered. It is critical that the characters be rendered with a light setup that is very much like the room was lit.
Gimp, Gimpshop, or Photoshop (any decent image editing software)
Lastly, you will need to download the latest version of Gimp. Gimp is an image editing software, similar to photoshop and very powerful (second best to photoshop I would think) and more importantly free. If you are more comfortable with photoshop but can not afford it, there is a version of Gimp called Gimpshop design to work and look like photoshop to help transition photoshop users to Gimp without the learning curve. You can also use Photoshop since a lot of the concepts are the same and I don't think anything I will be doing is Gimp specific. This guide will continue and present itself as if you are new to Gimp
Gimp Setup
After downloading and installing Gimp, this may be what you see (I do not own the image)
some ass-ugly program that looks like it came from the 90's or early 2000's with lots of windows and different things everywhere, and to be honest it is crappy. I think this is information overload (and ugly), this is what my gimp looks like:
(whoops the colors match the background of the forum thread, XD )
Much better, that looks much more professional and friendly.
To personalize and clean up Gimp, there are a few things you need to do. The main thing that makes Gimp look good is to install a dark theme (gimp may already have it installed and you just need to go to Edit>Properties>Theme but I will not get into this too much). Dark theme not only looks lit, but I find in many of my drawings that the color of the screen affects how I see the image, so a nighttime image may not look right when that gross marble white background surrounds the image.
Next let's clean up the mess of windows, first move everything into one window by going to Windows and checking "Single-Window Mode" (you only need multiple windows if you are going to use multiple monitors), as seen below
Also note that for quicker access to the menu, you can just right click anywhere over the image editing area, to open up a quick access dropdown/shortcut menu like this
this way you don't need to constantly move your mouse to the tool bar, bring it to you!
Next there are going to be a bunch of tabs. You don't really need all of them, it is way too much information overload when starting your first gimp project. You can remove all but the Tool Options and the Layers tab, by clicking on the little carrot that is to the right of the tabs and clicking Close Tab in the menu that pops up, as seen here
After closing the unneeded tabs, you can click and drag the remaining tags and organize Gimp to your liking.
Optionally to make many of the tools easier to access, we will add more of them to our toolbox just follow this image
(enlarge the image)
The guide will continue to use the main toolbar to access all the major tools and menu, but you should try finding tool icons or using the right click to bring up the toolbar shortcut to get used to working with gimp (especially to save time if you are going to do this process for each character and pose per scene).
PART 1 LIGHT WRAPPING
The first trick is to try to make it look like the character belongs in the scene by making the light of the scene wrap around the edges of the character image, trying to emulate the real-life behavior of how background light wraps around (or glints) the sides of objects.
The first step is to open your background image in Gimp, as such
Next, we are going to do two things at once, we are going to add the character image, but we are going to add it as a layer (thus making a new layer). There are two important concepts with Image editing, the first concept is layers. That is, we divide parts of the image into layers so that we can overlap them, combined them, and do different effects either on each layer independently or effects between layers. This includes a having a character layer, and maybe editing the layer so the character is not so bright, while not changing the brightness of the background. Or you can have one layer as an image of sparks on a black background, you can then change the blend mode (discussed later) of the spark image layer to Addition at it makes it look like the sparks are part of the image not just on top of the image, since in real life this is exactly what is happening, the light of the sparks is being added to the light of the background image.
So to add the character in as a new layer, find the Open as Layer under File
and find the image of the character you want.
Here is what I am working with (Made by @Chatterbox )
Something important I want to point out is, depending on your render output, the background could not have transparency enabled. Transparency, or called the Alpha channel when talking about digital pictures, is how computers allow for images to have transparent parts. If you see the name of one or more of your layers look bold like this (the background layer text is bolded)
If you see bolded text for the layer name, that is Gimp's way of telling you that the file was not saved or set to have an alpha channel (saves on memory size). Since a lot of the effects and edits we are going to do with the image are going to be used on the background image (or a copy of it) and these effects are going to use the alpha channel, we need to enable transparency for the image, else bad things happen.
To do this, RIGHT CLICK on the LAYER you want to change, and click the Add Alpha Channel option
Now the text should be normal like this
After making sure all the layers have an Alpha channel, we are going to duplicate (make a copy) of the background image. You can either: RIGHT CLICK on the BACKGROUND LAYER and click Duplicate Layer, or if you notice in this image, there is an Icon next to this option that looks like 1 photo infront of another, this same icon can be found at the bottom of the Layers Tab, clicking on that icon will do the same thing (BUT MAKE SURE YOU HAVE THE RIGHT LAYER SELECTED WHEN YOU CLICK THE ICON, THE CURRENT ACTIVE LAYER WILL BE HIGHLIGHTED SO YOU KNOW WHICH EFFECT WILL APPLY TO WHICH LAYER)
The Next important thing to learn about for using Image Editors is Selection. Selection is the idea that you can select only part of an image or a layer. Just as effects you apply to a layer will only apply to that one layer, effects will also check to see what you have selected, and will only apply that effect to the selection. You can tell what is selected by having those crawling white and black ant, anything inside of area is selected. Sometimes it will be hard to tell what is selected because selections can be inverted, as discussed later. The important thing to know is, at any time you want to make sure the layer is properly selected, click on the layer, and press Ctrl + A to select the whole layer. Selections are not hard (is or is not selected) but can be soft (50% selected) this way we can effects fade in and out of areas of selection.
What we want to do in this next step is to make a cutout in this second background image (layer) that we just made, but we want to make this cutout in the shape of our character. For now what we want to do is make a selection. But rather than drawing a box or a circle, or trying to freehand draw a selection shape around our character, we are going to try an automated method. To do this, we are going to convert the character's alpha channel into our selection channel. This means tricky areas like patches of hair where you can see through the locks, instead of trying to figure out how to draw the selection area for the hair by following the strands, the program will automatically be able to set the right selection value for hair and other stange things in our image. To do this, we just RIGHT CLICK on our CHARACTER LAYER and select, Alpha to Selection like this
With the selection in the shape of our character, we will now LEFT CLICK THE SECOND BACKGROUND LAYER. With the second layer selected, we will press delete, and you see get something that looks like this, a background with a hole in the shape of your character.
By going to the character layer, we could select it to find the Selection area we wanted, and because the selection areas is independent of the layer system, we could click the second layer, but still have the same selection area, so when we click delete, we have the selection in the shape of our character so it will delete (remove) part of the image in the shape of our character, but only do this deleting to the one layer we have selected.
After that, Move the Background Copy layer to the TOP of the stack by Left clicking and HOLDING and DRAGGING the layer to the top, you should see a thin white line above the Character layer, this indicates where Gimp things you want to put the layer (in order of the stack).
Next we are going to blur this layer. To do this, MAKE SURE THE MODIFIED BACKGROUND IS SELECTED BY LEFT CLICKING ON IT, and make sure the whole layer is SELECTED by pressing Ctrl + A (the white/black ants should now crawl around the imaeg, no longer in the shape of the character), then go to the tool bar (right click on the image) and choose Filters>Blur>Gaussian Blur
A popup should show up, depending on the size of your render, you may have to play with this number, but get it blurry enough (20 to 60) such that a good portion of the blur covers the character
I went with 45, (the chain means both numbers stay linked or proportional).
If you did this to the rigth layer, and this layer is on top, the background should look blurry, but the character should look not blury, but having some colors bleed around them like this