This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#51 2011-01-16 09:28:22

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Scratch and the Kinect

markyparky56 wrote:

johnnydean1 wrote:

SHowell wrote:


The remote sensor network communications document I found only mentions sending broadcast and sensor-updates for named global variables, I see no way to send a list. Can you link to some further documentation?

There is no documentation I am afraid - this forum is probably the expert. What I mean is if you have a list
#( 'R' 'R' 'G' 'B' )
and you turn it into a single string.
"R,R,G,B"
you could send that by the sensor-update to set a (|list| sensor value) block.
You could then use Scratch by saying:
replace item 1 of SCRATCHList with (letter 1 of (|list| sensor value) )
replace item 2 of SCRATCHList with (letter 3 of (|list| sensor value) )
replace item 3 of SCRATCHList with (letter 5 of (|list| sensor value) )
replace item 4 of SCRATCHList with (letter 7 of (|list| sensor value) )

so your ScratchList would have all the list transfered.
I hope this helps.


NOTE:
To send lists to Scratch/Incorperate them into strings, would require modifying Scratch's Source Code Found Here

Two things.

1. RRGB? Why is there two Rs?

2. RGB as far as I know can be upto 3 digits long, e.g. 255-255-255 is pure white and 0-0-0 is pure black.

The reason of having 2 R's is to demonstrate it will work with the same list item.

0-0-0 (Pure black) could be made into
000-000-000 and then transfered so all the strings are the same lengths.


You can now reach me on Twitter @johnnydean1_

Offline

 

#52 2011-01-16 10:23:57

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Scratch and the Kinect

johnnydean1 wrote:

The reason of having 2 R's is to demonstrate it will work with the same list item.

Like a way of telling which RGB belongs to which figure?

0-0-0 (Pure black) could be made into
000-000-000 and then transfered so all the strings are the same lengths.

That would get complicated when you get things like: 7-255-59, might slow things down a bit.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#53 2011-02-13 01:13:16

hippylippy
New Scratcher
Registered: 2011-01-22
Posts: 1

Re: Scratch and the Kinect

Hi,

I have incorporated SHowell into SenseBloom's OSCeleton's code and made one that works for normal OSC, Animata and Scratch. Those of you that are using OSCeleton should be able to recompiled by replacing the OSCeleton.cpp by this one.

Let me know if there is any problem with it.

I added a -c option to enable Scratch compatibility mode. -d would turn on debugging.
I have also moved the broadcast to Scratch action to *after* the initialization of the Kinect.

To start using this:
./osceleton -c

https://docs.google.com/leaf?id=0B6WdOUYoT-ZIY2QzYmRkZTYtMmM5ZC00ZjNhLTk1NjctZGZlMDJiM2U2Mzg0&hl=en&authkey=COKT4OsL

Enjoy!
Edwin

Offline

 

#54 2011-03-21 12:45:45

StuckySTL
Scratcher
Registered: 2009-10-29
Posts: 3

Re: Scratch and the Kinect

Okay, it rocks. I used FAAST 0.07 to check my calibration pose. This helped me with calibrating the Kinect. No conflict running both programs.

I noticed on the sensor blocks you were able to set up "[torso_x] sensor value". When I click on the drop-down list I get the regular sensor options based on (I'm assuming) picoboard settings.

What did you do to get the [torso_x] as a sensor value drop-down menu choice?

3/23/11
Nevermind, hooked up Kinect, started Kinect2Scratch, opened a blank Scratch file, and the sensor values were available, with the "z" dimension! Brilliant.

Thank you for taking the time to do this.

Last edited by StuckySTL (2011-03-23 12:49:51)

Offline

 

#55 2011-03-22 17:58:44

jcml
Scratcher
Registered: 2010-10-08
Posts: 12

Re: Scratch and the Kinect

whenever i open the openni to scratch .exe it works for about half a second and then freezes and i get this message


"Problem signature:
  Problem Event Name:    APPCRASH
  Application Name:    OpenNIToScratch.exe
  Application Version:    0.0.0.0
  Application Timestamp:    4d28a5ba
  Fault Module Name:    openNI.dll
  Fault Module Version:    1.0.0.23
  Fault Module Timestamp:    4cff5dd2
  Exception Code:    c0000005
  Exception Offset:    0000ca15
  OS Version:    6.1.7600.2.0.0.768.3
  Locale ID:    1033
  Additional Information 1:    0a9e
  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:    0a9e
  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789"





PLEEEEEASE HELP!!!!!!!!!!!!!!!


I need help for one huge a mesh game i need to no how to make a world-wide scratch program if you have any idea's just coment on one of my projects

Offline

 

#56 2011-03-22 18:44:32

jcml
Scratcher
Registered: 2010-10-08
Posts: 12

Re: Scratch and the Kinect

wait i fixed it but now its saying
---------------------------------------------------------------------------------

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at xnSetMapOutputMode(XnInternalNodeData* , XnMapOutputMode* )
   at ScratchServer.LaunchKinect()
   at OpenNI2ScratchGUI.Form1.connectToKinect_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
OpenNI2ScratchGUIOO
    Assembly Version: 1.0.4030.39464
    Win32 Version:
    CodeBase: file:///C:/Users/Mark/Desktop/OpenNI2ScratchGUI7.exe
----------------------------------------
msvcm90
    Assembly Version: 9.0.30729.4926
    Win32 Version: 9.00.30729.4926
    CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a/msvcm90.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


I need help for one huge a mesh game i need to no how to make a world-wide scratch program if you have any idea's just coment on one of my projects

Offline

 

#57 2011-05-18 20:14:11

SnowRider04
New Scratcher
Registered: 2011-05-18
Posts: 1

Re: Scratch and the Kinect

This is really great! the only question I have is how do I use this information? I'm stoked to see all x/y/z co-ordinates, but what now? I have my ideas, but how is it implemented in scratch?

Offline

 

#58 2011-05-18 20:59:44

murpho
Scratcher
Registered: 2010-07-01
Posts: 1000+

Re: Scratch and the Kinect

did you see how a guy got kinect to work with minecraft?


https://lh6.googleusercontent.com/-l-rgCPiQ9pY/Tp32n1MRUEI/AAAAAAAADoA/HNQWbO8OOaA/s510/soccerleague.gif

Offline

 

#59 2011-06-30 22:44:24

mojamoja1202
New Scratcher
Registered: 2011-06-09
Posts: 1

Re: Scratch and the Kinect

thats so amazing

Offline

 

#60 2011-12-26 00:30:43

Mcsugarface
Scratcher
Registered: 2009-11-16
Posts: 100+

Re: Scratch and the Kinect

This is so cool! I wish I had a Kinect though...


Hi! I'm http://blocks.scratchr.org/API.php?user=USERNAMEHERE&amp;action=onlineStatus&amp;type=text!
http://internetometer.com/imagesmall/11070.png

Offline

 

#61 2012-03-15 14:27:32

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Scratch and the Kinect

Daaaarrrrn Why did I have to buy a kinect with xbox bundle!? -.-


6418,

Offline

 

#62 2012-05-07 06:17:00

mingdaines
New Scratcher
Registered: 2012-05-05
Posts: 1

Re: Scratch and the Kinect

Hi everyone,
I'm on a Windows XP and can't get Stephen Howell's OpenNI2ScratchGUI7 (from old blog) or Scratch2Kinect (downloaded by request from his new site) to work. "System.AccessViolationException: Attempted to read or write protected memory" keeps popping up with OpenNI2ScratchGUI7 (with .Net3 and .Net4) while Scratch2Kinect wouldn't work even after installing .Net4.

I followed the Windows XP installation instructions on his old blog (http://stephen-howell.tumblr.com/post/4549150784/hi-stephen-what-you-have-achieved-looks-really) but was not able to copy the xml files from steps 8 & 9 since I could find them. Though I'm able to see my image in NiViewer and Kinect appears in my Device Manager. Can anyone help? Any info at all would be greatly appreciated!

OS: Windows XP Service Pack 3
Installation software:
OpenNI Unstable build for WIndows x86 (32-bit) v1.5.2.23 Development Edition
Microsoft .NET Framework 3.0 Redistributable Package (X86)
PrimeSense Sensor Module for OpenNI (Version 5.1.0.25 version - Dec 18th 2011)
NITE (from link http://kinmob.googlecode.com/files/NITE-Win32-1.3.0.17.exe)

Offline

 

#63 2012-05-07 09:11:39

Zenth
New Scratcher
Registered: 2012-05-06
Posts: 100+

Re: Scratch and the Kinect

Kinect on Scratch! A very impressive idea! So it has already happened?

Offline

 

#64 2012-09-05 14:35:26

SHowell
Scratcher
Registered: 2011-01-08
Posts: 27

Re: Scratch and the Kinect

Hi Mingdaines,

Sorry I missed your query. That version is very old. I have a newer version for XP. You can email me directly from scratch.saorog.com and I will send it to you if you till want to code for Kinect on XP. If you have Windows 7, it is much better.

Regards,

Stephen

mingdaines wrote:

Hi everyone,
I'm on a Windows XP and can't get Stephen Howell's OpenNI2ScratchGUI7 (from old blog) or Scratch2Kinect (downloaded by request from his new site) to work. "System.AccessViolationException: Attempted to read or write protected memory" keeps popping up with OpenNI2ScratchGUI7 (with .Net3 and .Net4) while Scratch2Kinect wouldn't work even after installing .Net4.

I followed the Windows XP installation instructions on his old blog (http://stephen-howell.tumblr.com/post/4549150784/hi-stephen-what-you-have-achieved-looks-really) but was not able to copy the xml files from steps 8 & 9 since I could find them. Though I'm able to see my image in NiViewer and Kinect appears in my Device Manager. Can anyone help? Any info at all would be greatly appreciated!

OS: Windows XP Service Pack 3
Installation software:
OpenNI Unstable build for WIndows x86 (32-bit) v1.5.2.23 Development Edition
Microsoft .NET Framework 3.0 Redistributable Package (X86)
PrimeSense Sensor Module for OpenNI (Version 5.1.0.25 version - Dec 18th 2011)
NITE (from link http://kinmob.googlecode.com/files/NITE-Win32-1.3.0.17.exe)

Offline

 

#65 2012-09-05 14:35:50

SHowell
Scratcher
Registered: 2011-01-08
Posts: 27

Re: Scratch and the Kinect

Yep, get it on scratch.saorog.com

Zenth wrote:

Kinect on Scratch! A very impressive idea! So it has already happened?

Offline

 

Board footer