InteractiveScapeGmbH / TuioNet

MIT License
7 stars 1 forks source link

Some properties of TUIO Objects and Cursors are missing data. #11

Open sathish-mountvisual opened 1 year ago

sathish-mountvisual commented 1 year ago

In both Tuio 1.1 and 2.0, objects and cursors are not returning data for a few properties.

TuioContainer misses data in Velocity, Speed, Acceleration, RotationSpeed, and RotationAcceleration properties.

TuioCursor misses data in Pressure, PressureSpeed, PressureAcceleration, Shear, and TypeUserId properties.

Note: Some properties I mentioned here are only in TUIO 2.0.

I see that the above-mentioned data is calculated in the Tuio Server running in the Capore API Box and is being sent to the TUIO clients. Looking at the code, I infer that the TUIO client is not receiving the data.

Also, I would like to know if pressure is supported by Interactive Scape displays.

eqbic commented 1 year ago

Hey @sathish-mountvisual I fixed the missing properties for Tuio 1.1. there was a bug in the time calculation. For Tuio 2.0 it is not working yet properly. Could you test it for Tuio 1.1 with this branch here? Thank you

sathish-mountvisual commented 1 year ago

@eqbic, I tested your branch.

All the Tuio11 property values that I get are perfect.

It would be nice if you could also fix the Tuio 2.0 properties. Any time estimate on that?

sathish-mountvisual commented 1 year ago

And it would be a good idea to set the calculated properties like Velocity, Speed, Acceleration, etc to zero when the object is removed.

If not, then the Tuio11 data that's passed on through OnRemoved() will have values from the previous frame.

sathish-mountvisual commented 1 year ago
image

I noticed an issue in Tuio11Object.

dt calculation uses StartTime instead of CurrentTime.

sathish-mountvisual commented 1 year ago

Regarding the TuioState, I see the "Idle" state is not used at all.