//! Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
Standard_EXPORT virtual Standard_Size EstimatedDataSize() const Standard_OVERRIDE;
- //! Attach a texture image
+ //! Attach a texture image.
+ //! Resets the active FBO to 0.
Standard_EXPORT void AttachDepthTexture (const Handle(OpenGl_Context)& theCtx,
const Handle(OpenGl_Texture)& theDepthStencilTexture);
- //! Detach a texture image
+ //! Detach a texture image.
+ //! Resets the active FBO to 0.
Standard_EXPORT void DetachDepthTexture (const Handle(OpenGl_Context)& theCtx);
//! Returns additional buffers for ping-pong
}
}
aView->DepthPeelingFbos()->DetachDepthTexture (aCtx);
+
+ // Bind the framebuffer for reading depth and writing final color
+ // after DetachDepthTexture() because after the function it's unbinded.
+ if (theReadDrawFbo)
+ {
+ theReadDrawFbo->BindBuffer (aCtx);
+ }
break;
}
}
--- /dev/null
+puts "========"
+puts "0032507: Visualization, TKOpenGl - topmost text disappears with Graphic3d_RTM_DEPTH_PEELING_OIT enabled"
+puts "========"
+
+pload MODELING VISUALIZATION
+
+vclear
+vinit View1
+
+box b 1 2 3
+vdisplay b -dispMode 1
+vaspects b -transparency 0.5
+vfit
+
+vlight headlight -display
+vdisplay headlight -2d bottomright 120 50
+vlight amblight -display
+vdisplay amblight -2d bottomright 50 50
+
+vrenderparams -perfCounters triangles
+
+vdump $imagedir/${casename}_1.png
+
+vrenderparams -oit peel
+
+vdump $imagedir/${casename}_2.png