> I seem to remember seeing the stroke info saved to file. It saves the strokemap only -- that is, each brush used paired with a 1bit bitmap indicating coverage. This is enough to enable brush picking, but includes no direct stroke info.
On Thu, Mar 7, 2013 at 12:28 PM, Micael <[email protected]> wrote: > This is interesting. > > Last time I checked the .ora file (it's just a zip file, so you can > see it yourself), I seem to remember seeing the stroke info saved to > file. If true, this means that "vectorized" data is already saved. > > I also believe the main problem would be performance, but only when > changing zoom levels or panning, since this would be what triggers a > "Render Tile" operation. Cache techniques could be used. With some > work, it could be possible to enable painting while still rendering > tiles on low priority threads to avoid stuttering while painting. > > I'm not sure this would be simple at all, even though it may seem like > it at first sight... > > - You'll have to somehow get a list of only the interesting strokes > for the current canvas view, otherwise each time you zoom in / pan, it > will be VERY slow on complex paintings > - You'll also have to deal with bitmaps for .ora files that don't have > mypaint-specific vector info > - If the brush behaviour changes in mypaint, an ORA file will look > different when re-rendering > - You'll have to make sure the brushlib behaviour is deterministic > > -- > Micael Dias > > _______________________________________________ > Mypaint-discuss mailing list > [email protected] > https://mail.gna.org/listinfo/mypaint-discuss >
_______________________________________________ Mypaint-discuss mailing list [email protected] https://mail.gna.org/listinfo/mypaint-discuss
