Surf plot mesh looks jagged when I set FaceAlpha
이전 댓글 표시
Below is the example given in the "surf" documentation. The mesh looks smooth when `FaceAlpha` is not included but it looks jagged when it's transparent. Is this a graphics card issue or can it somehow be fixed?
[X,Y] = meshgrid(-5:.5:5);
Z = Y.*sin(X) - X.*cos(Y);
s = surf(X,Y,Z,'FaceAlpha',0.5)
댓글 수: 2
Walter Roberson
2018년 5월 12일
Let me think... You are using r2013b or r2014a or so? If so then there was bug having to do with opengl use, which gets enabled automatically when alpha is used.
Hongbo Zhao
2018년 5월 12일
편집: Walter Roberson
2021년 8월 11일
채택된 답변
추가 답변 (1개)
Jan
2018년 5월 12일
It looks nice in my Matlab 2016b/Win10. Setting the Alpha blending enables the OpenGL renderer. If this causes troubles, try:
opengl software
Does this help? Do you have the current versions of the drivers installed? Which OS are you using? Can you post a screenshot such that "looks jagged" gets more clear?
댓글 수: 3
Hongbo Zhao
2018년 5월 12일
Walter Roberson
2018년 5월 12일
Setting Alpha at all forces OpenGL to be used.
카테고리
도움말 센터 및 File Exchange에서 Graphics Performance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




