goxel icon indicating copy to clipboard operation
goxel copied to clipboard

Add shortcut to toggle orthographic view (Feature Request)

Open Enchoseon opened this issue 2 years ago • 4 comments

A very useful quality-of-life change would be a shortcut to toggle whether the current camera is orthographic.

Quickly switching between perspective and orthographic mode is helpful for visually seeing the relative dimensions and positions of things that's extra-useful when working with voxels (e.g. lasering through a wall of blocks without perspective distortion).

Enchoseon avatar Dec 18 '22 08:12 Enchoseon

Is there any common used shortcut for this function in other editor?

guillaumechereau avatar Mar 11 '23 07:03 guillaumechereau

In Blender it's Numpad5.

In Maya it's ~1-2 clicks on the viewcube, iirc.

I find the Numpad5 shortcut to be the most convenient, but that might be my bias as a Blender user :)

Enchoseon avatar Mar 11 '23 07:03 Enchoseon

But what if we don't have numerical keypad (like me!)

Currently the '5' shortcut is used to reset the view, I think I will change it to '6' and then assign 5 to toggle ortho/perspective.

guillaumechereau avatar Mar 11 '23 08:03 guillaumechereau

OK I pushed a quick fix. I move the reset to the shortcut '0' for now.

One remaining issue is that the zoom is not correctly computed when we reset and so the scale of the image changes a lot when we do so.

guillaumechereau avatar Mar 11 '23 08:03 guillaumechereau