[Opensim-dev] Linden Lab moving glTF material overrides to UDP

John Nagle nagle at animats.com
Fri Sep 22 01:37:45 UTC 2023


Change to the Second Life network protocol that affects glTF materials.

Repository: https://github.com/secondlife/viewer/

Branch: DRTVWR-559

Commit:

https://github.com/secondlife/viewer/commit/455bbcf742691b709353aa3c3e35a76d0ff38ee4

Change to message_template.msg: added:


// GenericStreamingMessage
// Optimized generic message for streaming arbitrary data to viewer
// Avoid payloads over 7KB (8KB ceiling)
// Method -- magic number indicating method to use to decode payload:
//      0x4175 - GLTF material override data
// Payload -- data to be decoded
{
     GenericStreamingMessage High 31 Trusted Unencoded
     {
         MethodData Single
         { Method    U16 }
     }

     {
         DataBlock Single
         { Data Variable 2 }
     }
}

I think this is the same info as before, but the data comes in over
UDP instead of as an event poll, and it's raw glTF (I think) instead
of being glTF inside Notation LLSD inside of XML LLSD.

Every time somebody changes the color of a glTF material from a script,
a message like this is needed. So there can be a lot of these if someone
is changing stuff too fast.

This solves some sanity problems around old-style material info coming
in via UDP and new glTF material info coming in via the event poller.
Also, less parsing.

				John Nagle

				Animats Resident (SL)
				Joe Magarac (OSgrid)





More information about the Opensim-dev mailing list