Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wishlist: option for zoom, speed, ... #26

Closed
hainm opened this issue Nov 24, 2015 · 5 comments
Closed

wishlist: option for zoom, speed, ... #26

hainm opened this issue Nov 24, 2015 · 5 comments

Comments

@hainm
Copy link
Contributor

hainm commented Nov 24, 2015

I am myself using VMD for visualization and there are few things I want to customize in in ngl

  • camera: orthographic or perspective (I normally use orthographic camera)
  • zoom and rotation speed: Most of viewing packages make me feel the molecule is very heavy when rotating. It's great if ngl allows user to config (right now I need to change js file)
@arose
Copy link
Collaborator

arose commented Nov 25, 2015

I am working on exposing zoom and rotation speed. Would you mind creating a separate issue for the orthographic camera as it requires some more work?

@hainm
Copy link
Contributor Author

hainm commented Nov 25, 2015

okie. #28

@hainm hainm changed the title wishlist: camera view + rotation speed. wishlist: option for zoom, speed, ... Nov 25, 2015
@arose
Copy link
Collaborator

arose commented Nov 26, 2015

41afbe2 exposes zoom/rotation/pan speed in the GUI via Help > Preferences. I am still streamlining parameter handling for the stage object to allow programmatic access.

Note that preferences are saved locally.

@arose
Copy link
Collaborator

arose commented Nov 27, 2015

Reworked stage parameter handling some more. The clip/fog parameters are now also exposed. See http://arose.github.io/ngl/ Help > Preferences. There is some documenting work to be done... very shortly:

The NGL.Stage constructor now accepts a parameter object

var stage = new NGL.Stage( "someElementId", {
  rotateSpeed: 4.0,
  fogNear: 100,
  overwritePreferences: true  // otherwise the user preferences take precedence
} );

The stage.preferences object holds user preferences which are stored via localStorage. Call stage.setParameters( { rotateSpeed: 2.0 } ) to change them after object construction.

@hainm
Copy link
Contributor Author

hainm commented Nov 27, 2015

just tried. Cool.

@hainm hainm closed this as completed Nov 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants