Ryandor.com

Forums
It is currently Tue Jul 01, 2025 10:31 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Best way for scrolling
PostPosted: Tue May 10, 2005 4:42 pm 
Offline
Grand Master
Grand Master

Joined: Sat Mar 12, 2005 3:29 pm
Posts: 414
I have toying around with another 3d viewer of maps (editor perhaps) as I continue to explore openGL.

I was curious as to the best way to scroll around the map. I am not sure scrollbars make the most sense, as one can rotate or change the perspective they are looking from. One can also do a seperate "movement pad", where one can advance in many different directions.

Ideas on what is a natural way to do such a thing?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 5:54 pm 
Offline
Peanut Gallery
Peanut Gallery
User avatar

Joined: Sun Jun 02, 2002 8:53 pm
Posts: 1864
Location: Hayward, CA
Have it so that when you hold down the right mouse button, it scrolls the map instead of moving the cursor. If you allow different perspectives, as in the case of fully-3D stuff, have it rotate the camera instead, and use the WASD and/or arrow keys for movement while the right mouse button is down. Both are easy to implement and are natural for most people who have ever played any modern game.

_________________
Blog: http://www.sydius.org
Web: http://www.sydius.net


Top
 Profile  
 
 Post subject: hmmm, well...
PostPosted: Tue May 10, 2005 6:31 pm 
Offline
Grand Master
Grand Master

Joined: Sat Mar 12, 2005 3:29 pm
Posts: 414
Sorry, I have done X-windows too long. The right mouse button is always what I use for pop-up context sensitive menu's. So not an option for me.

Other thoughts?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 6:52 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Aug 07, 2003 6:57 am
Posts: 472
Left mouse button? :D

Or require right mouse button plus an additional key, like... CTRL+RMB.
Or go with a non-context-menu implementation.

If you do it that way, make sure to include "dynamic scrolling speed" or whatever, based on how far towards the edge of the window you move the mouse ;P Also, scroll continuously when mouse is moved away from center point, until mouse is moved back or the "scroll map" buttons are released.

_________________
-= Ho Eyo He Hum =-


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 6:09 am 
Offline
Posting Whore
Posting Whore

Joined: Fri Aug 29, 2003 6:21 pm
Posts: 1434
Location: Colorado Springs, Co.
Or you could just use the arrow keys....that would leave the mouse free to mark locations, use other buttons or perform activities outside the map window.

Perhaps a ctrl+Arrow for a fast scroll or a normal arrow for a slow scroll?

Dev

_________________
"So...if crazy people don't know their crazy...does that mean your only sane if your know your crazy?"


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 11, 2005 3:33 pm 
Offline
Grand Master
Grand Master
User avatar

Joined: Thu Aug 07, 2003 6:57 am
Posts: 472
Would be a lot easier to move about with the mouse. And you could have area selection + moving at the same time - just limit the scrolling speed when selecting an area that extends beyond the current view, so it doesn't scroll beyond the area you're trying to mark :P

_________________
-= Ho Eyo He Hum =-


Top
 Profile  
 
 Post subject: Interesting
PostPosted: Wed May 11, 2005 7:57 pm 
Offline
Grand Master
Grand Master

Joined: Sat Mar 12, 2005 3:29 pm
Posts: 414
ok, lot of good feedback, thanks.

For those that are interested, my constraints are:


I don't consider any combination with the right mouse button an option. I personally don't live on a windows environment, and appreciate too much the common uses for the right mouse button (for that matter, I still enjoy the focus policies, and the middle mouse button usage) of most X Window managers. So I dont consider the right mouse button an option. I admit that is my own self imposed constraint.

Arrow keys are good possiblity. If one rotates the map (or changes the view perspective), I suppoe the user would have to understand that (or is one expecting the arrow keys to be a movment based on the current perspective?

The mouse would work, but one must "trigger" the event. I can understand the scrolling when doing a bounding a box (the left mouse is kept down, so one understands that it should scroll when at the widget edge). However, if one just wants to scroll, the mouse by itself, not sure what the simulus would be (one may just be moving the mouse out of the window area to some other window on the screen).

Appreciate ALL the feedback, even those that I may have ruled out (for it did cause me to reconsider at least). Feel free to post if other ideas come to mind.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 12, 2005 10:56 am 
Offline
Peanut Gallery
Peanut Gallery
User avatar

Joined: Sun Jun 02, 2002 8:53 pm
Posts: 1864
Location: Hayward, CA
Are you going to allow for rotation of the camera along any axis? If so, the only way to do it is with the mouse ? else it will just be too annoying to use. It could be event-activated, like you say, based on something other than right clicking. One option might be to hold down CTRL to use the mouse for movement (effectively doing the same thing, but freeing up the right mouse button).

If you only allow movement around the Y (also known as ?Z? in the world of UO) axis, limiting the view considerably, then only using arrow/WASD keys is a very viable alternative. If you do use keyboard keys to handle movement and rotation, movement should ALWAYS be relative to the current perspective! That is just one of those unspoken ?duh? kind of things when it comes to 3D movement ? too many idiots will be confused if you do it any other way, and complain about it being ?broken?? Not that it would be necessarily worse from a technical standpoint to make movement relative to the original orientation (in some ways, you would think that to be more intuitive for a mapping program), but when it comes right down to it, it would just be too awkward.

Oh, and make it scroll the map whenever the mouse moves to the edge of the screen (if it is a full screen app), or else put four big buttons along the entire edge of each side of it, that can be clicked to move in the appropriate direction.

_________________
Blog: http://www.sydius.org
Web: http://www.sydius.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group