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
Do you "load it slowly" similar to when you load a sketch in Open Brush itself?
Yes . Where it loads in the order the strokes were painted
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
Yes I can code c# some
Yes some c#
Cool. By default the exported glb files have timestamp info stored in uv2.
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
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
Awesome thanks!