Open peterzxli opened 2 years ago
Try vis.draw(geoms, raw_mode=True)
# Requires Open3D 0.15+
Try vis.draw(geomes, show_skybox=False)
# Requires Open3D 0.15+
Turn it off from the GUI menu.
Thanks, but none of the options work. It seems that the room background is associated with the HDR map which can be turned off in the GUI. What API should I used to turn off the HDR map in C++?
Thanks, but none of the options work.
Could you verify the Open3D version?
print(o3d.__version__)
Could you post a screenshot when you try Option 1
?
Option 1 should have disabled the HDR map. Can you post a screenshot? Are you using 0.15?
In C++ you can use the EnableIndirectLighting
of the Scene
class to enable/disable HDR lighting.
Hi, I am on version 0.15.2. The visualizer crashes for option 1.
@errissa Shall we also add this option (and other options) to the C++ open3d::visualization::Draw()
?
Ah, @peterzxli I think I now got what you mean. There are two things:
You want to remove 1. @errissa could probably help you with that.
@errissa I cannot find EnableIndirectLighting
in open3d::visualization::rendering::Open3DScene
class that I am using in C++. Can you please let me know how to achieve the same functionality in this class?
@yxlao Thanks for your help as well!
@peterzxli It’s a method of the low-level Scene
class. You can get from the Open3DScene
class with the GetScene
method.
@errissa Thanks! On the C++ side, I am still seeing some undesirable gradient in the background if the box is viewed at a certain perspective. I use the following visualization setting and see the following results:
Can you please let me know how to resolve this? Thanks again!
mat.shader = "defaultLitSSR";
mat.base_color << 0, 0, 0, 1;
mat.base_roughness = 0.0;
mat.base_reflectance = 0.0;
mat.base_clearcoat = 0.0;
mat.thickness = 4;
mat.transmission = 0.8;
mat.absorption_distance = 1;
mat.absorption_color << 0, 1, 0;
auto test_box = open3d::geometry::TriangleMesh::CreateBox(5,5,5);
this->widget3d_->GetScene()->AddGeometry("bbox", test_box.get(), mat);
this->widget3d_->GetScene()->GetScene()->EnableIndirectLight(false);
this->widget3d_->GetScene()->ShowSkybox(false);
Desirable result (when viewed at some perspectives):
Undesirable result (when viewed at some other perspectives):
@peterzxli I will look into this but this looks like it could be the correct behavior given the material settings. In the meantime, if you haven't already please review the Filament material guide to make sure you're setting the material properties correctly for your desired result.
This behavior only appears in C++ (not python). It looks like there is a ground plane with a darker color hidden in the background. I turned the ground plane off though.
Checklist
master
branch).My Question
Hi, how do I remove the default room background from the visualizer in python and C++? The room becomes visible on the surface of a reflective object.
Please refer to the example code and output below. Thanks!