What is the output from the Depth-brick in Shader Mixer?

Oom FooyatOom Fooyat Posts: 0
edited July 2012 in Daz Studio Discussion

The documentation is a bit short on what comes out of the Depth-brick. It seems to be a rather small value so I doubt is is cm.
The question came up in this thread https://www.daz3d.com/forums/discussion/4026/

Cheers! Oom

Post edited by Oom Fooyat on

Comments

  • Richard HaseltineRichard Haseltine Posts: 19,963
    edited July 2012

    I'm not certain it isn't counting ray-trace bounces, rather than physical distance. What about this, which takes the point for the eye, the point on the surface, and calculates their distance?

    DistanceToCamera.jpg
    569 x 371 - 25K
    Post edited by Richard Haseltine on
  • Oom FooyatOom Fooyat Posts: 0
    edited December 1969

    Thank you for your answer and interest Richard it is much appreciated!
    However it is not an answer to the question.

    What the documentation do say is that is is a distance. The value was between 0 and 1 in my tests so I don't think it is a count of ray bounces.

    Depth

    Brickyard : Functions > Geometric

    Provides the distance from the camera to the surface of the object at that micropoly as a Float.

    I have been thinking about asking specific questions about every detail that is missing in the Shader Mixer documentation to get it complete.
    This is not the start of that little project............ I think ;-)

    Cheers! Oom

  • Richard HaseltineRichard Haseltine Posts: 19,963
    edited December 1969

    What happens if you multiply it by the SceenMax variable (or rather, the Pythagorean length derived from it since that's a point)? Maybe it's returning a value equal to the fraction of the total extent of the scene? Sorry, I am, as you may infer, guessing here.

  • Oom FooyatOom Fooyat Posts: 0
    edited December 1969

    Thank you for your answer and interest Richard it is much appreciated!
    I see it like this: The answer to this question should have been in the documentation, it is not there.
    As the information is not where it should be, I ask for it and I fully expect one of the four or five (my guess) people in the universe who actually knows the answer to share the information. :)

    Cheers! Oom

  • DollyGirlDollyGirl Posts: 1,700
    edited December 1969

    Thank you for your answer and interest Richard it is much appreciated!
    I see it like this: The answer to this question should have been in the documentation, it is not there.
    As the information is not where it should be, I ask for it and I fully expect one of the four or five (my guess) people in the universe who actually knows the answer to share the information. :)

    Cheers! Oom


    Oom, I am not one of those four or five "in the know". Those are very rare birds. I was thinking though, that this approach maybe very good to get those answers. So in the mean time I did some digging and this is what I found:

    If you look at page 139 (page 150 in the pdf) of the RISpec3.2 Manual you find the following:

    float depth( point P )
    Return the depth of the point P in camera coordinates. The depth is normalized to
    lie between 0 (at the near clipping plane) and 1 (at the far clipping plane).

    Here is a pretty good explaination of what near clipping planes are:
    http://www.sjbaker.org/steve/omniv/love_your_z_buffer.html
    and here for what far clipping planes are:
    http://www.facepunch.com/threads/1075270-What-s-the-point-of-the-near-clipping-plane-in-3d-games

    So I guess the question now is where are the near and far clipping planes set in DAZ?
    Lonnie

Sign In or Register to comment.
Rocket Fuel