フィルターのクリア

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 Center および File ExchangeSpecifying 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