You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jzy3d
changed the title
Enabling 2D views of Swing charts with a translucent surface let the previous 3D view content appear under the surface
Swing charts with a translucent surface let the previous view content appear under the surface
Jul 30, 2022
Version :
jzy3d-2.1.1-SNAPSHOT
Date : 2022-07-28
Factory :
SwingChartFactory
(does not occur on AWT)Reproduce
Only happens with
SwingChartFactory
.view3d()
thenrender()
view2d()
thenrender()
resize()
to let a colorbar glitch appearWorkaround
Workaround 1 : render multiple time
Call
chart.render(2);
afterchart.view2d(...)
Rendering only once still let use see a bit of the previous image (!?).
Workaround 2 : disable alpha
Alpha is not useful when viewing a surface on top if the chart has no other element inside.
Investigated
The following have been investigated but are NOT the reason of the bug :
GLCapabilities.setBackgroundOpaque(true/false)
inNativePainterFactory
GLCapabilities.setDoubledBuffer(true/false)
inNativePainterFactory
setAutoSwapBuffer(true/false)
inCanvasSwing
View.clear
View.setBackground
in theChart
constructor to a copy of the color won't change anythingOther thoughts
Links
The text was updated successfully, but these errors were encountered: