Translating an Axes Plane in 3D

3 次查看(过去 30 天)
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