Comments (4)
The depth (z-buffer) of blender are orthogonal distance to lense's plane. Did you calculate depht like this?
Thank you for sharing this great tool. I observe that for blender 2.81, the cycles engine does not output z depth buffer as orthogonal distance to lense's plane. Actually, the z-buffer is the distance from the camera to pixels, as mentioned by @yushiangw. But on blender 2.93, it outputs orthogonal distance. For users using blender 2.8x with cycles engine, they should be careful with the depth map.
from bpycv.
It looks like switching to CYCLE + shift image coordinates by 0.5 help. I thought camera clip_end/start will make some difference but not much.
https://docs.blender.org/api/current/bpy.types.Camera.html#bpy.types.Camera.clip_end
some of my numbers :
BLENDER_EEVEE
mean_dist =2.75e-04
median_dist=2.56e-04
max_dist =1.24e-03
min_dist =1.94e-06
BLENDER_EEVEE + set clip start/end to (0.5,5)
mean_dist =2.73e-04
median_dist=2.51e-04
max_dist =1.24e-03
min_dist =1.94e-06
CYCLE
mean_dist =7.46e-05
median_dist=3.34e-05
max_dist =1.21e-03
min_dist =8.67e-09
CYCLE + set clip start/end to (0.5,5) + add 0.5 pixel shift
mean_dist =8.40e-08
median_dist=3.62e-08
max_dist =1.31e-06
min_dist =5.20e-12
CYCLE + add 0.5 pixel shift
mean_dist =8.12e-08
median_dist=3.52e-08
max_dist =1.35e-06
min_dist =5.20e-12
```
from bpycv.
The depth (z-buffer) of blender are orthogonal distance to lense's plane. Did you calculate depht like this?
from bpycv.
I found the same error.
In my case, the depth should be 1.38831, but got 1.3876953125.
Which shorter 0.0006146875.
And I have no idea what is wrong. 😢
from bpycv.
Related Issues (20)
- how to control the rotation (x-y plane) of an object
- question regarding <add_img_background> HOT 3
- Blender 3.0 support? HOT 3
- demo-inst.png is all zeros? HOT 1
- Easy way to get un occluded segmentation maps? HOT 4
- To cityscape format? HOT 1
- about stereo HOT 2
- Question about asserting the upper bound of inst_id HOT 6
- 6D poses matrix? HOT 1
- bpycv.render_data error HOT 1
- Changing exposure in HDR? HOT 1
- Instance map incorrect when objects are converted from duplicates HOT 1
- Hello, could you please tell me how to generate such data set through this code? I already have the 3D model as follows. I will show that there is no package bpy HOT 11
- Segmentation with transparent background HOT 5
- HDRI Haven Replaced by Polyhaven HOT 1
- getting a view from multiple cameras HOT 2
- why is orthographic camera not supported? HOT 1
- Installation with Blender 4.0.2 failed HOT 1
- Wrong instance segmentation map with many objects HOT 2
- The rendered depth of eevee and cycles are different HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpycv.