To whom this may concern,
I am currently exploring the use of this software to simulate a drone's depth image scan of a road with potholes in blender for a university project.
As such, I have modeled a simple meshgrid with craters in it to represent a road with pothole defects, and positioned the camera directly above it (to represent a top down drone's eye view of the road) like so:
![image](https://private-user-images.githubusercontent.com/73805649/272309390-3479e683-051e-442d-9a39-520de26179ac.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MjY2MzQsIm5iZiI6MTcxNzkyNjMzNCwicGF0aCI6Ii83MzgwNTY0OS8yNzIzMDkzOTAtMzQ3OWU2ODMtMDUxZS00NDJkLTlhMzktNTIwZGUyNjE3OWFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDA5NDUzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1YTlkM2E4YTg4YjlhMDQ5ZGYzNWZlYzM3OGQ2MTUzNDhiZjhkZDc3ODRjYmVmNjk4M2MyOGE4NWJhYjY3N2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.seLlxAiI1gBf8D9db4YbOKicVyAy9uvv6U1Fp_O7Mk0)
I have applied the same material on the meshgrid object as the one applied to the original cube in the example file "script_usage.blend".
Using the function for static scans, I have been able to successfully scan the meshgrid and output the resulting depthmap as an image to a desired file location:
![image](https://private-user-images.githubusercontent.com/73805649/272310545-929d64f7-d11a-4f30-9146-f35333979b76.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MjY2MzQsIm5iZiI6MTcxNzkyNjMzNCwicGF0aCI6Ii83MzgwNTY0OS8yNzIzMTA1NDUtOTI5ZDY0ZjctZDExYS00ZjMwLTkxNDYtZjM1MzMzOTc5Yjc2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDA5NDUzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4NzgyMjBkZDg4ZmFiNjA4MWM4YTFhZDRiMDEzNzRhODc0YzM1MjM2MjM4YWVmMDc2MzczZWE1YWM1MThmZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.lg4K5AzJQ9PBvuu0T00x4x3XQEvKG0QiP-QYj44xXAE)
However, the problem is that, in keeping with real world dimensions, I have set the depth of the potholes to be quite shallow wrt. the scene dimensions, with depths ranging from 25 to 75mm.
![image](https://private-user-images.githubusercontent.com/73805649/272311856-a9362fd2-1985-4e40-b5fa-5b10b4cfff44.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MjY2MzQsIm5iZiI6MTcxNzkyNjMzNCwicGF0aCI6Ii83MzgwNTY0OS8yNzIzMTE4NTYtYTkzNjJmZDItMTk4NS00ZTQwLWI1ZmEtNWIxMGI0Y2ZmZjQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDA5NDUzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxYWExYjlhM2FhNzk4MDE3ZDBjMWM5NzlhZDU3NGFjOTBkZDBhM2NlZTk2ZTNjNjZmZWM1NjUyOTBjN2E3ZjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OibTkwQRyqNBMWJURsQsJGdY9DVLou7isAeOOFjXjTQ)
Therefore, there is a great lack of contrast in the resulting depth image:
![image](https://private-user-images.githubusercontent.com/73805649/272312144-7adc4673-20fe-4dc9-921a-70030c332fb4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MjY2MzQsIm5iZiI6MTcxNzkyNjMzNCwicGF0aCI6Ii83MzgwNTY0OS8yNzIzMTIxNDQtN2FkYzQ2NzMtMjBmZS00ZGM5LTkyMWEtNzAwMzBjMzMyZmI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDA5NDUzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0MGE2N2UzZjhhMzAwOTE1N2YwNDA5YjBkNzViZGM3OTk3MThlZmRmMTcyZTlhYmQwMTM4YTg3NWIxNjQ4MzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VTRoKtFRJK6Fi4pEBh2ZPzQAi12Y7-vKcN2qcS-Sbvc)
I have verified that the LIDAR capabilities are working by using it to create depthmaps of other objects (like the default arrangement in "script_usage.blend").
Is there any way that I can tweak the source code to increase the contrast/sensitivity of the scan so that the difference in depth, although small, could be more apparent? Such that it looks like the result of a blender Z-pass render? An example blender-rendered depth image showcasing potholes of a similar depth, created using the same scene as shown above in the first screenshot, can be found in the image below:
![image](https://private-user-images.githubusercontent.com/73805649/272313871-ac5d22be-a687-4557-b666-3992c96b427d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTc5MjY2MzQsIm5iZiI6MTcxNzkyNjMzNCwicGF0aCI6Ii83MzgwNTY0OS8yNzIzMTM4NzEtYWM1ZDIyYmUtYTY4Ny00NTU3LWI2NjYtMzk5MmM5NmI0MjdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjA5VDA5NDUzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTM1ODRkZWI0MGZiZGYzMDVkZDRiNzhkMzA4ZmJhZDAzMjQ0ZWJjYTA3Yjg3MDM1YjA4NjY1M2UwY2FhNzhlYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1nzD2B7IiuEohbbCKYvWVMYXG3CFwU_GFrWfKVyV0oA)
I have tried looking around the source code for a bit but unfortunately it is beyond the scope of my undergraduate knowledge and problem solving ability.
Best regards