Nice one, thanks for that Bob.

Hah! Maybe your implementation avoids the usual nuisance of having to invert every scene transformation you want applying, this arising due to the camera being moved rather than the scene actors.


On 6 February 2013 11:51, Robert Hanson <hansonr@stolaf.edu> wrote:
OK, that's done. As I did it, I realize that the analogy of a "camera" and a "scene" is very outside the standard way we think of it (or at least, I think of it) in Jmol. I've always considered it to be a model I was holding in my hand and manipulating manually. Funny!


On Wed, Feb 6, 2013 at 5:35 AM, Robert Hanson <hansonr@stolaf.edu> wrote:
Great suggestion. There is a detailed document that explains the perspective, but, right, there isn't much in the script documentation. I'll add a keyword for camera in "see also" .




On Wed, Feb 6, 2013 at 3:58 AM, N David Brown <hubdave@gmail.com> wrote:

It might be worth adding the word 'camera' to the moveTo description, because anyone searching the page for this common 3D term wouldn't arrive at moveTo..

Alternatively a camera section listing the camera-related command collection would benefit a first time scripter.

David

On 5 February 2013 22:13, Robert Hanson <hansonr@stolaf.edu> wrote:

yes, Jmol has some interesting and possibly nonstandard flexibility with regard to perspective. For example, the point of rotation can be anywhere on the screen and at any point in the model.

And you can also "navigate through" a model. (A nice demonstration of this is at http://www.stolaf.edu/people/hansonr/jmol/molecules/ (protein and nanogear "tour" links on the left).




On Sun, Feb 3, 2013 at 5:37 PM, N David Brown <hubdave@gmail.com> wrote:

Ah - just looked again and saw moveto and more usefully center.

David


On 3 February 2013 22:39, N David Brown <hubdave@gmail.com> wrote:

How can the viewport camera position, view direction and Up vector be configured?

More simply, can a "look at" coordinate be specified via any command, potentially with a configured camera distance?

I have sought relevant keywords in the online documentation but other than cameraDepth nothing's turned up.

Many thanks for your time.

David


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900




--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900