Skip to content

Commit

Permalink
Disabling anti-aliasing to get rid of Black Screen on Docker or MVs w…
Browse files Browse the repository at this point in the history
…hen using OpenGL 4.5. See gazebosim/gz-sim#1116 (comment)
  • Loading branch information
rubenanapu committed May 31, 2022
1 parent cce99b5 commit 0ab8d53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/minimal_scene/MinimalScene.cc
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ std::string IgnRenderer::Initialize()
this->dataPtr->camera->SetFarClipPlane(this->cameraFarClip);
this->dataPtr->camera->SetImageWidth(this->textureSize.width());
this->dataPtr->camera->SetImageHeight(this->textureSize.height());
this->dataPtr->camera->SetAntiAliasing(8);
this->dataPtr->camera->SetAntiAliasing(0);
this->dataPtr->camera->SetHFOV(this->cameraHFOV);
// setting the size and calling PreRender should cause the render texture to
// be rebuilt
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/scene3d/Scene3D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1168,7 +1168,7 @@ std::string IgnRenderer::Initialize()
this->dataPtr->camera->SetLocalPose(this->cameraPose);
this->dataPtr->camera->SetImageWidth(this->textureSize.width());
this->dataPtr->camera->SetImageHeight(this->textureSize.height());
this->dataPtr->camera->SetAntiAliasing(8);
this->dataPtr->camera->SetAntiAliasing(0);
this->dataPtr->camera->SetHFOV(M_PI * 0.5);
// setting the size and calling PreRender should cause the render texture to
// be rebuilt
Expand Down

0 comments on commit 0ab8d53

Please sign in to comment.