mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
0032507: Visualization, TKOpenGl - topmost text disappears with Graphic3d_RTM_DEPTH_PEELING_OIT enabled
This commit is contained in:
parent
e8ae1c42a8
commit
7d7541ceeb
@ -36,11 +36,13 @@ public:
|
|||||||
//! Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
|
//! Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
|
||||||
Standard_EXPORT virtual Standard_Size EstimatedDataSize() const Standard_OVERRIDE;
|
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,
|
Standard_EXPORT void AttachDepthTexture (const Handle(OpenGl_Context)& theCtx,
|
||||||
const Handle(OpenGl_Texture)& theDepthStencilTexture);
|
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);
|
Standard_EXPORT void DetachDepthTexture (const Handle(OpenGl_Context)& theCtx);
|
||||||
|
|
||||||
//! Returns additional buffers for ping-pong
|
//! Returns additional buffers for ping-pong
|
||||||
|
@ -1219,6 +1219,13 @@ void OpenGl_LayerList::renderTransparent (const Handle(OpenGl_Workspace)& theW
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
aView->DepthPeelingFbos()->DetachDepthTexture (aCtx);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
26
tests/opengl/data/transparency/oit_osdtext_bug
Normal file
26
tests/opengl/data/transparency/oit_osdtext_bug
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user