Load GLB gradually in Unity

I tried searching but can’t find it. There was a discussion at one point about the ability to have a glb load in unity with the no quick load feature. Will that ever be an option?
8 Replies
andybak
andybak9mo ago
Do you "load it slowly" similar to when you load a sketch in Open Brush itself?
karenV
karenV9mo ago
Yes . Where it loads in the order the strokes were painted
andybak
andybak9mo ago
Can you code at all? I can explain how to do it, but I don't have a ready-to-go script at the moment
karenV
karenV9mo ago
Yes I can code c# some Yes some c#
andybak
andybak9mo ago
Cool. By default the exported glb files have timestamp info stored in uv2.
andybak
andybak9mo ago
From: https://app.gitbook.com/o/-Mikdl01-6Jga6QTk0rK/s/-Mikdwm98p33AibfiSqN/user-guide/the-open-brush-config-file Timestamps are a vec3: x,y = the earliest/latest timestamp in the stroke which contains that vertex. z = the timestamp for that vertex.
GitBook
GitBook
andybak
andybak9mo ago
so InverseLerp(uv2.x, uv2.y, uv2.z) would give you a value between 0 and 1 for each vertex. And you can identify individual strokes (pretty much) if you group by uv2.x
karenV
karenV9mo ago
Awesome thanks!
Want results from more Discord servers?
Add your server