Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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
1  
closely related –  Kuba Apr 16 at 22:45
    
and with Details section of ViewVector it seems to be all. –  Kuba Apr 16 at 22:58
    
Also related –  bobthechemist Apr 17 at 14:01

1 Answer 1

up vote 3 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 at 13:30
1  
Yes, I believe so. –  Pickett Apr 17 at 14:02
    
Thank you, @Pickett –  Aron Apr 17 at 16:45
1  
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 at 7:16
    
@Kuba Good point, it was definitely something I should have mentioned to begin with. Added it. –  Pickett Apr 20 at 9:04

Your Answer

 
discard

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.