0
$\begingroup$

I'm working on an in-door scene in Blender 2.90 with rooms and hallways. In the 3D viewport, the viewport camera by default rotates around a focused object (select an object and press numpad . to focus). However, when I do that, the viewport camera keeps clipping behind walls when I rotate it, forcing me to constantly select different focus objects.

Is there some sort of hotkey or action I can use to rotate the viewport camera in place (i.e. rotating without actually changing its X/Y/Z coordinates)?

I know about the walk-through and fly-through modes, but I find them rather clunky to use.

To reiterate: I'm not talking about some camera object in the scene, I'm talking about the viewport camera itself.

$\endgroup$
2
  • $\begingroup$ I still think your best bet is to enter flymode (Shift + `), rotate, and go back to regular by clicking LMB. $\endgroup$ Dec 20 '20 at 22:58
  • $\begingroup$ I recommend looking into user preferences on this. There's plenty of ways to change how looking around works if you're okay with it being permanent. $\endgroup$
    – TheLabCat
    Dec 21 '20 at 3:26
0
$\begingroup$

Not sure if this is what you need, but if you hit N while in the viewport and then you go to View > View Lock > Lock Object. You could drop any object or model there and the Viewport camera will be focused on that object or model enter image description here

$\endgroup$
0
$\begingroup$

Blender keymap is fully customizable, so you can set up a navigation in Unity/Unreal style (camera rotates in place, not around objects) if you want.

You can use Walk/Fly navigation, but assign it to the middle mouse button, so that it will enable on mouse press and disable on release. And you will be able to use WASD keys for moving camera and other keys are available also, while you're holding middle mouse button.

This guide uses the default keymap settings. If you are using Industry compatible keymap, some settings may look differently.

1. Setting up the rotate in place using Walk/Fly navigation.

First, I personally recommend Walk with disabled gravity.

enter image description here

Then in keymap open up 3D View ⇾ 3D View Global section and turn off default navigation by middle mouse (Rotate or pan depends on your settings), then set up View Navigation (Walk/Fly) to middle mouse press:

enter image description here

Then you should leave View Navigation on mouse release, right? So scroll down 3D View section until you find View3D Walk Modal. Disable Teleport because it will override middle mouse action. Then add new - select action Mouse, type Confirm, Middle, Release.

enter image description here

Once you get it done, you will be able to rotate camera in place and navigate using WASD while holding middle mouse button.

2. Setting Shift+middle mouse button to pan view.

This is easy. Find Pan View in the 3D View ⇾ 3D View Global section and set it like this. Shift must be enabled:

enter image description here

3. Setting up the dolly zoom.

Once you get this, you might find that Blender still zooms at a certain point. So to avoid this, let's set up a dolly zoom instead of the default one. Again, 3D View ⇾ 3D View Global section.

Find Zoom View with Wheel In and Wheel Out shortcuts and replace text view3d.zoom by view3d.dolly. You will see that the title will change from "Zoom View" to "Dolly View". Don't forget to return Delta values, which is reset when command changes.

enter image description here

On my screenshot, zoom might be inverted. If you feel so too, try to replace "1" and "-1"

4. Get back the rotate around on a different hotkey

So this is up to you. You can get back the rotate around if you want. Just enable disabled "Rotate View" and set hotkey on Alt+Right mouse button, for example:

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.