Menu

#20 tilt data on GTCO CalComp DrawingBoard VI / Windows

open
5
2013-02-01
2013-02-01
No

JPen does not report correct tilt data when using the GTCO CalComp DrawingBoard VI digitizer on Windows.

Discussion

  • Nicolas Carranza

    • summary: tilt on GTCO CalComp DrawingBoard VI / Windows --> tilt data on GTCO CalComp DrawingBoard VI / Windows
     
  • Nicolas Carranza

     
  • Nicolas Carranza

    Thanks again Nicola for reporting this bug.
    I have made some changes on jpen/provider/wintab/WintabDevice (https://sourceforge.net/tracker/?func=detail&aid=3603044&group_id=209997&atid=1011964).
    Please replace your jpen-2.jar with the attached jpen-2-302.jar file and run the jpen demo:
    ---
    java -jar jpen-2-302.jar
    ---
    Does this new version fix the problems with the TILT_X and TILT_Y values?

    Cheers,
    Nicolas

     
  • Nicola Corsaro

    Nicola Corsaro - 2013-02-04

    I have tested jpen-2-302,jar.
    Now the demo (jpen-2-302.jar) doesn't work with pen but only with mouse. There are
    no tilt data and no pressure data.
    The SmokeTest.java from inside Ecplise using the old version finds 3 providers (System, Jpen and Wintab).
    The same SmokeTest with the new program finds only JPen provider.
    (I've also downloaded and installed the last dll version).
    Tell me if I have to do some other tests.

     
  • Nicolas Carranza

    Please run the jpen demo using the Windows Command Prompt: place all the distribution files and the jpen-2-302.jar on the same directory ( the latest distribution zip is here: https://sourceforge.net/projects/jpen/files/latest/download ), open the windows command prompt, cd to this directory and run:
    > java -jar jpen-2-302.jar
    then:
    1) Try using the digitizer's pen on the JPen Demo's panel to see if pressure data is being received.
    2) Press the "Status Report", copy all the info given by the "JPen Status Report" window and paste it here.
    3) Go back to the command prompt, press the right mouse button and then "Select All", press the right mouse button again and then paste the clipboard contents here (you can also use the 'Mark" to copy only the output given by the "java -jar jpen-2-302.jar").

    Cheers!
    Nicolas

     
  • Nicola Corsaro

    Nicola Corsaro - 2013-02-05

    Hi Nicolas,
    I've followed your istructions.
    I've downloaded the latest version, I've put it into a directory
    and executed the program.
    These are the results:

    ===== JPen - Status Report =====
    JPen Version: 2-121204
    Date: Tue Feb 05 08:40:58 CET 2013
    Providers:
    Constructor: JPen
    Construction Exception: none
    Device: Emulation (Emulation@JPen)
    Enabled: true
    Kind: (type=IGNORE)
    Fractional Movements: true
    Constructor: Wintab
    Construction Exception: none
    Native Version-Build(Expected): 3-525(525)
    Device: Pen (0.81324204@Wintab)
    Enabled: true
    Kind: (type=STYLUS)
    Fractional Movements: false
    Constructor: System
    Construction Exception: none
    Device (System Mouse): Mouse (Mouse@System)
    Enabled: true
    Kind: (type=CURSOR)
    Fractional Movements: false
    Device: Keyboard (Keyboard@System)
    Enabled: true
    Kind: (type=IGNORE)
    Fractional Movements: false
    System Properties:
    awt.toolkit: sun.awt.windows.WToolkit
    file.encoding: Cp1252
    file.encoding.pkg: sun.io
    file.separator: \ java.awt.graphicsenv: sun.awt.Win32GraphicsEnvironment
    java.awt.printerjob: sun.awt.windows.WPrinterJob
    java.class.path: jpen-2.jar
    java.class.version: 51.0
    java.endorsed.dirs: C:\Program Files (x86)\Java\jre7\lib\endorsed
    java.ext.dirs: C:\Program Files (x86)\Java\jre7\lib\ext;C:\Windows\Sun\Java\lib\ext
    java.home: C:\Program Files (x86)\Java\jre7
    java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Lenovo;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Symantec\VIP Access Client\;C:\SWTOOLS\ReadyApps;C:\Program Files (x86)\Common Files\Lenovo;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Common Files\Ulead Systems\MPEG;.
    java.runtime.name: Java(TM) SE Runtime Environment
    java.runtime.version: 1.7.0_11-b21
    java.specification.name: Java Platform API Specification
    java.specification.vendor: Oracle Corporation
    java.specification.version: 1.7
    java.vendor: Oracle Corporation
    java.vendor.url: http://java.oracle.com/
    java.vendor.url.bug: http://bugreport.sun.com/bugreport/
    java.version: 1.7.0_11
    java.vm.info: mixed mode, sharing
    java.vm.name: Java HotSpot(TM) Client VM
    java.vm.specification.name: Java Virtual Machine Specification
    java.vm.specification.vendor: Oracle Corporation
    java.vm.specification.version: 1.7
    java.vm.vendor: Oracle Corporation
    java.vm.version: 23.6-b04
    os.arch: x86
    os.name: Windows 7
    os.version: 6.1
    path.separator: ;
    sun.arch.data.model: 32
    sun.awt.enableExtraMouseButtons: true
    sun.boot.class.path: C:\Program Files (x86)\Java\jre7\lib\resources.jar;C:\Program Files (x86)\Java\jre7\lib\rt.jar;C:\Program Files (x86)\Java\jre7\lib\sunrsasign.jar;C:\Program Files (x86)\Java\jre7\lib\jsse.jar;C:\Program Files (x86)\Java\jre7\lib\jce.jar;C:\Program Files (x86)\Java\jre7\lib\charsets.jar;C:\Program Files (x86)\Java\jre7\lib\jfr.jar;C:\Program Files (x86)\Java\jre7\classes
    sun.boot.library.path: C:\Program Files (x86)\Java\jre7\bin
    sun.cpu.endian: little
    sun.cpu.isalist: pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
    sun.desktop: windows
    sun.io.unicode.encoding: UnicodeLittle
    sun.java.command: jpen-2.jar
    sun.java.launcher: SUN_STANDARD
    sun.jnu.encoding: Cp1252
    sun.management.compiler: HotSpot Client Compiler
    sun.os.patch.level: Service Pack 1
    user.country: IT
    user.language: it
    user.script:
    user.timezone: Europe/Berlin
    user.variant:
    ===== ===== =====

    Microsoft Windows [Versione 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tutti i diritti riservati.

    C:\tmp>java -jar jpen-2.jar
    feb 05, 2013 8:40:14 AM jpen.provider.NativeLibraryLoader$4 run
    INFO: loading JPen 2-121204 JNI library: jpen-2-3 ...
    feb 05, 2013 8:40:14 AM jpen.provider.NativeLibraryLoader$4 run
    INFO: jpen-2-3 loaded

    ======================

    Pressure data: 0,998
    Tilt x = 90°
    Tilt y = - 90°

    ====================

    ====================

    ====================
    When yesterday I've tried jpen-2-302.jar in the same way
    tiltx = 0 and tilt Y = 0,
    pressure data was 0,998

    =======================
    I've made another test:
    I put the new WintabDevice.java in your source code and
    set PRINT_ALTITUDE_AND_AZIMUTH to true.
    When I click with the pen the output is always:

    alt: 0 - az: 0 | rangedAlt: 0,000 - rangedAz: 0,000

    I can't see the output of this:
    System.out.println("rangedAlt: 1");

    ======================
    I hope this helps

     
  • Nicolas Carranza

    If the output is

    alt: 0 - az: 0 | rangedAlt: 0,000 - rangedAz: 0,000
    alt: 0 - az: 0 | rangedAlt: 0,000 - rangedAz: 0,000
    ...
    ===
    (alt and az are always 0) when running
    "java -Djpen.provider.wintab.WintabDevice.printAltitudeAndAzimuth=true -jar jpen-2-302.jar"
    ( jpen.provider.wintab.WintabDevice.printAltitudeAndAzimuth=true sets PRINT_ALTITUDE_AND_AZIMUTH to true)
    then wintab isn't receiving real tilt data from the digitizer (it always receives 0 for altitude and azimuth which are converted to tilt by jpen).
    I would try to change the digitizer configuration or updating its (wintab) driver. Have you successfully gotten tilt data with the same digitizer configuration on other applications using 32bit wintab?

    I'm not sure if jpen is having problems with the pressure value too... does it always jump from 0 to 0.998 without giving any value in between?

    It also seems that jpen is not getting fractional X and Y values... do you have your digitizer configured in relative or absolute cursor movement mode?

    Cheers!
    Nicolas

     
  • Nicola Corsaro

    Nicola Corsaro - 2013-02-06

    Ok Nicolas,
    I'll wrote an email to the GTCO CalcComp Technical Support, to be sure I've the right configuration. Because I have the suspect that there's something wrong in the pen or in the digitizer and not in JPen. The TabletWorks control panel doesn't give informations about tilt, so I can't be sure that those data are sent by the digitizer.
    I want to thank you very much for your support. You've have done a great job with JPen.

     
  • Nicolas Carranza

    Thank you Nicola, please let me know how it goes or if I can help any further.
    Cheers!
    Nicolas