How to cut out glass, smoke and liquids in Photoshop. Colin Smith shows you how to select semi transparent objects in Photoshop and mask them for seamless compositing.
Hi CAFE Crew! I think you are really going to enjoy this week’s tutorial. I’ve been working very hard on this because I know that it’s going to be a favorite. So many people don’t know where to start when it comes to cutting out transparent and semi transparent objects in Photoshop such as glass, smoke, water etc. This method that I’m about to tech you is what I have been using for years in my commercial work and with a little patience, I hope this workflow will serve you as well as it has me.
I am making a contest this week based on this tutorial. Post your entry in our private Facebook group to win a premium training video
For this tutorial, rather than use my own photos, I decided to grab a couple of images from Adobe stock: This way you can grab them yourself and follow along.
Before I begin, let me proactively address a question I’ll get. “This glass is against a solid color, its easy compared to a complex background.” #1 I’m using Stock, why would you use a stock photo that has a complex background, choose a different photo. #2 if you are photographing it yourself. Why are you photographing objects with a busy background? Its so easy to set up a piece of seamless paper or even hold a sheet behind it. If you have a complex background, it’s better t reshoot or use a different image. However, if you are forced to use a complex image, I have a different tutorial for that here.
Let’s begin by cutting out the glass bottle. This technique is going to give you a crazy amount of control and make the glass see through, you can control how see through it will be! The first thing, is to use the quick selection tool.
Drag it over the white area to make a selection. If you go too far, you can exclude areas of the selection by alt/option and clicking with the tool.
Inverse the selection: Ctrl+Shift+I (Cmd+Shift+I mac)
To check how good your selection is, tap the “Q” key for quickmask
Here we need to clean it up a little bit on the edges.
Choose a small hard brush. Set the color to black and paint in the areas to touch up. (Tip: Click, hold down Shift and click again to draw a straight line)
Tap Q again to toggle back to a selection
Press Ctrl/Cmd+J to copy the selection to a new layer
We have now cut out the bottle shape, but not the transparency yet.
Let’s cut out the transparency, shall we?
Make sure the background is selected. (Hide the top layer for now)
Choose Select>Color Range
When Color range opens, choose Highlights from the Select menu
Adjust the Range until you see a nice clean silhouette of the bottle shape (Fuzziness at 0 for now)
Once the range is set, adjust the Fuzziness until you see a nice gray in the transparent area. (Black is selected, gray is semi transparent selected and white is unselected)
Click ok, and you will see marching ants on the bottle. Any areas that are less than 50% transparent won’t show marching ants, but will still be selected.
Make sure that the background is the active layer as shown here.
Click on the Mask button to mask out the transparency. (If yours look the opposite, undo, hold down Alt/Option as you click the mask button).
We are missing some key parts to the bottle, let’s fix that now.
Duplicate the Layer 1 (extracted bottle) layer by clicking on it and pressing Ctrl/Cmd+J or drag it into the new layer icon in the Layers panel
Hide the top layer. You should now see the bottle as opaque again.
Create a hidden mask, but Alt/Option clicking on the layer mask button.
Choose the brush tool and white as the foreground color
With the layer mask selected on the middle layer, paint around the edges of the bottle to make the important areas fully visible.
Now we have a really cool setup. Turn on the top layer and adjust the opacity to control the transparency of the bottle. Pretty neat huh?
Let’s composite it into another photo, while keeping the setup so we can change our glass transparency.
Before we move it into another photo, let’s box everything up, just like you would with your stuff if you were moving house.
Select all the layers and Press Ctrl/Cmd+G to move it all into a group. I named the group, bottle
Make sure your destination photo is open in Photoshop. (The surfer girl).
With the move tool (V) drag your bottle into the tab at the top for the new image (Don’t release yet) wait for the image to open and then move your pointer into the middle of the new document. Release, and your bottle group has been added to the surfer photo. How to combine images in Photoshop made easy.
Scale and position the bottle (Ctrl/Cmd+T to resize the bottle)
If you expand the bottle group, you will see that you can still adjust the transparency. This is important, because you can see it better on a background and probably want to reduce the transparency a little bit.
We have added the bottle, but it’s still missing a little something to make it look realistic. That is called refraction. Refraction is how something distorts through a lens, that lens could be eyeglasses, water drops, glass or any transparent object that isn’t perfectly flat. This will change our image from a bottle slapped on to a photo, into a well composited glass object in a scene. Here we go…
Hold Ctrl/Cmd and click on the layer thumbnail of the bottle (top layer) this loads the selection for the bottle.
Choose the Background in the Layers panel
Press Cmd/Ctrl+J to copy a selection of the background to a new layer.
Hide the Bottle group so we can see the selected layer (you won’t see anything different yet)
Here is the selected layer in the shape of the bottle. Let’s distort it!
Choose Filter>Distort>Spherize (You could use any of the distort tools, including liquify for this step)
Click ok to apply the effect to the selection. Sometimes you might need to apply it again if the result isn’t strong enough (Ctrl/Cmd+F)
Ctrl/Cmd+D to turn off the selection.
Turn our bottle layers back on and lookie! We have glass refraction. Cool!
Now we are going to cut out smoke and do a little tweaking for a cool effect. I’m really doing this so you can see how to cut out vapors in Photoshop as well as a cool creative idea.
Start with the smoke image
As before, choose Select>Color Range
Grab highlights again and use the settings shown here.
The smoke is selected.
Click on the add layer mask button (Rectangle with a circle in the middle)
Now you have the smoke masked out
Make sure you choose the layer and not the mask in the layers panel.
Drag it into our composite image exactly the same way we did with the bottle.
(Note: The process for selecting water and liquids is identical, but you can easily make liquid brushes, which are great for splashes)
Drag the smoke layer to the top of the layer stack
Position and size the smoke to suit your tastes.
Let’s add some color to the smoke
Create a new Hue/Saturation adjustment layer by clicking the yin/yang shape at the bottom of the layers panel and choosing Hue/Saturation
Right now if I make adjustments, it will affect the entire image, I only want to change the smoke
Click the clip to layer icon at the bottom of the properties panel to isolate the adjustment to only the layer beneath the adjustment layer (our smoke layer)
Make some adjustments to add an aqua hue to the smoke. Notice that lowering the Lightness slightly allows us to add color to white.
Here is the image and the layers panel visible after the adjustments. Adjust the Opacity of the smoke to blend it in nicely.
If I hide the background you can see the work we have done on the transparency. Didi you think you would be doing this in Photoshop? It’s fun!
Here is a step I like to perform on all my composites (another word for collages). Let’s do some overall grading in Camera Raw (Photoshop CC step only)
Let’s make a layer on top that contains all the layers combined.
Select all the layers and Press Ctrl+Alt+Shift+E (Cmd+Option+Shift+E Mac).
With our new, top layer active choose Filter>Camera Raw Filter
You can see the adjustments I made to the color and tone, to give a little more pop to the image.
And here is the final.
Some may ask why I used this method rather than using blending modes. The result is a little different with the modes, Using Screen actually works quite well for the smoke, but we lose a lot of the color in glass if we do it that way. I do have a really good tutorial on Blending modes too, check it out here.
I hope you enjoyed this tutorial, it was more “old school PhotoshopCAFE” with the step by step written instructions to go with the video, Keep checking your favorite PhotoshopCAFE tutorials, because I’m doing this to every free tutorial, to make sure that PhotoshopCAFE continues to have the best tutorials on the internet 🙂
Great to see you here at the CAFE and I look forward to “seeing” you again on my next tutorial.
Don’t forget to browse my hundreds of free Photoshop tutorials, you might be surprised by the quality and amount of our free content
BTW, If you liked this tut, you will love my premium training video, Sky City Project: Compositing in Photoshop
I received an email from Jeremiah Keeneham (thanks!), he says that there were problems completing the steps in CS6 and he has figured out a work-around. Jeremiah was kind enough to write out all the steps and I’ll share them with you. (Since I no longer use CS6, I’m unable to provide support on his steps). Here is his tutorial…<< (Colin)
HOW TO CUT OUT A GLASS BOTTLE FROM A BACKGROUND AND MAKE IT SEE-THRU TRANSPARENT FOR USE WITH ANOTHER IMAGE
Like everything else in Photoshop, there’s multiple ways to skin the cat – this being one that seems pretty simple to me – and I love ‘simple’ when it comes to Photoshop.
If you want to lower the opacity of the inside of the bottle so it is a little bit cloudy instead of crystal clear, I’m sure there are more sophisticated ways, but you could try this which seems ‘dirt simple’ to me.
As you can see, Layer blending modes play a big part in this kind of thing. Grab your free PDF ebook right now. We were going to sell this for $9.99, but figured we would give it away instead and see what happens 🙂
This Photoshop tutorial shows you how to replace a boring blue sky with a dramatic cloudy sky....
How to remove yourself from a 360 photo in photoshop CC. Photoshop CC can edit 360 VR photos, this photoshop...