Pode's Forum Posts

  • 2Bdigital : I'm not sure, but does the Unistroke Gesture Recognition plugin helps you in that context (by adding a swipe gesture) ?

  • newt : I'm not really sure what you mean by "the default gestures cause a false positive sometimes. Is there any way to take the defaults out?"

    If, when you draw something that's not looking something you aleardy have in the library of gesture, the lib will try to match it anyway (but it will get a very bad score). So you can filter false positives with a high score. Is it helping you ?

    All : I didn't think about that in the beginning, but with that lib, you can do a "swipe gesture" detection on mobile ;).

    I also edited the original post to add something : to have a good recognition when you add new gestures, you need to add at least 3 variants of that gesture.

  • Since JesseJoh is busy with his work, I'm placing here an addition I added to his plugins : the possibility to rotate the 3 elements (<div>, <iframe> and <img>). It doesn't work in IE,though.

    I also added a property field to add an "ID" to those tags, to let you access them from outside C2's framework.

    When JesseJoh is back, I hope we could integrate them in his plugins (for the moment, I added an extension "_Pode" to the modded plugins, to let everybody use the version they want, without breaking .capx project in the future).

    In the end, you should thanks JesseJoh one more time for his work !

    <img src="http://dl.dropbox.com/u/1412774/demo.png" border="0">

    The plugin archive :

    http://dl.dropbox.com/u/1412774/pode_html_pack%28from_JJ%29.zip

    The demo :

    http://dl.dropbox.com/u/1412774/html_pack_pode_example.capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • vidi: is it a problem related to Retina graphics (and then dividing pixel size by two in each direction) ?

  • I just added two things to the original post I'm just remembering now...

  • Edit : <font color="red">Update 08 - february - 2012</font>

    New build !http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer.0.3.zip

    Demo : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html

    To appologize, there's a new functionnality : remove a specific gesture, by name

    Edit : <font color="red">Update 07 - february - 2012</font>

    New build ! http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer0.2.zip

    • Centroid, Bounding Box, Angle
    • delete all gesture from the lib (even those given at the start)
    • add a custom list of points ! (provided as "X1,Y1|X2,Y2|...|XnYn)

    The demo is updated, by the way : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html

    Edit2 : I also added a Custom Gesture Creator : http://dl.dropbox.com/u/1412774/CustomGestureCreator/index.html

    http://dl.dropbox.com/u/1412774/CustomGestureCreator/GestureCreator.capx. It's easier for the creation of custom gesture's pointlists...

    ____________________

    I remembered using a library to work with wiimote, helping to recognize gestures made with the gamepad.

    That lib is there : http://depts.washington.edu/aimgroup/proj/dollar/

    So I made a plugin for C2 today, that helps to recognize gestures made by the user, which uses that lib.

    You can get that plugin there : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/pode_1StrokeGestureRecognizer.zip

    I also made a quick demo app, mimicking the one from the original link :

    <img src="http://i.imgur.com/6fR9V.jpg" border="0">

    http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/index.html

    And a demo capx : http://dl.dropbox.com/u/1412774/oneStrokeGestureRecognizerC2Plugin/oneStrokeGestureRecognizerC2PluginDemo.capx

    One thing to know : in the original algorithm, the recognition works when there's more than 10 points defined for a gesture.

    In a future rev., I'm going to add the possibility to give directly to the plugin a list of points (for example, if you already determined a predefined gesture), and the possibility to load that from a file.

    When I have more time, I'm going to integrate the N strokes (multistrokes) Javascript lib from the same team...

    Edit : it's up to you to set a level (score) under which the gesture isn't recognized, because the lib will try its best to recognize something anyway. I usually go for something between 75 (it let pass a few bad detection) to 90 (pretty strict detection).

    Edit2 : In the original paper, to have a good recognition when you add new gestures, you need to add at least 3 variants of that gesture. So if you want to detect a new gesture, to forget to draw it 3 times and add it 3 times ! :)

    Edit3 : the action "Clear Point List" empties any user defined gesture, not gesture pre-packaged with the lib !

  • You can also put a screenshot of your code on imgur, and link the image.

  • chrisbrobs : the article aren't related directly to the problem (since I up everything to the Public folder of my Dropbox account, I'm always sure it's not a cross-domain issue). But the links are interesting. I stumbled upon a active Blob demo which was impressive ! ;)

  • By the way, something I'm not sure : when you create dynamically a new Image () (var imgTmp = new Image()), and you want the onload() function to fire, do you have something specific to do (apart from this.runtime.redraw = true) ? (because it doesn't fire under Chrome).

  • You can check in my Postmortem thread, I made a game using that idea.

    You need to use R0j0hound's Canvas plugin. Put a Sprite behind it.

    Create a Sprite (for example a black Circle), and paste it at Mouse(X,Y), with the effect "Destination out", to create some hole through which you can see your scenery behind.

  • For the flip effect, you can wait for the arrival of WebGL shaders, or use a plain animated Sprite with the "flipping" effect. The problem, for the moment, is that there is no way to paste your current page on the flipping animation.

    I'm planning to release a plugin to add CSS 3d transform to div/iframe, but I need to check with JesseJoh first if he can add my work to his plugin...

  • It's easy to do it now.

    You just have to edit the index.html file ;).

  • Hackish way : a Circle Sprite, pinned via the Behavior to the object you want to have a circular collision mask. You then check collisions on that Sprite.

  • Ashley: the image source is from the same domain (in the exported image folder). I don't think it's a CORS related problem, since it works with Firefox.

    ARe you planning to add the possibility to load custom shaders, or the shaders are going to be prebuilt ?

  • Phonegap has native audio plugin for iOS & Android if you need them (you need to add them in the directory, though).

    By the way, PhoneGap is free also, even if Adobe bought PhoneGap, there's still open licences that it needs to respect.

    If you want audio with PhoneGap, edit the index.html, and add a <script> which preloads all audio. You can then call the script from inside C2 with the CallJS plugin. Problem solved ;)