Jump to content

clamping Pz range in mantra


qral

Recommended Posts

Hi guys

Im having trouble getting a good Pz channel render from the camera settings I am using. I am using a 180mm focal length and the camera is situated 100 units away from the model. The resulting rendered Pz channel is very poor, with very little detail in the depth, making it difficult for applying it later in post.

Is there a way of telling Mantra that is has to clamp the depth (just as if the camera were much closer)?

Thanks in advance!

- Rasmus

Link to comment
Share on other sites

Hi guys

Im having trouble getting a good Pz channel render from the camera settings I am using. I am using a 180mm focal length and the camera is situated 100 units away from the model. The resulting rendered Pz channel is very poor, with very little detail in the depth, making it difficult for applying it later in post.

Is there a way of telling Mantra that is has to clamp the depth (just as if the camera were much closer)?

Thanks in advance!

- Rasmus

hello,

You can create your own shader and then connect the surface depth to a "fit" node and output to surface color.

The fit node let's you control the "range" of your depth.

In the mantra node choose Closest sample filtering in pixel filter and closed surface in sampler filter

have fun,

Thomas

Link to comment
Share on other sites

Hi guys

Im having trouble getting a good Pz channel render from the camera settings I am using. I am using a 180mm focal length and the camera is situated 100 units away from the model. The resulting rendered Pz channel is very poor, with very little detail in the depth, making it difficult for applying it later in post.

- Rasmus

I think, Even if one refits in shader the number of steps / pixels are limited.

I would render image bigger, perhaps twice the size and get more information for post work.

Since the floating point precision is arbitrary (at least for image manipulation purposes). You could refit it later in post too.

I don't know if that's a good practice.

Cheers,

Edited by vectorblur
Link to comment
Share on other sites

Thanks for your input... after fiddling with the shader solution, trying to clamp the values and normalizing it with the fit node, I must admit im not getting the result I hoped for. I have played around in the composition part and believe I have found a way to deal with the problem...

- Rasmus

Link to comment
Share on other sites

This might not be of any help to you, but I'm actually very happy about the way Houdini outputs depth information in a raw non altered way. It's just a 1:1 mapping of distance to luminance.

What do you mean exactly by "poor quality"? Have you tried the sample and pixel filters "papicrunch" has suggested? You probably already know this, but the depth channel is supposed to be aliased.

-dennis

Link to comment
Share on other sites

@ dennis, I don't believe there is nothing wrong with the way Houdini is mapping the depth,maybe the term "poor" was a bit off, I think the problem probably has more to do with the Focal Length, if you compare a tele and a wideangle depth render, the wideangle is much more detailed and the range "seems" greater.

@macha, do you mean using volumes for fog effects or for some depth information wizardry ? and what do you mean by "mb"?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...