Simulating input

Discussion in 'Mod Discussions' started by jacoby6000, August 4, 2013.

  1. jacoby6000

    jacoby6000 Member

    Messages:
    105
    Likes Received:
    8
    Is there currently any way to simulate input in PA without the use of a 3rd party app? I'm trying to work with Tatsu to make an interface with the leap motion controller, but if we can't simulate input/control the camera/actually provide input, that's going to be a very hacky project.
    LavaSnake likes this.
  2. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    Ooh, the Leap. A bit of a pricetag on it, still pondering on buying one and signing up as a developer.

    Right now it's going to be hacky. As far as I can tell Uber's event handler is primarily in-engine, including camera and mouse control.

    If you guys are hellbent on making an early leap interface, what you could do is have certain gestures with the Leap override mouse control. I have no idea how that little box works software wise, but playing with cursor location has always been a very hack-ey thing to do, effective when pulled off right.

    I would wait for a proper response from Uber on this one.
  3. masterdigital

    masterdigital Uber Alumni

    Messages:
    438
    Likes Received:
    833
    We are in the process exposing all inputs through the JS layer. So if you can figure out a way to get {insert device here} to drive mouse or keyboard events, then you can do anything you want. However, camera controls aren't exposed yet.
  4. jacoby6000

    jacoby6000 Member

    Messages:
    105
    Likes Received:
    8
    Right, I figured that out with a simple test make pressing j emulate an arrow up keypress. But that didn't work. For moving the camera, could I emulate a right mouse down in the center of the screen, and then emulate a mouse movement?
    Basically, I can't tell if doing something in the UI (through js) does it in the engine as well.
  5. pinbender

    pinbender Active Member

    Messages:
    78
    Likes Received:
    137
    Mirroring exactly the camera behavior that we have now via JS won't be quite supported, at least yet. We're concerned about controller latency, so active state ("Is the left key being held down?", or "What is the position of the mouse for this frame?") is still planned on staying on the native side. For the short term, expect API support via functions like "activate camera control mode". Long term, once the re-org settles down, we can experiment with allowing more control from the JS side.
  6. jacoby6000

    jacoby6000 Member

    Messages:
    105
    Likes Received:
    8
    Alright, well that makes sense. I guess we'll have to wait, then!
  7. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    alright :(

    (mushroomars the leap is much less pricey than the oculus rift it's ok, it 80 bucks, it was 60 to 70 bucks during pre-order. I really think it's mind blowing I can only recomend it. oculus rift 300$ plus graphic card upgrade.)
  8. mushroomars

    mushroomars Well-Known Member

    Messages:
    1,655
    Likes Received:
    319
    I agree, it's pretty cheap compared to the Oculus Rift... But I can just as easily use a mouse and keyboard. Motion controls have yet to impress me, the only thing I can really see this for is sculpting in Blender. Maybe for RTS controls if you guys really nail it.
  9. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    we will. this thing is precice to the hundreth of a millimeter, can tell appart all of your ten fingers, their fold, their pitch roll and yaw. it is unprecedented and given enough love, allows for much faster, much more efficient input than the mouse and keyboard, I'm certain of it.

    EDIT: (and I can't see any more fascinating way to utilize this potential than RTSes)
  10. ghostflux

    ghostflux Active Member

    Messages:
    389
    Likes Received:
    108
    The problem being that Leap Motion still has a long way to go. The device can in theory do everything that needs to be done, on a hardware level that is. Software on the other hand is still very immature and has yet to allow for an easy user experience. That said, the software can only improve if companies are willing to invest in support for devices like that.

    It's certainly on my wishlist as soon as the software has matured more.
  11. Culverin

    Culverin Post Master General

    Messages:
    1,069
    Likes Received:
    582
    What in the heck?
    I've been living in a hole.


    I do 3D modelling work all day long and the idea of this is just dreamy!!!

    Can wait until implementation is good.

    This would totally work for pinch-zoom and rotation for planets! :D
  12. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    dude you can take a cube in 3DS max and mold it by clasping your hands around it just like molding earth.

Share This Page