How to change perspective preview?

More
10 Apr 2021 08:20 #205512 by tuxcnc
After starting the program, or after changing the preview mode, the perspective preview is set with the default settings, the dimension and the viewing angle are not as I need.
Where can it be changed?

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 11:48 #205517 by cmorley
You ned to tell us what screen you are using. What version of linuxcnc are you using?

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 18:37 - 10 Apr 2021 18:37 #205545 by tuxcnc

cmorley wrote: You ned to tell us what screen you are using. What version of linuxcnc are you using?


For what ?
I am writing in the "Gmoccapy" section and I ask where the default panoramic preview settings are.
What can not you understand here?

**************************

After run program :



After manual change view (by mouse) :



After switch from "P-view" to "Z-view" :



After switch to "P-view" again :



I have got touch screen, and its hard to change view without mouse.
Attachments:
Last edit: 10 Apr 2021 18:37 by tuxcnc.

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 19:45 #205550 by cmorley
My oversight - I didn't look at the section - only the title.

Is your question pertain to the default zoom of the perspective?
As your first image and second look the same.

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 19:58 #205551 by tuxcnc

cmorley wrote: Is your question pertain to the default zoom of the perspective?
As your first image and second look the same.

This is of course a preview of the same file, and in both cases it is shown correctly.
However, I would like to see a whole workspace at a different angle.
Size and location can be changed with your finger on the monitor, but to rotate the preview you need the right mouse button ...

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 20:05 #205553 by cmorley
Ahh you need a selection button to toggle between pan and rotate.

Do you have a keyboard connected - I believe holding the shift key should do it.

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 21:36 #205567 by newbynobi
The reset of the view is done because a reload is done changing the mode. It is caused by gremlin widget.

You can change the behavior of the mouse buttons on the setting page, this might be also useful for touch screen usage.

Norbert

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 21:42 #205570 by tuxcnc

newbynobi wrote: The reset of the view is done because a reload is done changing the mode.Norbert

I understand, but is it possible to set other default values of zoom and view angle ?
This computer is intended only for one machine, change of source code is acceptable.

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 22:00 #205575 by cmorley
try lib/python/glnav.py

modify function:
set_view_p()
The following user(s) said Thank You: tuxcnc

Please Log in or Create an account to join the conversation.

More
10 Apr 2021 22:20 #205582 by tuxcnc

cmorley wrote: try lib/python/glnav.py

modify function:
set_view_p()

It works.
There are three values to change, I bold it :

size = (size[0] ** 2 + size[1] ** 2 + size[2] ** 2) ** .5

self.lat = -60
self.lon = 335

There is no hard work to add default size and angle of preview in gmoccapy preferences, I think it may be usefull.

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.206 seconds
Powered by Kunena Forum