You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

San7

Professional

  • "San7" started this thread

Posts: 621

Occupation: coding in krpano

  • Send private message

1

Tuesday, March 21st 2023, 11:28am

Model View Control

Hello! Time to test updates *smile*

Also made an example, left click - drag/rotate the model
The model rotation point coincides with the intersection of the coordinate axes.
Drag the model so that the viewpoint coincides with the center of coordinates (for example, the head is in the center). With a large approximation, it is more convenient to turn and view.
For convenience, you can turn on the axis.
example

This post has been edited 1 times, last edit by "San7" (Mar 21st 2023, 12:39pm)


kme

Intermediate

Posts: 308

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

2

Tuesday, March 21st 2023, 11:51am

Is this krpano? Or blender? *w00t* *thumbsup*

Nicely done! But somehow, right click does not work for me (cannot move the object with right click). It does work when changing the left-click behaviour with the icon OR clicking the model. Am I missing something?

San7

Professional

  • "San7" started this thread

Posts: 621

Occupation: coding in krpano

  • Send private message

3

Tuesday, March 21st 2023, 11:55am

Is this krpano? Or blender? *w00t* *thumbsup*

Nicely done! But somehow, right click does not work for me (cannot move the object with right click). It does work when changing the left-click behaviour with the icon OR clicking the model. Am I missing something?

krpano and model *smile*
move and rotate with the left mouse. left mouse click changes the mode. Also on mobile, clicking with your finger changes the drag / rotate mode

kme

Intermediate

Posts: 308

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

4

Tuesday, March 21st 2023, 11:58am

right click - drag/rotate the model
Given your description, I would hav expected drag/rotate to work with right click...

Hope you can do more tests, we need to showcase more what krpano can do!

gr,
K.

San7

Professional

  • "San7" started this thread

Posts: 621

Occupation: coding in krpano

  • Send private message

5

Tuesday, March 21st 2023, 12:40pm

right click - drag/rotate the model
Given your description, I would hav expected drag/rotate to work with right click...

Hope you can do more tests, we need to showcase more what krpano can do!

gr,
K.
Yes, I made a mistake, the left key. On mobile, unfortunately, there is no right click)
And the main emphasis is that I can change the center of rotation of the model and consider any place

kme

Intermediate

Posts: 308

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

6

Tuesday, March 21st 2023, 12:55pm

right click - drag/rotate the model
Given your description, I would hav expected drag/rotate to work with right click...

Hope you can do more tests, we need to showcase more what krpano can do!

gr,
K.
Yes, I made a mistake, the left key. On mobile, unfortunately, there is no right click)
And the main emphasis is that I can change the center of rotation of the model and consider any place
Maybe drag by using 2 fingers?

1 finger = rotate
2 finger = drag
pinch = zoom

is what I would expect on mobile

San7

Professional

  • "San7" started this thread

Posts: 621

Occupation: coding in krpano

  • Send private message

7

Tuesday, March 21st 2023, 2:48pm

yes, there are ideas https://krpano.com/docu/actions/#gesture.touches but I still don't quite understand how to get the values correctly

kme

Intermediate

Posts: 308

Location: Belgium

Occupation: Long time coder, product manager and 3D enthousiast

  • Send private message

8

Thursday, March 23rd 2023, 9:08am

Hi San7 (and others),

About mouse handling (and gestures too)...

In my drone example (https://krpano.kri-soft.be/examples/drone/) I have used the following:

Left click: Rotate
Left click + Control: Zoom in (basically adjust view.oz)
Left click + Shift: Move model (adjust x/y/z depending on viewing angle)
Double click: zoom + recenter
Mouse wheel up/down: Zoom in (same as left click + control)
Right clicks: None


I notice that sketchfab has the same, but adds some right clicks too:
Right click: move
Right click + control: zoom
Right click + shift: move


There was also a request for having right click to zoom (https://krpano.com/forum/wbb/index.php?p…89481#post89481) althought that might have been a specific use case and not related to a "3D view".

So my question: What are your opinions/preferences when it comes to mouse behaviour when in 3D mode?