Thanks for the reply!
In fact, this is the problem I encountered while using MaxScript. Since I need to use a 16-bit depth map for high-precision judgments, the `getChannelAsMask` method mentioned in this link is not sufficient. Therefore, my approach is to use the Render API, along with `maxOps.GetCurRenderElementMgr.AddRenderElement zDepthElement`. In this process, I use the Render API's `renderElements:true` and `renderElementBitmaps:&reb` properties. Everything works perfectly until I encounter the antialiasing issue mentioned above. So, I tried adding the `antiAliasing:false` property in the Render API, but the resulting depth map turned out completely black. Then, I tried to replicate the Render API usage through the GUI, and found that the result was the same, as shown above.
the complete code is:
render camera:MyCam outputsize:[512,512] channels:#(#zDepth) \
renderElements:true renderElementBitmaps:&reb renderhiddenobjects:false vfb:off \
antiAliasing:false -- !!!NOTE: this will make the depthmap completely black
So, I believe this issue is common and unrelated to whether it's through the GUI or a script.
Finally, based on the current situation, the only solution for me at the moment is to increase the resolution of the output size.