Game Maker Community YoYo Games

Welcome Guest ( Log In | Register )

> 

This forum is meant for discussion about creating DLLs and scripts and action libraries to extend the possibilities of Game Maker. Make sure that you READ these rules prior to posting. Also, the General GMC Rules apply here too.

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
Advanced Gesture Recognition System, Source released!
Kyle_Solo
post May 1 2007, 06:57 PM
Post #1


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



Overview:
Ever played Black and White? If so, you must remember the innovative spell system, which required you to trace a spell's symbol to cast it. My gesture system allows just that. With just a few lines of code, you can add shape recognition to your games. It will take you no more than a few minutes to master the system. The help file also has an easy to follow step-by-step tutorial that will guide you through the process of recognizing a shape.

Source released!
Redownload from GMBase. Be sure to read the License first.

Extension Webpage
License
(Current Version: 5.2)

This post has been edited by Kyle_Solo: Feb 28 2008, 03:55 PM
Go to the top of the page
 
+Quote Post
oakwhiz
post May 2 2007, 01:32 AM
Post #2


GMC Member
Group Icon

Group: GMC Member
Posts: 275
Joined: 26-July 06
Member No.: 55707



I think this is a good start. I don't know exactly what it would be used for, though.

* I noticed that you could draw a small shape or a large version of the same shape, did you use scaling for that?
* The recognition rate is low. If this were for an action game, I wouldn't want a critical gesture to be ignored.

EDIT: Can this be used for things besides the mouse? Like the keyboard?


Please disregard, this was for an old version.

This post has been edited by oakwhiz: May 31 2007, 07:27 PM
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 2 2007, 01:49 AM
Post #3


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



You can adjust the recognition rate for each shape. You can also draw shapes scaled however you want. This is almost a bug, because it lets you draw a rectangle and interprets it as a square. I'll work on it. Yes, it could be used for the keyboard, maybe. It lets you set the x,y it captures, so you could come up with a system that works based on that.

EDIT: Bug fixed

This post has been edited by Kyle_Solo: Jun 26 2007, 02:40 PM
Go to the top of the page
 
+Quote Post
khajiit
post May 6 2007, 11:44 AM
Post #4


GMC Member
Group Icon

Group: GMC Member
Posts: 23
Joined: 1-April 07
From: Australia
Member No.: 75031



Suhweet! Im gonna use this in the game im making, I'll be sure to credit you biggrin.gif
Go to the top of the page
 
+Quote Post
Seeker
post May 22 2007, 03:17 AM
Post #5


GMC Member
Group Icon

Group: GMC Member
Posts: 435
Joined: 23-February 06
Member No.: 45109



How did you handle the scoring in yours? In mine, I allow two type of definitions to be made. You can either add points to a grid or create a directional string. One doesn't affect the other. Dot product is used when scoring point grids, and a string similarity script is used when scoring directional strings. It's all done in the gesture_score() script if anyone searches. The directional string definitions are less accurate than the point grid ones, but I've managed to always get the right shape when drawing the point grid definitions. I don't know why anyone else has had difficulty, but I explained how to make things easier to draw.

You linked to yours in mine, so I'll do the same, heh heh.
My gesture system

This post has been edited by Seeker: May 22 2007, 03:18 AM
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 22 2007, 06:30 PM
Post #6


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



Mine uses a bizarre method of comparing two arrays of points. It score based upon the difference it calculates between them. It's more advanced than it sounds, trust me.

QUOTE
You linked to yours in mine, so I'll do the same, heh heh.

Fine by me. I would encourage readers to try both.

By the way: Major update! Please re-download. This version is much better. Now has a shape creator and nice demo.
Go to the top of the page
 
+Quote Post
Seeker
post May 23 2007, 03:48 AM
Post #7


GMC Member
Group Icon

Group: GMC Member
Posts: 435
Joined: 23-February 06
Member No.: 45109



QUOTE (Kyle_Solo @ May 22 2007, 02:30 PM)
Mine uses a bizarre method of comparing two arrays of points.  It score based upon the difference it calculates between them.  It's more advanced than it sounds, trust me. 
*


I do believe. This new demo is amazing! I can't believe I didn't think about putting a shape creator in my version after all of the other things I did. Great idea. I'm having greater success with your shapes in this version than did the last. I don't know if you changed the underlying code or just the settings, or whether my hand has just gotten a lot steadier over the last few weeks :-), but it seems better. I wish others would pay this and my own a little more attention, seeing the work that was put into both.
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 23 2007, 03:54 AM
Post #8


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



Thank you! I worked pretty hard on this. I actually felt the need to improve it when I saw Point Magic. I am currently working on even better recognition. Specifically, better recognition for bigger shapes (right now smaller ones are easier to recognize). A stupid bug is keeping me from testing it. It works fine as scripts, but when I package it into the extension is gives a weird error. I'll hunt it down, never fear.

EDIT: Found it. Still needs some work though. I posted a record of the error here. Not my fault!


EDIT: I've fixed the recognition for bigger shapes. They are now recognized exactly the same as small ones. Pretty cool, huh?

This post has been edited by Kyle_Solo: Sep 12 2007, 04:44 PM
Go to the top of the page
 
+Quote Post
Seeker
post May 23 2007, 09:14 PM
Post #9


GMC Member
Group Icon

Group: GMC Member
Posts: 435
Joined: 23-February 06
Member No.: 45109



QUOTE (Kyle_Solo @ May 22 2007, 11:54 PM)
Thank you!  I worked pretty hard on this.  I actually felt the need to improve it when I saw Point Magic.  I am currently working on even better recognition.  Specifically, better recognition for bigger shapes (right now smaller ones are easier to recognize).  A stupid bug is keeping me from testing it.  It works fine as scripts, but when I package it into the extension is gives a weird error.  I'll hunt it down, never fear.

EDIT: Found it.  Still needs some work though.  I posted a record of the error here.  Not my fault!
*


Wow, you did all of this in the short time that passed since I released Point Magic? You work fast! I'm happy my little presentation gave you extra motivation. :-) I actually like your presentation more than mine. It has a slicker, more professional look.

I figure people won't truly appreciate these kind of things until they see them put to use in a game. So I'm going to work on that later on and at least one other example/program, and then I'll post a video or something so people can actually SEE that these things work since it seems that it's hard for new users to get the drawings down.
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 25 2007, 04:19 PM
Post #10


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



Update! Version 4.3 supports more accurate scaling of gestures. The cutoff argument is now different. It should be about equal to max(widthofshape,heightofshape). In previous versions large shapes had a much smaller chance of being detected, now the chances are equal! Download link in first post. The demo has also been updated to reflect the changes to the cutoff variable, and I made it more pretty (I was bored). To anyone using this in a game (anyone?): use the updated version! It might be a pain to update the cutoff, but it will work much better.

Next version:
...
I'm drawing a blank here...
What would you like to see in the next version?

This post has been edited by Kyle_Solo: Sep 12 2007, 04:45 PM
Go to the top of the page
 
+Quote Post
hasser
post May 28 2007, 01:16 PM
Post #11


GMC Member
Group Icon

Group: GMC Member
Posts: 578
Joined: 3-December 06
From: UK - know swedish though
Member No.: 65315



I extracted it but it still says : cannot find extension pacage:gestures. how do i fix this?
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 28 2007, 04:01 PM
Post #12


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



You need to install the 'gesturesXX.gex' extension. (XX being the version number)
Info on installing extensions

This post has been edited by Kyle_Solo: Jun 26 2007, 02:41 PM
Go to the top of the page
 
+Quote Post
hasser
post May 29 2007, 08:49 AM
Post #13


GMC Member
Group Icon

Group: GMC Member
Posts: 578
Joined: 3-December 06
From: UK - know swedish though
Member No.: 65315



ok i did it, it works now.

cool extesion... could be very useull.... you should make it so you can start drawing from any part of the shape and it wil still reconise it instead of having to allways start drawing the circle from the top..
Go to the top of the page
 
+Quote Post
Kyle_Solo
post May 30 2007, 05:22 PM
Post #14


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



QUOTE (Seeker @ May 22 2007, 10:48 PM)
I don't know if you changed the underlying code or just the settings, or whether my hand has just gotten a lot steadier over the last few weeks :-), but it seems better.
*


A little of both. I changed the code slightly, but most of it was the settings. I didn't know it would react to shapes with points only at the corners. It reacted poorly. To everyone: You have to carefully define your shapes. For 4.4 I will be adding a gesture_shape_subdivide function to make it easier. (Added)

QUOTE (hasser @ May 29 2007, 03:49 AM)
you should make it so you can start drawing from any part of the shape and it wil still reconise it instead of having to allways start drawing the circle from the top..


I thought about it, but it would be very hard. Very hard. You can't even begin to understand how mindbogglingly hard it would be. It would also slow the system down a lot. Don't count on it.

This post has been edited by Kyle_Solo: Sep 28 2007, 03:14 PM
Go to the top of the page
 
+Quote Post
Seeker
post Jun 1 2007, 06:55 PM
Post #15


GMC Member
Group Icon

Group: GMC Member
Posts: 435
Joined: 23-February 06
Member No.: 45109



It's too bad that most of the people around here don't like to be challenged.... wink1.gif You should make a little game with this and release it in Creations. We can challenge each other, since I'm making a game of my own (and a nice little program). :-)

This post has been edited by Seeker: Jun 1 2007, 07:02 PM
Go to the top of the page
 
+Quote Post
Kyle_Solo
post Jun 5 2007, 06:33 PM
Post #16


GMC Member
Group Icon

Group: GMC Member
Posts: 998
Joined: 8-February 05
From: Bored
Member No.: 21505



Update! 4.4 is now out, with new features, including a better help file which contains a tutorial. Also, two new functions have been added and the demo has been slightly updated to reflect those changes.
Go to the top of the page
 
+Quote Post
oakwhiz
post Jun 10 2007, 01:09 AM
Post #17


GMC Member
Group Icon

Group: GMC Member
Posts: 275
Joined: 26-July 06
Member No.: 55707



I think this will be useful for my Nintendo DS simulator. *puts into pile of extension packages*
Go to the top of the page
 
+Quote Post
death-droid
post Jun 10 2007, 04:28 AM
Post #18


Droid-Studios
Group Icon

Group: GMC Member
Posts: 3033
Joined: 20-July 06
From: Australia
Member No.: 55176



looks cool just about to try out

EDIT:Very nice 10/10


one question are you able to make it so it has that effect that goes along the line as soon as you draw anything and can you make it do stuff if you make a shape??

This post has been edited by death-droid: Jun 10 2007, 04:34 AM
Go to the top of the page
 
+Quote Post
GearGOD
post Jun 20 2007, 12:56 PM
Post #19


Deus Verus
Group Icon

Group: GMC Member
Posts: 1829
Joined: 18-December 04
From: Land of Twilight
Member No.: 18164



Any idea why GM would tell me that the extension is corrupted?
Go to the top of the page
 
+Quote Post
Alex
post Jun 20 2007, 01:06 PM
Post #20


3lite Member
Group Icon

Group: GMC Member
Posts: 3292
Joined: 18-November 04
Member No.: 16802



These aren't that hard to make. Although, I haven't actually tested it. I made a hand writing to text converter a long time ago. I assume it would be similar.
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd November 2009 - 11:43 AM