Message Boards Message Boards

0
|
4444 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Looking for the correct use of ViewPoint and ViewVertical

Posted 3 years ago

I am working on a 3D plot, that I want to view in a particular angle, or view-point, as that shown in the attached image:

(Made with Windows paint)

My Options for the 3D plot now are

ViewPoint -> {5, 2, 3},
ViewVertical -> {0, 0, 1}

After a few trial and error, I found that {5,2,3} looks like a good "Point of view",

but passing {0,0,1} to ViewVertical doesn't seem to rotate the axes with the z-axis pointing upward, as I want it to.

What is the correct vectors to pass to these options? Or am I not making use of some other "Viewing Geometry" option that is needed?

enter image description here

POSTED BY: Ehud Behar
4 Replies

There is a bit about view options in 3D graphics in this video that I think is very helpful.

https://www.wolfram.com/wolfram-u/catalog/vis422/

POSTED BY: Martijn Froeling

Try this:

Graphics3D[{Arrow[{{0, 0, 0}, {0, 0, 1}}], 
  Text[z, {0, 0, 1}, {3, 0}],
  Arrow[{{0, 0, 0}, {0, 1, 0}}], Arrow[{{0, 0, 0}, {1, 0, 0}}]},
 ViewPoint -> 100*{5, 2, 3}, Boxed -> False]
POSTED BY: Gianluca Gorni

You may try watching the scene from afar, so that all vertical lines will be projected as almost vertical (near orthographic view):

ViewPoint -> 100*{5, 2, 3}

For exact orthographic view, have a look at ViewMatrix.

POSTED BY: Gianluca Gorni
Posted 3 years ago

Thanks, but I am afraid it is not exactly what I asked for.

Most important for me is that the z axis points upward. How to do that?

POSTED BY: Ehud Behar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract