-
Notifications
You must be signed in to change notification settings - Fork 47
Home
Labstreaminglayeris a data acquisition and synchronization framework for distributed systems with focus on reliability, near-realtime access and time-synchronization. Developed and maintained by Christian A. Kothe at Swartz Center for Computational Neuroscience, University of California San Diego, it's primarily used for scientific experiments in the domain of eeg-based neuroscience and brain-computer-interface research.
For Details on LSL please see the Google code page (maybe deprecated), the GitHub repository or the excellent introduction on Youtube. Youtube
Due to requirements of Virtual Reality supported Neuroscience this repository provides a first implementation of LSL for the Unity3D Game Engine.
To use the Marker Stream just attach the LSLMarkerStream script to a GameObject and use it from one of your scripts.
using Assets.LSL4Unity.Scripts; // reference the namespace to get access to all classes
public class ElementWritingMarker: MonoBehaviour
{
private LSLMarkerStream marker;
void Start()
{
renderer = GetComponent<MeshRenderer>();
marker = FindObjectOfType<LSLMarkerStream>();
}
public void OnCollisionEnter(Collision collision)
{
marker.Write("Collision on " + this.name);
}
}