Possibility of OR in unity free...
So, as my project states, I'm trying to work on making a VR glove/arm to add to the immersive experience of the OR. Unity had an issue, and any time I would try to read data from the system.io.ports, it would hard crash to the desktop without any errors being thrown. I'm guessing this is an issue with monodevelop not unity.
Either way, I had to figure out a way to get the serial port data I wanted into unity. The answer? Using pipes. Pipes are a form of interprocess communication. Think of it as a network connection, but from one program to another, instead of one computer to another. You still send stuff as a buffer in bytes even.
Anyway, my brother and I got this working in unity free last night. With it we can send any form of byte data directly to unity in effectively real time. This means that theoretically someone could write a wrapper for the standard C/C++/Whatever to where c# can get the data directly, and then just send it to unity.
I'll be working on this further to get it running for my vr glove thing, but I can post the code if anyone is interested. I'll probably end up making it run as a background service, so no window pops up, so no one would be the wiser as to it running on the system.
I'll update everyone as it comes together (the glove thing, which will include this program) if anyone shows any interest. The only downfall is it may cause a few ms of lag (read data in one program, send to other, other read data, data is applied.) but we'll see I guess. I don't have my oculus yet (and probably won't for a month or so), so I can't test that part out right now.
That's all, Good day!
Either way, I had to figure out a way to get the serial port data I wanted into unity. The answer? Using pipes. Pipes are a form of interprocess communication. Think of it as a network connection, but from one program to another, instead of one computer to another. You still send stuff as a buffer in bytes even.
Anyway, my brother and I got this working in unity free last night. With it we can send any form of byte data directly to unity in effectively real time. This means that theoretically someone could write a wrapper for the standard C/C++/Whatever to where c# can get the data directly, and then just send it to unity.
I'll be working on this further to get it running for my vr glove thing, but I can post the code if anyone is interested. I'll probably end up making it run as a background service, so no window pops up, so no one would be the wiser as to it running on the system.
I'll update everyone as it comes together (the glove thing, which will include this program) if anyone shows any interest. The only downfall is it may cause a few ms of lag (read data in one program, send to other, other read data, data is applied.) but we'll see I guess. I don't have my oculus yet (and probably won't for a month or so), so I can't test that part out right now.
That's all, Good day!
