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 efe3151 commit 1927978
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ bool CameraSensor::CreateCamera()
}

// \todo(nkoeng) these parameters via sdf
this->dataPtr->camera->SetAntiAliasing(2);
this->dataPtr->camera->SetAntiAliasing(0);

math::Angle angle = cameraSdf->HorizontalFov();
if (angle < 0.01 || angle > IGN_PI*2)
Expand Down
2 changes: 1 addition & 1 deletion src/DepthCameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ bool DepthCameraSensor::CreateCamera()
this->dataPtr->near = near;

// \todo(nkoeng) these parameters via sdf
this->dataPtr->depthCamera->SetAntiAliasing(2);
this->dataPtr->depthCamera->SetAntiAliasing(0);

math::Angle angle = cameraSdf->HorizontalFov();
if (angle < 0.01 || angle > IGN_PI*2)
Expand Down
2 changes: 1 addition & 1 deletion src/RgbdCameraSensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ bool RgbdCameraSensor::CreateCameras()
}

// \todo(nkoeng) these parameters via sdf
this->dataPtr->depthCamera->SetAntiAliasing(2);
this->dataPtr->depthCamera->SetAntiAliasing(0);

math::Angle angle = cameraSdf->HorizontalFov();
// todo(anyone) verify that rgb pixels align with d for angles >90 degrees.
Expand Down

0 comments on commit 1927978

Please sign in to comment.