godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.04k stars 21.17k forks source link

Moving around in the 3D viewport #53

Closed Ilya-Gazman closed 8 years ago

Ilya-Gazman commented 10 years ago

Hi,

I just lunched your editor for the first time. Here are some UI things that will make it more easy to understand.

Hope it helps.

Ilya

godotengine commented 10 years ago

Do you have middle button? I guess the 3D viewport needs an alternative control scheme when not available.

There is a pencil icon to show the animation editor, did you manage to find it?

Ilya-Gazman commented 10 years ago

Omg... Yeah I got a middle button, just never thought to use it, lol. Now I can see the project!

I been trying to look again and I do not find the pencil you are talking about.

Here I add more comments on my pc screenshots. how i think it should be looking like how it looks

Unfortunately I am not going to help you any more as I am developing the same thing. Unlike you I am going to charge for my editor.

I just wanted to help you as you are helping the community.

reduz commented 10 years ago

thanks for your help, though!

On Thu, Feb 13, 2014 at 3:07 PM, Ilya Gazman notifications@github.comwrote:

Omg... Yeah I got a middle button, just never thought to use it, lol. Now I can see the project!

I been trying to look again and I do not find the pencil you are talking about.

Here I add more comments on my pc screenshots. [image: how i think it should be looking like]https://f.cloud.github.com/assets/6512430/2162992/15c76420-94d9-11e3-9647-02964b43c258.png [image: how it looks]https://f.cloud.github.com/assets/6512430/2162993/15cb3f28-94d9-11e3-9ab6-e2d3ed78c1bf.png

Unfortunately I am not going to help you any more as I am developing the same thing. Unlike you I am going to charge for my editor.

I just wanted to help you as you are helping the community.

Reply to this email directly or view it on GitHubhttps://github.com/okamstudio/godot/issues/53#issuecomment-35007184 .

gamedevsam commented 10 years ago

A couple of things that I miss from Unity:

Alt + Left Click = Middle Click -> middle clicking is a bit of a chore on some mice, it would be nice to be able to achieve the same functionality with a keyboard shortcut + left click

F -> focus on selected element: it would be nice to have the ability for the camera to zero in on the selected object, you can do this in Unity by clicking 'F'

yuri-karadzhov commented 10 years ago

Navigation is really not obvious. I have thinkpad with trackpoint (don't need mouse) so middle "mouse" button works with it like zoom not rotate (if I conect mouse middle button works as expected) that's not godot problem (thinkpad controls works that way), but it will be nice to have alternative (space,ctrl or shift+left mouse alt is not good as it used in OS to move windows).

I found out that holding space bar and pressing left mouse button works as middle mouse button for 2D view, but not works for 3D view.

I do understand how to zoom and rotate 3D view, but how can I pan it? Why middle button is pan for 2D but rotate for 3D? How can I rotate 2D view (around z-azis (center))?

As for me ctrl+left mouse = rotate, shift+left mouse = pan is perfect settings for both 2D and 3D views, but it can be anything suitable for everyone.

reduz commented 10 years ago

Agreed that defaults should make more sense. Spacebar should also emulate middle button in 3D view, and both middle buttons should pan by default. You can configure the modifiers (shift/atl/cmd)in the editor settings, but I guess it's not enough

On Sun, Feb 16, 2014 at 10:11 AM, Yuri Karadzhov notifications@github.comwrote:

Navigation is really not obvious. I have thinkpad with trackpoint (don't need mouse) so middle "mouse" button works with it like zoom not rotate (if I conect mouse middle button works as expected) that's not godot problem (thinkpad controls works that way), but it will be nice to have alternative (space,ctrl or shift+left mouse alt is not good as it used in OS to move windows).

I found out that holding space bar and pressing left mouse button works as middle mouse button for 2D view, but not works for 3D view.

I do understand how to zoom and rotate 3D view, but how can I pan it? Why middle button is pan for 2D but rotate for 3D? How can I rotate 2D view (around z-azis (center))?

As for me ctrl+left mouse = rotate, shift+left mouse = pan is perfect settings for both 2D and 3D views, but it can be anything suitable for everyone.

Reply to this email directly or view it on GitHubhttps://github.com/okamstudio/godot/issues/53#issuecomment-35196329 .

akien-mga commented 9 years ago

Has there been progress made on this topic since Feb 2014?

sunnystormy commented 8 years ago

@reduz @akien-mga Has anybody been working on this? I have a trackpad-based laptop, so I don't have a middle mouse button. It would be great to get some middle-mouse button emulation working for the 3D viewport. Please fix!

sunnystormy commented 8 years ago

@reduz @akien-mga Would it be okay if I started working on this? Also, any advice on which classes to check out?

akien-mga commented 8 years ago

You would be very welcome to get started on this issue! Don't hesitate to discuss here what you have in mind to get some feedback about the implementation.

As for the classes to check out, you should probably search for the plugin that corresponds to the viewport in the 3D editor. From a quick glance I'd say it's likely tools/editor/plugins/spatial_editor_plugin.cpp, though you might also have to modify some of the nodes used in this plugin to get them to accept the proper input, I'm not sure.

nunodonato commented 8 years ago

The best way to navigate a 3d scene would be to mimic Blender's "fly-mode". Its so much faster than having to press buttons here and there to adjust the camera

sunnystormy commented 8 years ago

@akien-mga @reduz So, I got it to work by adding two conditions to the code. Basically, my implementation allows you to press either the "shift" or "alt" keys while the cursor is inside of the editor, and the view will pan/orbit accordingly. (Note that this is mitigated by any mouse button presses, sans middle. So, you don't need to press any mouse buttons to get these effects, just the shift/alt keys.) The next question to ask is if this should be default behavior, or should it be toggled in the settings? If you want it to be optional, then I'll need some assistance with doing that. :smile_cat:

EDIT:

Speaking of making it optional, could somebody point me in the right direction (i.e. what classes to look at) for making this navigation scheme a toggle-able checkbox inside of the "3D" settings? Thank you. :)

sunnystormy commented 8 years ago

@akien-mga @reduz Just want to check if you want this to be optional or not? Otherwise, I'm going to go ahead and push up my changes. Please let me know!

deberle commented 5 years ago

I am still having trouble navigating in Godot on a MacBook. Command/Alt/Ctrl/Shift + drag, 2 finger drag seem to have no effect!

RikKargones commented 2 years ago

I think some UI controls from Cinema 4D will be useful too - at least for new in engine, what uses trackpades and/or not familiar with Blender and other 3D-modeling programs. Pressing left mouse button instead of any on keyboard (and you should know which!) working a bit more controllable and intuitive in this case, in my opinion.

UI

1 control: Move. 2 control: Zoom. Moving left or back is zoom-out, right or forward - zoom-in. 3 control: Rotrate.

This, additionally, removes one need to checkout Q&A or Github issues for instructions how work in 3D-editor.

Calinou commented 2 years ago

@RikKargones Please use the godot-proposals Discussions tab for feature proposals.

RikKargones commented 2 years ago

Please use the godot-proposals Discussions tab for feature proposals.

Oh, I don't know about what. Thanks, I'll write about this where too.