- Home /
How to create a biological topography in Unity3D?
Hello and thank you for your interest,
I am currently working with an EMG sample in MATLAB and have realized I am probably better off working on Unity to get a topographical map for electrical impulses in a subject's arm. I have acquired EEG, and this is how our MATLAB software generates the topography (http://www.nature.com/nature/journal/v430/n6995/images/nature02663-f2.2.jpg)
As you may see in the image URL above, we have electrodes that generate this map, and we see that the y-axis position of the electrode is not represented in this image. The color variation in the 2D image is a spectrum which represents polarity in the impulse.
I wanted to generate a 3D arm model with a similar topographical representation. I have already acquired the mesh and have imported it as a prefab for my project.
I have about 64 Vector3(x,y,z) coordinates which represent channel locations on the arm (https://www.dropbox.com/s/ic2sn4v1uyy1fmk/listArmCh.doc). I was thinking to cast a ray normalized to the mesh surface from these points with a rgb value determines by their float value. I have all the RGB values I would assigns from the floats from -11.4 -> 11.4, up to one decimal place. (https://www.dropbox.com/s/8vepdopk7j46ttg/jetcolors.txt)
Inside this project I also plan on having a GUI, so that in the OnGUI() I can fetch the text files with these points. As well as some float f, | -10 < f < 10 from our data to represent the electrical polarity at that point. (This will be read through just another Text Asset)
So far with this I am not really having too many issues, but I do have some questions:
If you look at my channel data for the EMG, the points are all over the place, and I do not know how to align my mesh with this? (Basically what I am saying is that someone sat down and had this data recorded, but I want the arm model to bend at the elbow in such a way that satisfies the channel vector positions.
Also I am wondering how I will be assigning the color values. I know I should sort them in a Vector3[] array, but beyond this, I might need suggested guidance.
I appreciate all and any help, and apologize ahead of time if I made anything unclear. It is my first time asking a question. Also I still consider myself new to Unity. I am still figuring out libraries and functionality.**
Your answer
Follow this Question
Related Questions
Help - Selection System 1 Answer
Canvas UI - Get Pixel Colour from Image 0 Answers
How to get the distance between two objects in feet/meter? 1 Answer
2D Raycast in any direction 1 Answer