Emotiv Demo

Emotiv Unity3D Demo Package

The emotiv Demo package is a package to be used in Unity3D. This demo allows you to fully integrate your emotiv with unity3D as long as you use the Reh@panel tool.

Developed by: Tatiana Vieira, Yuri Almeida

Importing the package

  1. Create a new project
  2. Import the package EmotivDemo.unitypackage
    1. Assets -> Import package -> Custom Package

Requirements to use the package

  1. Make sure you have the Emotiv SDK installed
  2. Plug in your Emotiv to the PC
  3. Make sure that it is sending information by UDP to port 1202 (To change this port see below).
    1. You can use the Reh@panel to do this – Download Link here

Testing the scene

  1. Open the Scene
    1. Neurehab -> Demo Emotiv-> Scenes -> EmotivDemo
  2. Make sure you fulfill all the requirements
  3. Press Play
The data is accessed through the EmotivUnity.cs script. If you open this script, in the UpdateGuiValues function you will notice that the Emotiv prefab values are updated there.  
private void UpdateGuiValues()
{
BarLongTermExc.fillAmount = GenericDeviceData.GetFloat(emotiv.longtermexcitement.ToString()) /
GenericDeviceData.GetFloat("max_" + emotiv.longtermexcitement);
...
}

Media