Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by ahmadsoomro · Mar 28, 2013 at 04:38 AM · raycastcolormath

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.**

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

How to find out if raycast dont hit anything 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges