필터 지우기
필터 지우기

Translating an Axes Plane in 3D

조회 수: 3 (최근 30일)
Suki Sandhu
Suki Sandhu 2017년 3월 29일
댓글: Suki Sandhu 2017년 3월 29일
Visuals of what I am trying to achieve can be viewed here: http://imgur.com/a/61eRH
I am wondering if there is any way to translate the 2D image as shown, in the 3D plane as the arrows indicate. I am able to translate the overall axes by updating the 'Position' and 'OuterPosition' properties however this doesn't fully achieve the effect that I want.
I hope with the pictures it is clear what I am trying to accomplish, any help or indication of the right direction would be greatly appreciated.
Cheers

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 29일
There are different answers depending on which Renderer you have in effect. Typically when graphics start to get complicated, MATLAB switches to OpenGL graphics; for example it always does so if there is any transparency (because transparency is not supported in the other renderers.)
The switching to OpenGL is an important factor because OpenGL defines normal image rendering as being strictly 2D; as soon as you start to turn the view axes so you are not looking straight up or straight down, then image() and imagesc() and imshow() created images pretty much disappear.
The adjustment that works in OpenGL is to use texture mapping. That can involve surface objects (like the link describes) or it can use patch objects.
Once you have your image mapped onto a flat surface then you can change the view, or you can use hgtransform to rotate the surface in 3 space.
  댓글 수: 1
Suki Sandhu
Suki Sandhu 2017년 3월 29일
Thank you sir, this was very informative and will certainly lead me in the right direction in terms of solving this problem. :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by