PDA

View Full Version : depth map from a single photo



sadkkf
12-26-2018, 11:27 AM
Does anyone know of a tool to help create depth maps from a single photograph? I'm trying to composite 3D elements into photographs and depth maps would be a huge assist.

So far, I've found Topaz's Lens Effects (https://topazlabs.com/lens-effects/) plugin to be a decent solution (US$60). It's a manual solution, but looks easy enough to use for my needs, but I'm wondering if anyone knows of any alternatives.

Thanks!

Axis3d
12-26-2018, 11:57 AM
It's probably going to be a manual process of creating the depth maps in photoshop or something. Unless you can use 3D standin objects to create them. You can use a 3d model, in its properties, check "Matte Object". Change the color to white. Then use a black linear fog color in the Render Properties > Volumetrics tab. You can use a much simpler object than the one showing in my example. Usually, simpler works better.

What type of photographs are they? Landscapes, people, architecture?143691

Ma3rk
12-26-2018, 12:15 PM
Does anyone know of a tool to help create depth maps from a single photograph? I'm trying to composite 3D elements into photographs and depth maps would be a huge assist.

So far, I've found Topaz's Lens Effects (https://topazlabs.com/lens-effects/) plugin to be a decent solution (US$60). It's a manual solution, but looks easy enough to use for my needs, but I'm wondering if anyone knows of any alternatives.

Thanks!

As a matter of fact, https://topazlabs.com/lens-effects/ was my first introduction to Topaz Labs. Haven't come across anything similar yet. Think I've most of their products now.

Ya, you could to it all in Photoshop, or Affinity, etc., but nowhere near as easy & fast.

Take a look at their Remask tool too, particlularly if trying to do intricated detail & transparency.

sadkkf
12-26-2018, 12:50 PM
What type of photographs are they? Landscapes, people, architecture?143691

I'm really just playing for now. I've got some simple toys...a plastic shark and a diver in a cage, for example, to photograph, then add some 3D elements like a shipwreck or something. Nothing photorealistic and nothing too precise.

To get started, I'm okay with some manual labor on these since the objects will be simple and photographed on a key-able background.

@Ma3rk -- I've been using ON1's Photo Raw for my photo editing, but they don't really have a tool like the Depth Mask creator. It looks easy enough and may be worth the money if I can't find anything else.

Axis3d
12-26-2018, 01:07 PM
That's cool. Once you take the photograph of your toy setup, you can then replace the toys with a box to photograph. A box will have X, Y, and Z information, which you can use in Lightwave as a still backdrop. You can use LW's "Match Perspective" feature to align your 3D camera to the same focal length and angle as your real camera when you shot the toys. This will go much farther to help you align 3d objects into your photograph.

sadkkf
12-26-2018, 01:22 PM
As a matter of fact, https://topazlabs.com/lens-effects/ was my first introduction to Topaz Labs. Haven't come across anything similar yet. Think I've most of their products now.

Ya, you could to it all in Photoshop, or Affinity, etc., but nowhere near as easy & fast.

Take a look at their Remask tool too, particlularly if trying to do intricated detail & transparency.

I haven't actually upgraded Photoshop since CS6. Do you know if this plugin with work with it? I can try the demo version later. It's too bad there isn't a standalone version of this. :)

Qexit
12-26-2018, 01:41 PM
Probably not what you are looking for as it is for material creation but have you seen what Materialize can do ?

http://www.boundingboxsoftware.com/materialize/index.php

It's free, so wont cost you anything to take a look but it is only available for Windows.

Ma3rk
12-26-2018, 02:19 PM
I haven't actually upgraded Photoshop since CS6. Do you know if this plugin with work with it? I can try the demo version later. It's too bad there isn't a standalone version of this. :)


That's the version of Photoshop I still use.:D Actually, the whole Creative Studio Suite. I refuse to be a part of Adobes extortio..."subscription" scheme.

I worked with Joe A. at Topaz for some weeks awhile back to get the script (on Topaz's Help page https://help.topazlabs.com/hc/en-us/articles/115004587027-Accessing-Topaz-Studio-in-Adobe-Photoshop) to install into CS6 correctly & now it does. They install into current version of Affinity Photo just fine as well, but that's a simple process as described in their docs.

sadkkf
12-26-2018, 02:23 PM
Probably not what you are looking for as it is for material creation but have you seen what Materialize can do ?

http://www.boundingboxsoftware.com/materialize/index.php

It's free, so wont cost you anything to take a look but it is only available for Windows.

That's pretty cool. I've been using CrazyBump, but it doesn't do anything with depth maps.

Ma3rk
12-26-2018, 02:24 PM
Probably not what you are looking for as it is for material creation but have you seen what Materialize can do ?

http://www.boundingboxsoftware.com/materialize/index.php

It's free, so wont cost you anything to take a look but it is only available for Windows.

Of course. Guess who picked up Allegorithmic's bitmap2material back in September?

sadkkf
12-26-2018, 02:26 PM
That's the version of Photoshop I still use.:D Actually, the whole Creative Studio Suite. I refuse to be a part of Adobes extortio..."subscription" scheme.

I worked with Joe A. at Topaz for some weeks awhile back to get the script (on Topaz's Help page https://help.topazlabs.com/hc/en-us/articles/115004587027-Accessing-Topaz-Studio-in-Adobe-Photoshop) to install into CS6 correctly & now it does. They install into current version of Affinity Photo just fine as well, but that's a simple process as described in their docs.

That's great! I'm not a fan of Adobe anymore for the same reason. Just done with them.

And to install this for CS6 you needed a special script?

Ma3rk
12-26-2018, 04:08 PM
That's great! I'm not a fan of Adobe anymore for the same reason. Just done with them.

And to install this for CS6 you needed a special script?

Ya was just a litte ways down on that page but seems things have changed, but just go here:

https://support.topazlabs.com/hc/en-us/articles/217970708

sadkkf
12-26-2018, 04:33 PM
Ya was just a litte ways down on that page but seems things have changed, but just go here:

https://support.topazlabs.com/hc/en-us/articles/217970708

Actually, I just tried installing it and it works without the helper. This is version 1.30. Are you using an older version?

Ma3rk
12-26-2018, 05:52 PM
Actually, I just tried installing it and it works without the helper. This is version 1.30. Are you using an older version?

Of which? The bat utility? It's listed as ver 1.3.3 now. Oh, Lens Effects. Ya, 1.3 is the last.

Good deal then.

Remember to duplicate your layer first with the Topaz Plugs as they aren't non-destructive, although I think there's a Smart Object option. Easier for me to just dupe the layer frankly.

Also, Topaz Labs and Topaz Studio are separate toolsets but both can live in your PS Filter menu. You'll have a Topaz Labs tab, and a Topaz Studio tab. Confusing perhaps, but so it goes.

Most of their tools have a batch operation option too. No real way to batch ReMask, although there was a thread on the Mocha Pro forum.

I used Studio last week to clean up some graininess on a rendered sequence; quite fast, ~ 4 mins to run through a 120 frame seq.

Ok, so now that your nose in in the Topaz tent so to speak, ya might as well go check out their BW Effects 2.

sadkkf
12-27-2018, 06:38 AM
Remember to duplicate your layer first with the Topaz Plugs as they aren't non-destructive, although I think there's a Smart Object option. Easier for me to just dupe the layer frankly.

That's a good tip, thanks!

I do like the tools they have, but they're a little pricey for me. That's why I went the On1 route. All of their tools are in one package and don't require Photoshop. Still, Topaz has some effects I can't get with On1. The BW 2 plugin is really amazing.

Bitboy
12-28-2018, 01:06 PM
Just a suggestion: I did some anaglyph 3D images where I had to create depth maps manually from a single photo. A great tool for doing this was Affinity Photo (cheap and one-time payment). It's got superior gradient tools (which is easily interactively editable) compared to Photoshop and that's what made it so much easier to do. I tried Topaz Lens Effects but it was better (in this case) for me to do it in Affinity Photo. It has replaced Photoshop for me :)

Here's an example of what I did:

143724
143722
143723

sadkkf
12-30-2018, 08:37 AM
Just a suggestion: I did some anaglyph 3D images where I had to create depth maps manually from a single photo. A great tool for doing this was Affinity Photo (cheap and one-time payment). It's got superior gradient tools (which is easily interactively editable) compared to Photoshop and that's what made it so much easier to do. I tried Topaz Lens Effects but it was better (in this case) for me to do it in Affinity Photo. It has replaced Photoshop for me :)


This is the second time Affinity has been mentioned. Looking at it again, it seems nice. And cheap! Way cheaper than PS. I may need a late xmas present to myself. :)

Ma3rk
12-30-2018, 12:02 PM
This is the second time Affinity has been mentioned. Looking at it again, it seems nice. And cheap! Way cheaper than PS. I may need a late xmas present to myself. :)

Ya, for the price it's worth picking up & tossing into the toolbag. I got it a month or so ago as I came across an issue with PS and OpenEXR's. I've not had any real issues using Illustrator otherwise I'd have picked up Designer too.

Bitboy
12-30-2018, 12:10 PM
I've been really happy with Affinity Photo and Designer. Trying out their new Publisher beta and it looks good. Shocker was that editing a PDF in there is way easier than doing it in Acrobat DC. So that might end up in the toolbag too :) Simply couldn't afford Adobe CC anymore. It's well worth the one time payment and they have loads of tutorials for each program. And a new update of Photo and Designer is right around the corner with new features. :)