Inochi2D / inochi2d

Inochi2D reference implementation aimed at rendering 2D puppets that can be animated in real-time (using eg. facial capture).
BSD 2-Clause "Simplified" License
1.26k stars 47 forks source link

Implement better mask delegation #5

Closed LunaTheFoxgirl closed 1 year ago

LunaTheFoxgirl commented 3 years ago

Each Drawable node should have a randomly generated ID on creation time/load time which is used for mask delegation that allows the rendering system to reuse masks where appropriate,

Reusing masks would save a lot of wasted processing on reapplying the same mask over again for stuff like eyes; Since Parts can be masked by multiple masks there also needs to be a system to verify whether reusing a mask is realistic; that or scrap multi-masks.