Search found 2 matches

by Kopsi
Wed Jun 13, 2018 5:01 am
Forum: OptiTrack Data Streaming
Topic: Streaming Individual Markers
Replies: 24
Views: 14977

Re: Streaming Individual Markers

Okay, I found a solution, that works for me; code below. The problem was, that the marshalling expected a double or an int value array, but was given a float array. So I changed the arraytype of vec to double and later typecasted them to float for the Vector3 position. However, I would still get the...
by Kopsi
Wed Jun 06, 2018 5:25 am
Forum: OptiTrack Data Streaming
Topic: Streaming Individual Markers
Replies: 24
Views: 14977

Re: Streaming Individual Markers

So I had the same problem as you guys and I was able to figure out what caused it. By getting rid of this line, I didn't get any further errors: [...] float[] vec = new float[3 * frame.OtherMarkerCount]; //TODO: Fix this line! //System.Runtime.InteropServices.Marshal.Copy(frame.OtherMarkers, vec, 0,...