Community
Arnold for Houdini Forum
Rendering with Arnold in Houdini and Solaris using the HtoA plug-in.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Z Depth Infinity Error HtoA

5 REPLIES 5
Reply
Message 1 of 6
Nathan.Reynolds98
624 Views, 5 Replies

Z Depth Infinity Error HtoA

Hey guys,

I'm fairly new to Arnold coming from Mantra so please forgive me if its a silly question,

I've noticed that areas of my render with no geometry render with the Far Clipping plane value in the Z pass, is there anyway I can have this render as 0 instead? I understand this is not physically correct but at the moment I'm getting errors with DoF in Nuke as the edges of my FG objects go from Z values of 6 to 100000

Any help is appreciated!

Nathan

Labels (3)
5 REPLIES 5
Message 2 of 6

No, you won't be able to change it to 0. You could normalize the depth value to the 0-1 range:


...the Depth channel will give you non-antialiased, non-normalized depth data in the alpha channel. Non-normalized means that the Z depth values are not between 0 and 1 (distance in front of the camera), so you must divide the Z values by the far clipping plane value to get 0..1 values. This remapping is only required when viewing the depth channel in the viewer. It is not needed to make the zdefocus node work.




// Stephen Blair
// Arnold Renderer Support
Message 3 of 6

Ah damn, do you happen to know of any hacky way to get a render pass that returns the distance from camera without including empty areas of the scene?

Message 4 of 6

Answer:
In the end I decided it's easier to bite the bullet and go with a deep workflow for the shots I was trying to cheat

Message 5 of 6

Hey Nathan,

too late but you could always adjust the clipping plane in 3d and move it closer to your subjects or do the same thing in Nuke with your Depth Data. Just merge (min operation) your depth stream with a constant node and adjust the values of your constant to be just a tiny bit further away from the camera.
On the other hand a deep workflow still gives cleaner results.


Cheers, Martin

Message 6 of 6

Ah great suggestion thanks! That would have fixed it 😄

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums