MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #30982 All Revisions ] Back to Issue ]
Summary 0030982: Visualization, OpenGl_View::MinMaxValues() - do not add background quad into depth range
Revision 2019-11-20 12:10 by kgv
Description OpenGl_View::MinMaxValues() adds background quad into MinMax values.
However, it does not make sense, since background is always drawn without depth test enabled.

Bnd_Box OpenGl_View::MinMaxValues (const Standard_Boolean theToIncludeAuxiliary) const
{
  if (!IsDefined())
  {
    return Bnd_Box();
  }

  Bnd_Box aBox = base_type::MinMaxValues (theToIncludeAuxiliary);

  // add bounding box of gradient/texture background for proper Z-fit
  if (theToIncludeAuxiliary
    && (myBackgrounds[Graphic3d_TOB_TEXTURE]->IsDefined()
     || myBackgrounds[Graphic3d_TOB_GRADIENT]->IsDefined()))
  {
    const Handle(Graphic3d_Camera)& aCamera = Camera();
    Graphic3d_Vec2i aWinSize;
    Window()->Size (aWinSize.x(), aWinSize.y());
Revision 2019-09-19 11:10 by kgv
Description OpenGl_View::MinMaxValues() adds background quad into MinMax values.
However, it does not make sense, since background is always drawn without depth test enabled.


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker