PDA

View Full Version : Sensors / realtime input in Maya

 julie.jenkinson12-04-2006, 02:11 PMHello, I've posted this in the general Maya forum but it's actually more likely that I get answers from here. Sorry for the double post. I have 2 separate questions for you guys. If you know anything about either of them, please reply. 1_ I'm looking for a decent acceleration and tilt sensor. I want to record my hand's movement (position and rotation) and use the data to drive objects in Maya. My problem is that sensors which combine linear acceleration and orientation measurements are not very common, because it seems that orientation measures are corrupted when the device is moved in space. Also, these kinds of sensors are often quite expensive, which is bit odd since this technology is being featured in more and more consumer products, the wii controller being a good example. 2_ Ideally I would like the sensor to control attributes in real time in Maya. The few proprietary sensor softwares that I've seen basically output pages of numbers, in excel or .csv files for example. So it means that recording the motion and using it in Maya are two different steps. I can program a bit in Mel, but I have no idea if there's a possibility in Maya to establish a direct connection between a sensor's output and, for example, an object's translateXYZ and rotateXYZ attributes. j.
flaiver
12-04-2006, 03:06 PM
This is a case for the Maya API, because you need to things, which can only be done in the maya api:

1) you need a direct connection to your hardware. This should be easy, if you have the the .lib files from company, which build the glove.

2) Mel isn't fast enough for all the callculation,

In my eyes, a new node programed in the C++ should be right way

Best regards

Christoph

sparaig
12-04-2006, 10:17 PM
Hello,
I've posted this in the general Maya forum but it's actually more likely that I get answers from here. Sorry for the double post.

I have 2 separate questions for you guys. If you know anything about either of them, please reply.

1_
I'm looking for a decent acceleration and tilt sensor. I want to record my hand's movement (position and rotation) and use the data to drive objects in Maya. My problem is that sensors which combine linear acceleration and orientation measurements are not very common, because it seems that orientation measures are corrupted when the device is moved in space. Also, these kinds of sensors are often quite expensive, which is bit odd since this technology is being featured in more and more consumer products, the wii controller being a good example.

2_
Ideally I would like the sensor to control attributes in real time in Maya. The few proprietary sensor softwares that I've seen basically output pages of numbers, in excel or .csv files for example. So it means that recording the motion and using it in Maya are two different steps.
I can program a bit in Mel, but I have no idea if there's a possibility in Maya to establish a direct connection between a sensor's output and, for example, an object's translateXYZ and rotateXYZ attributes.

j.

If you can get the hardware specs for the new wii controller, it might be the cheapest possible mo-cap sensor available. Don't know if it uses USB or not, but if it DOES, you got yourself a very robust sensor (designed to dropped and thrown around and so on since its for kids).

sparaig
12-04-2006, 10:42 PM
If you can get the hardware specs for the new wii controller, it might be the cheapest possible mo-cap sensor available. Don't know if it uses USB or not, but if it DOES, you got yourself a very robust sensor (designed to dropped and thrown around and so on since its for kids).

Bah. It's a wireless controller with no doubt a proprietary interface to the console. Too bad.

morphometric
12-05-2006, 05:05 AM
There is a lot of potential for having your sensors send data to maya via a command port over tcp/ip. We did a demo project here at Pratt last year which integrated three tilt sensors in a box connected through ethernet to a system running maya, Some documentation of it is here:

http://class01.pratt.edu/aoe/pmwiki.php/Main/TheBoxProject (http://class01.pratt.edu/aoe/pmwiki.php/Main/TheBoxProject)

...but the same principle was used in this project which integrated computer vision and maya, this time Processing talking to Maya over tcp/ip:

http://morphometric.com/exhibition/2006haunting/

Not sure if these solutions are right for you but it's a means of hardware talking to Maya using MEL to deal with the incoming data.

Best,
Rob (rob [at] morphometric \dot/ com)

julie.jenkinson
12-07-2006, 05:02 PM
Used with the GlovePIE software it can be used to send data to the computer, by bluetooth.
I just have some doubts about the precision of the remote, especially when it comes to positioning, so I might use that if I can't find something better. But I agree, it's a very low cost solution

> Rob, this looks very interesting. Unfortunately I couldn't download the mel script on the Box Project site.
Right now my main focus is on finding a good sensor, but I'm glad to know that there are people who have managed to make maya communicate with external devices. Can I get in touch with you when I actually have the sensor at my disposal?

Best,

julie.

sparaig
12-07-2006, 06:06 PM
Used with the GlovePIE software it can be used to send data to the computer, by bluetooth.
I just have some doubts about the precision of the remote, especially when it comes to positioning, so I might use that if I can't find something better. But I agree, it's a very low cost solution

> Rob, this looks very interesting. Unfortunately I couldn't download the mel script on the Box Project site.
Right now my main focus is on finding a good sensor, but I'm glad to know that there are people who have managed to make maya communicate with external devices. Can I get in touch with you when I actually have the sensor at my disposal?

Best,

julie.

Wow. At $45 each that's just amazing. BTW, the accuracy is good enough to play all sorts of games, so I would guess its good enough to use for Maya. There are oodles of buttons on that controller. You could use them to control scaling of your movements on the fly. The force feedback thing should provide some interest capabiltiies as far as modeling and so on goes. Makes me want to go buy a bluetooth connector for my Mac. Driver also available for linux and Windows. http://wiihacks.blogspot.com/2006/12/wii-mote-application-for-osx.html sparaig 12-07-2006, 06:13 PM Wow. At$45 each that's just amazing. BTW, the accuracy is good enough to play all sorts of games, so I would guess its good enough to use for Maya. There are oodles of buttons on that controller. You could use them to control scaling of your movements on the fly. The force feedback thing should provide some interest capabiltiies as far as modeling and so on goes. Makes me want to go buy a bluetooth connector for my Mac. Driver also available for linux and Windows.

http://wiihacks.blogspot.com/2006/12/wii-mote-application-for-osx.html

OK, now I'm really impressed. Someone got it to work with Quartz Composer to control Google Earth. The sky is the limit with this durned thing. If all else failed, you could control Maya via wii-scripting, at least on a Mac.

http://blog.hiroaki.jp/2006/12/000434.html
http://developer.apple.com/graphicsimaging/quartz/quartzcomposer.html

morphometric
12-07-2006, 08:56 PM
Rob, this looks very interesting. Unfortunately I couldn't download the mel script on the Box Project site. Right now my main focus is on finding a good sensor, but I'm glad to know that there are people who have managed to make maya communicate with external devices. Can I get in touch with you when I actually have the sensor at my disposal?

Yes, by all means get in touch. I'm (slowly) building a resource, and tools, for using Maya in interactive installation-type scenarios. Here's the correct link for that old script:

http://www.morphometric.com/class/archive/2006spring/mel/lab/parseServerData.mel

Best,
Rob

CGTalk Moderation
12-07-2006, 08:56 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.