Z Depth channel - pure white result

Hi,

I wonder if I do something wrong but I can’t see the Z depht result of my render (the channel is empty white). I do have many IES lights in a big sport hall and horizontally positioned double sided invisible rectangular light.

Any ideas why this happens?
Thank you

I deactivate “set from camera” and meassure&set the distance for the balck and white distance before a rendering is started.

A nice button script to measure the distance between camera and objects in the scene is this:

! _NoEcho _-Runscript (
Option Explicit

Call DistToCamera()
Sub DistToCamera()
    Dim pt,dist,units,prec,msg
    pt = Rhino.GetPoint(“Pick point on object”)
    If Not IsArray(pt) Then Exit Sub
    dist = Rhino.Distance(pt, Rhino.ViewCamera())
    units = Rhino.UnitSystemName(, True)
    prec = Rhino.UnitDistanceDisplayPrecision()
    msg = "Distance from pick point to camera is "
    Call Rhino.Print(msg & Cstr(Round(dist, prec)) & " " & units)
End Sub
)

Thanks Micha,

in my case it did not work as I have a plane used as background pretty far from the building (like a backplate). I suspect it is the big distance the reason.
cheers

I don’t understand why a backplane should be a problem, since you can manual define the range of the z-depth.

Hi micha,

The problem was in the units.. my bad I did not set them properly.
1.5m is the range by default while I have 50m long hall..
thanks again and have a nice week ahead