Opened 4 years ago

Closed 4 years ago

#5948 closed defect (fixed)

Make zoom command move clip planes

Reported by: meng@… Owned by: Tom Goddard
Priority: moderate Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

From: Elaine Meng
Subject: view/zoom bug?
Date: January 16, 2022 at 10:41:39 AM PST

It seems buglike. Is it a bug? here is a reproducible example

open 2gbp
open 2fw0
mm #1 to #2
view #1
zoom 2

If you put "clip false" in the view command, the structures don't disappear upon zoom.

Elaine

Change History (2)

comment:1 by Tom Goddard, 4 years ago

The "view #1" command sets the near and far clip planes, for example to be 30 Angstroms and 50 Angstroms in front of the camera where the molecule center is 40 Angstroms away. Then "zoom 2" moves the camera twice as close so that the model is now 20 Angstroms away so that it appears twice as large. But then it is in front of the near clip plane which remains at 30 Angstroms.

It would be nicer if the zoom command adjusted the near/far clip positions, e.g. "zoom 2" would move them to be twice as close to the camera. When you zoom with the mouse the near/far clip planes get moved automatically.

comment:2 by Tom Goddard, 4 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Made zoom command move near/far clip planes if they are enabled.

Note: See TracTickets for help on using tickets.