05-18-2017 10:33 PM
OvrAvatarPacket packet = args.Packet;
OvrAvatarDriver.PoseFrame frame = packet.FinalFrame;
using (MemoryStream newoutput = new MemoryStream())
{
BinaryWriter writerb = new BinaryWriter(newoutput);
writerb.Write(new TransportFrame(frame));
byte[] pose = newoutput.ToArray();
latestposition = pose;
}
TransportFrame in this example being a heavily lightweight class and i was doing position lerping on clients. 05-28-2017 08:19 PM
05-29-2017 01:29 AM
dsedov said:
I would love to have access to C# state of the avatar frame so that I can send the data as frequent as I want using my own compression. Basically having a "Frame" object that can be extracted and applied to the avatar will do greatly. Maybe some tools for interpolations as well. Right now the lag is very visible even on the local network.