Clear Filters
Clear Filters

Translating an Axes Plane in 3D

3 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 29 Mar 2017
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 Comment
Suki Sandhu
Suki Sandhu on 29 Mar 2017
Thank you sir, this was very informative and will certainly lead me in the right direction in terms of solving this problem. :)

Sign in to comment.

More Answers (0)

Categories

Find more on Specifying Target for Graphics Output in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!