필터 지우기
필터 지우기

Surf AlphaData erratic changes

조회 수: 4 (최근 30일)
Pieromane
Pieromane 2022년 7월 14일
편집: Pieromane 2022년 7월 15일
Hi,
I am displaying two intersecting slice from a 3d volume using surf with a slight transparency (Matlab 2021, surf fonction, alphadata parameter).
While I have no issue with the painters renderer any manipulation (rotation,zoom updated of data) is awfully slow.
The OpenGL however gives the impression of changing the alphadata or switch slice focus (looks like a foreground/background switch) depending of the view orientation.
I did not have this issue with anterior version of Matlab (2019b and earlier).
What would cause this issue and is there any solution?
Thank you,

답변 (1개)

Rishita
Rishita 2022년 7월 15일
Alpha value sets the face transparency for objects in the current axes that support transparency. Specify value as 'clear' or 'opaque', or as a number in the range [0, 1]. A value of 0 makes the objects transparent, and value of 1 makes the objects fully opaque.
opengl info prints information about the OpenGL implementation currently in use by MATLAB, such as the version, vendor, and graphics features that it supports. Using this command loads OpenGL. Starting in R2019a, this syntax is no longer recommended. For more information, see Version History.
  댓글 수: 1
Pieromane
Pieromane 2022년 7월 15일
편집: Pieromane 2022년 7월 15일
Hello,
thank you for the answer. I found the source of my issue.
The axis display with 'opengl software' (info = rendererinfo(gca) ) instead of the hardware. The opengl software does not seem to be able to display interleaved object properly and an object can not have one part in the foreground and the other in the background.
However, even after switching to 'opengl hardware' (confirmed by opengl info), I am unable to force the axis to use opengl hardware. I checked with anterior version of matlab I am using (2019 a-b) and I do not have this issue.
Thank you,

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by