Filter löschen
Filter löschen

Translating an Axes Plane in 3D

3 Ansichten (letzte 30 Tage)
Suki Sandhu
Suki Sandhu am 29 Mär. 2017
Kommentiert: Suki Sandhu am 29 Mär. 2017
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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by