Opened 6 years ago

Closed 6 years ago

#2595 closed defect (fixed)

problem with 'view' centering in ortho mode

Reported by: Tristan Croll Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc: Elaine Meng
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Linux-3.10.0-957.12.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core
ChimeraX Version: 0.91 (2019-11-20)
Description
With the combination of `cofr centerOfView` and `camera ortho`, `view $* cofr false clip false` leaves the center of rotation at its previous position rather than updating to the center of the new selection. Most other conditions seem to work fine.

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
  
UCSF ChimeraX version: 0.91 (2019-11-20)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open 3io0 format mmCIF fromDatabase pdb

3io0 title:  
Crystal structure of EtuB from Clostridium kluyveri [more info...]  
  
Chain information for 3io0 #1  
---  
Chain | Description  
A | EtuB protein  
  
3io0 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  
  

> cofr centerOfView showPivot true

> camera ortho

> clip near 1 far 10

> view :109 cofr false

> view :226 cofr false

> view :109 cofr false clip false




OpenGL version: 3.3.0 NVIDIA 418.87.01
OpenGL renderer: TITAN Xp/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionproblem with 'view' centering in ortho mode

comment:2 by Tom Goddard, 6 years ago

Cc: Elaine Meng added
Resolution: fixed
Status: assignedclosed

Fixed.

In my test the behavior you observed was to be expected. "view :109 cofr false clip false" with no clip planes and center of view rotation means the center of rotation will stay in the same plane perpendicular to the camera axis. This typically places way in front of or way behind the objects you specified ( residue :109) and so the rotation center seems to be far from the correct location. To remedy that I've changed the view command to adjust the rotation depth to the center of the bounding box of the specified objects if "clip false" is used and "cofr true" (the default). Note that another change today made "view sel" use center of rotation mode, so your example here could drop the "cofr false" which I assume you used to avoid switching to fixed center of rotation.

So the new behavior is

view sel clip false

sets the depth of the center of view rotation point to the center of the specified objects.

I don't think any of this has to do with ortho camera. So if I fixed the wrong bug, please report again.

Note: See TracTickets for help on using tickets.