Announcement

Collapse
No announcement yet.

Sampler info path length scale

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sampler info path length scale

    Would be possible to add scale parameter to path length in sampler info? I'm using this for zdepth (btw much better that default zdepth element), but with 16bit exr and big distance values it return infinite values.
    I know there are other ways to solve it but this makes most sense to me.
    Thanks

  • #2
    Interesting, but as you've already found out, this method is not always accurate for depth information, since the Path Ray depends on the sampler settings. Why not use Z-depth?
    Aleksandar Hadzhiev | chaos.com
    Chaos Support Representative | contact us

    Comment


    • #3
      Because setting up min/max values is really tidious. Withpath length we have directly everything in world units
      and we dont need to do some shenanigans in comp to convert it. Adding this option to zdepth pass would be however the best solution.

      Comment


      • #4
        Does Turning off Clamp in the Z Depth channel give you what you want? Are you saving to a floating point format like EXR? If so you don't have to worry about setting the planes if you don't want to. I usually do just so it is easier to look at.

        YOu can easily find the min and max by temporarily enabling Clipping Planes Or Environment Clipping in the camera and copying those values.

        Comment


        • #5
          You give me an idea hot to mimic path length behaviour using default zdepth pass. Ill give it a try and see if it works.

          Comment


          • #6
            Ok so using default zdepth element can be used in the same way when you use max distance as a scale modifier and of cource with turned off clamp you can return distance in world unis. This is great I never think about this like that.

            Comment


            • #7
              Yeah, no clue why clamp default to ON? If you are using an integer file format it is going to clamp regardless, but there is no reason you would WANT it to clamp with a float format.

              Comment

              Working...
              X