Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've read the documentation, but am still very unclear as to what the difference is between ViewVector and ViewPoint for Graphics3D. Could someone explain it concisely and clearly enough so that an amateur like myself could understand?

share|improve this question
closely related – Kuba Apr 16 '14 at 22:45
and with Details section of ViewVector it seems to be all. – Kuba Apr 16 '14 at 22:58
Also related – bobthechemist Apr 17 '14 at 14:01
up vote 4 down vote accepted

If ViewVector is set to be Automatic it will be the vector that starts at ViewPoint and ends at ViewCenter, which means that ViewVector and ViewPoint are tied to each other.

You can think of the origin of ViewVector as the position where the camera filming the scene is located, and its direction as what direction it points in.

So as long as ViewVector is automatic you can implicitly set the ViewVector by positioning ViewPoint and ViewCenter, ViewVector will just be the vector between those two points. However if you change ViewVector that change will override any changes that you've made to ViewPoint and ViewCenter.

One important difference, as Kuba says, is that ViewCenter deals with relative coordinates, not absolut ones. ViewVector uses actual points in the room, but ViewCenter uses a fraction of the plot range. So if the plot range is {100, 200, 300} then ViewCenter -> {0.5, 0.5, 0.5} puts the view center at {50, 100, 150}.

share|improve this answer
So basically if you only set ViewVector->{1,1,1} that's identical to setting the ViewPoint? – Aron Apr 17 '14 at 13:30
Yes, I believe so. – C. E. Apr 17 '14 at 14:02
Thank you, @Pickett – Aron Apr 17 '14 at 16:45
I have not realised that before this question appeared but the important difference is that ViewPoint can't handle absolute coordinates, so ViewVector is not just doublind the functionality but allowes that. The point is, it's worth to stress this :) – Kuba Apr 20 '14 at 7:16
@Kuba Good point, it was definitely something I should have mentioned to begin with. Added it. – C. E. Apr 20 '14 at 9:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.