MrBrouchet: Sketch #30 - Fireworks

New polish pass, with added text at the end :sweat_smile:
The fun thing is that the text is directly editable in engine since it’s Text sampling, it’s not mesh based at all but directly sampling string values:


I created a SpawnOnText template that just takes in a text and a character count, and spawns particles on top on this text:

Basically, it works in two steps.
First, sample the text data (strings) which will output a 8-bit ASCII code. Each returned integer of this code represents a character in the ASCII table, for example the character “H” is number 72.
From there, there is remapping to convert this into a atlas ID that corresponds to the letter in this texture:

So we just matched letters from a string data to a subUV inside a texture, so for second step we can just directly sample this texture to spawn our particles where text is showing:

5 Likes