Hotrian / OpenVRTwitchChat

Put your favorite Twitch Chat directly into any OpenVR game!
Other
173 stars 50 forks source link

Add support for Twitch Emotes #1

Closed Hotrian closed 8 years ago

Hotrian commented 8 years ago

This is on the table, but not implemented yet. I need to add some material recycler that lets me load and unload emotes on the fly, because Twitch has so many damn emotes.

This is incoming, but there is no ETA.

Hotrian commented 8 years ago

Here's a little teaser towards that end.

img

Unfortunately, I seem to have run into a bug in Unity that causes crashing when adding more than two Quads to a TextMesh in a single frame and this will require further research and development.

Impending, but still no ETA.

Hotrian commented 8 years ago

Turns out I was wrong about the last problem (Unity just didn't like that I was building the quad string piece by piece, and for some reason broke reliably with the third quad after x=0 was pushed to the TextMesh.text):

img

But now there's a new one:

img

This is probably going to require a huge rewrite..

Hotrian commented 8 years ago

With 816f3bf2136e6edc8cbf94df2db03785bae15882 support for up to 7 unique emotes per line (and any number of those 7 uniques per line) now exists. There are still a number of bugs to work out, and it needs to be cleaned up quite a bit, but hey! Emotes are working in most cases :). I tested this on an extremely busy channel (>20k viewers) so it should work even when the users are spamming the chat like mad.

There seems to be some bug with setting TextMeshes with Quads really fast, but I haven't pinned down the exact cause yet.

Hotrian commented 8 years ago

I'm gonna close this for now since technically they are supported, but I'm opening #11 to address the bugs they introduce :)