<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 8, 2015 at 2:00 PM, Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Tue, Dec 08, 2015 at 11:58:20AM -0800, Bill Spitzak wrote:<br>
> What is the plan for using a tablet in "relative" mode? This is pretty<br>
> common if the tablet is smaller than the screen, as many modern ones are.<br>
<br>
</span>I would love to hear where you get this information from, because the one<br>
thing we're suffering from is not knowing how our users use the tablet.<br>
Relative mode is common (and default) in the wacom driver for the lens/puck<br>
tool but few users have that one. Relative mode for the stylus is available,<br>
but we have little to no data on who's using it.<br></blockquote><div><br></div><div>I am using a Wacom Inutos 6x8 tablet. This is a professional and expensive device (I got it from the bankruptcy auction for Rhythm & Hues, every artist used these things except for a very small number that had the much larger 16x16 (?) ones).</div><div><br></div><div>My screens are a 4x3 and a 16x9 screen arranged next to each other. Mapping the tablet area to the entire display results in a horizontal magnification between physical stylus movement and on-screen movement of about 6 and vertical scale of about 2. This is too large for me to use on sketching or 3D modelling unless the model is zoomed in so much that I lose any context. In addition motion of the stylus is distorted by 2.33 times more horizontally than vertically, which I find very disconcerting. Mapping to only one screen reduces both of these problems, but not enough imho, and makes it impossible to use the stylus on one of the screens.</div><div><br></div><div>I am also using this on an IMac which has a screen that is closer to 4/3 so there is no distortion, but I still found the scale much too large to use on photoshop work.</div><div><br></div><div>For these reasons I use the tablet in relative mode for all the tools.</div><div><br></div><div>I find it hard to believe that my hardware setup is uncommon. It was used this way at R&H, and Linux and Windows and Mac all have the ability to set it.</div><div><br></div><div>Linux support is quite broken and refuses to produce a square aspect ratio of the motion unless you send xsetwacom commands. Previous versions had weird bugs where the commands depended on the size of the outputs, but these seem to be fixed. Here is the cryptic commands I am using (a further bug is that I have to run this each time after the machine sleeps):</div><div><br></div><div><div>xsetwacom --set "Wacom Intuos3 6x8 stylus" Mode Relative</div><div>xsetwacom --set "Wacom Intuos3 6x8 stylus" Area "0 0 162560 121920"</div><div>xsetwacom --set "Wacom Intuos3 6x8 eraser" Mode Relative</div><div>xsetwacom --set "Wacom Intuos3 6x8 eraser" Area "0 0 162560 121920"</div></div><div><br></div><div>I would say that Mac is not much better. It produces a square aspect but you have no control over the scale. Windows (well the Wacom-supplied driver) is much better with a scale control.</div><div><br></div><div>I personally believe that what the user wants is to limit the magnification and distortion of motion, and would use absolute mode if possible without violating these constraints. Therefore instead of the controls being whether relative motion is used or not, the controls are a range of magnification and distortion that the user accepts. This will allow the tablet to switch automatically between modes if the area is changed (for instance if a client is able to restrict the tablet to it's own surface).</div><div><br></div><div>Looking at my settings I seem to have a physical magnification very close to 1:1 (I have to move the stylus very slow so that acceleration does not change the dimension). I also know that a distortion of 4/3 horizontally is outside my limits. I suspect also that if I had a third tool I would have to add a line for it, an easy way to set all tools without knowing what they are would be nice.<br></div><div><br></div><div>Relative mode uses acceleration just like a mouse. This does not have any detrimental effect on using it for painting as far as I can tell.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
That aside, relative mode is handled by the compositor, it's not something<br>
exposed on the protocol. A client always gets absolute coordinates,<br>
regardless of the input mode.<br>
<span class=""><br>
> My guess is that you plan to deliver screen/surface coordinates, and that<br>
> the client is unaware of the actual size of the tablet. However it is not<br>
> clear from this.<br>
<br>
</span>Please suggest a rewording that makes this clearer.<br></blockquote><div><br></div><div>No it is ok, a bit of thought will show that the coordinates *must* be in surface coordinates, therefore relative motion must have been handled already by the compositor before the client gets these events.</div><div><br></div></div></div></div>