GL : pictures mapped on cylinder


    Feb 22 2017 | 9:09 am
    Hello,
    For an interactive video installation, I would like to create a kind of slot machine, like "picker" in iOS : https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/UIKitUICatalog/UIPickerView.html
    With 5 "pickers" the goal would be to create words using alphabet letters. The letters will be designed seperatly, so I'll have image files for them.
    - Animate an open cylinder in OpenGL is the way to go ? - Is it possible to map one different image on each facet of the open cylinder ? - I'm new to GL, but I guess jit.anim.drive can help me to smoothly animate shapes (accelerate, slow down, stop...) ?
    Last thinking : I'll certainly use pushbuttons to trigger the "pickers" or even a Leapmotion controller. According about what I red here, jit.gl.picker could help me in this last case ?
    Thanks. Alain

    • Feb 22 2017 | 3:56 pm
      1. Yeah, jit.gl.gridshape and jit.gl.texture should do it for you (have a look at the patch) 2. If you want them spinning different ways just use several of the same setup 3. You could certainly use jit.animdrive to do that, but you could just use an ease function on the numbers you use to spin the cylinder I would have thought too, maybe check out the new ease package from the package manager!
      Didn't even know about jit.gl.picker, looks awesome and could be perfect for your requirements if you are using mouse interaction. If you are using Leap wouldn't you just see what part of the screen you are interacting with to select which picker you are controlling?
    • Feb 22 2017 | 6:06 pm
      Thanks Luke, I didn't know about this ease package : it looks great !
      You said : "If you are using Leap wouldn’t you just see what part of the screen you are interacting with to select which picker you are controlling? " I haven't any idea how to do this...
      I'm also wondering how to make the cylinders to stop moving correctly. I mean, I'd like to see the front facet facing exactly the camera when the cylinder stops turning, in order to read perfectly the image mapped...