khaledosman / terasoft-summer-reunited

Automatically exported from code.google.com/p/terasoft-summer-reunited
0 stars 0 forks source link

K2. As a user, I can physically bend to cause my avatar to slide on the ground. #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The system should detect if the player bends by tracking the player's skeleton 
through the kinect sensor and call the slide animation

Original issue reported on code.google.com by khaled.osmaan on 25 Jul 2012 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by khaled.osmaan on 25 Jul 2012 at 8:48

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r37.

Added class Bend which is the class responsible to keep track of the user's 
skeleton and send an event if he physically bend's, added the joints I need to 
track and added method fill_pos, still needs to be tested.

Original comment by khaled.osmaan on 2 Aug 2012 at 6:26

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r38.

comiting solution file after adding new class.

Original comment by khaled.osmaan on 2 Aug 2012 at 6:28

GoogleCodeExporter commented 9 years ago

Original comment by khaled.osmaan on 2 Aug 2012 at 8:50

GoogleCodeExporter commented 9 years ago
this issue was updated by r41.
http://code.google.com/p/terasoft-summer-reunited/source/detail?r=41

Original comment by khaled.osmaan on 2 Aug 2012 at 8:51

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r55.

replaced "kinect" with Kinect

Original comment by khaled.osmaan on 2 Aug 2012 at 11:26

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r65.

added class BendGesture and implemented the CheckGesture method to check the 
gesture was done satisfying the set conditions according to joint tracking

Original comment by khaled.osmaan on 3 Aug 2012 at 9:37

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r66.

deleted old class Bend

Original comment by khaled.osmaan on 3 Aug 2012 at 9:39

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r87.

Changed the bend gesture to the new one. aka crouching

Original comment by khaled.osmaan on 4 Aug 2012 at 11:23

GoogleCodeExporter commented 9 years ago
this issue was updated by r125
http://code.google.com/p/terasoft-summer-reunited/source/detail?r=125

Original comment by khaled.osmaan on 6 Aug 2012 at 9:16

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r135.

Added constant values which are min values between joints and min values moved 
etc to class Constants and used them from there instead

Original comment by khaled.osmaan on 7 Aug 2012 at 12:11

GoogleCodeExporter commented 9 years ago
this issue was updated by r155
http://code.google.com/p/terasoft-summer-reunited/source/detail?r=155

Original comment by khaled.osmaan on 7 Aug 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Bug found : Actually the bend gesture committed is not working.It do not 
recognize it ,please re checkout and try it because at the demo it was working 
while committed one is not ,Also check that it does not need any special kinect 
setup ("like angle of motor fixed or Kinect at certain height 
position...").Thank you :)

**Please be sure that all your kinect implementations do not depend on special 
person,it should be flexible with all people heights...

Original comment by hollaxy...@gmail.com on 9 Aug 2012 at 10:11

GoogleCodeExporter commented 9 years ago
I just tested it again and its working fine, are you sure its not the version 
of your game? it didn't want to recognize the gestures/kinect movements aswell  
that day

Original comment by khaled.osmaan on 10 Aug 2012 at 12:19

GoogleCodeExporter commented 9 years ago
did you re checkout in new folder and tried it ? With the current code 
committed is not working,re checkout and check if working or not and make sure 
you committed it.

Original comment by hollaxy...@gmail.com on 10 Aug 2012 at 4:27

GoogleCodeExporter commented 9 years ago
I just did and its still working fine

Original comment by khaled.osmaan on 10 Aug 2012 at 7:31

GoogleCodeExporter commented 9 years ago
I asked you before are you working with constants or on people heights and your 
answer was it will no make diff and your code was going to run on all 
heights.However your code does not fit what you said :
 if (skeleton.Joints[JointType.HipCenter].Position.Y < (Constants.posY-0.5))
            {
                return GesturePartResult.Suceed;
            }
you are taking the current position y comparing it to the initial position 
subtracted by 0.5 METERS

1)Game will be played with children,so these constants can not fit,you should 
handle it by ratios 1:2 ....

2)what if the initial skeleton was in bend position,you are taking wrong 
position,so either to deal with past frames or to come up with condition making 
sure skeleton is all tracked and is in right position (second solution is 
easier.However first one is good and right one)

**These comments is to be taken into consideration into all kinect stories not 
this story only :)

Original comment by hollaxy...@gmail.com on 11 Aug 2012 at 12:26

GoogleCodeExporter commented 9 years ago
@5aled : Constants.posY .. just make the change in the set method of posY in 
Constants itself and make it a ratio of the height .. not a constant 
No further comments. Just pray everything works :) Do these changes in all 
stories

Original comment by vendett...@gmail.com on 17 Aug 2012 at 8:59

GoogleCodeExporter commented 9 years ago
@5aled .. btw.. clean up ur code in kinect class.. make your code look good. 

Original comment by vendett...@gmail.com on 17 Aug 2012 at 9:21