You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print(normals.min()) # is 0.5
print(normals.max()) # is 0.5
Provide a link to all 3D models you used, if they are from one of the publicly available supported datasets, provide the name or path so that it is possible to reproduce the error. https://easyupload.io/dovng0
Screenshots
color:
depth:
normals:
Additional context
Any idea why my normals are all 0.5?
The text was updated successfully, but these errors were encountered:
your given minimal example is not working, however I suspect that your problem is caused by the fact that you are calling bproc.renderer.enable_normals_output() before adding the camera poses.
The bproc.renderer.enable_normals_output() needs the camera poses, as every normal image should be in camera coords.
Maybe we should add a warning when it is called before creating the camera poses.
Describe the bug
The normals are all 0.5.
General Information
Which BlenderProc version are you using?
2.3.0
On which operating system are you?
ubuntu 22
Have you checked the issue tracker to see if a similar issue has been opened?
yes
Have you changed BlenderProc in any way besides the config file? If yes, are you sure that this change does not affect the problem you are having?
yes
To Reproduce
Steps to reproduce the behavior:
bproc.init()
obj = bproc.loader.load_blend("test.blend", obj_types="mesh")
bproc.renderer.enable_depth_output(activate_antialiasing=False,convert_to_distance=False)
bproc.renderer.set_max_amount_of_samples(100)
bproc.renderer.set_light_bounces(transmission_bounces=200, transparent_max_bounces=200, max_bounces=200, glossy_bounces=200, volume_bounces=5, diffuse_bounces=200)
bproc.renderer.set_output_format(enable_transparency=False)
bproc.renderer.enable_normals_output()
bproc.renderer.set_denoiser(None)
data = bproc.renderer.render()
data.update(bproc.renderer.render_segmap(map_by=["class"]))
filename_rgb = filename_base + "color.jpg"
cv2.imwrite(filename_rgb, data["normals"][0])
filename_normals = filename_base + "normals.jpg"
cv2.imwrite(filename_normals, data["normals"][0])
print(normals.min()) # is 0.5
print(normals.max()) # is 0.5
https://easyupload.io/dovng0
Screenshots
![000004-color](https://cdn.statically.io/img/user-images.githubusercontent.com/105629389/230178777-2e7c2039-9cbd-4e7d-934e-55f1acb86cac.jpg)
![000004-depth](https://cdn.statically.io/img/user-images.githubusercontent.com/105629389/230178865-74460371-2b03-400f-8b9d-b4d0459eafe1.png)
![000004-normals](https://cdn.statically.io/img/user-images.githubusercontent.com/105629389/230178907-6e77f204-894b-4123-90da-43e197bfa74f.jpg)
color:
depth:
normals:
Additional context
Any idea why my normals are all 0.5?
The text was updated successfully, but these errors were encountered: