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.
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
)
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
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