unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

Multiple undos #7

Closed unitycoder closed 8 years ago

unitycoder commented 8 years ago

Currently only 1 undo step is possible, because all drawing is applied to the texture directly. More undo steps would require saving multiple copies of the whole texture (or atleast parts of it)

fad12 commented 8 years ago

have u manage to figure this out cuz im trying to solve it with no luck

unitycoder commented 8 years ago

I have one version using that list of buffers.. havent tried on mobile, i can email you this version if want to try..? mobile_paint_multiple_undos

fad12 commented 8 years ago

that will be awesome I can test it on different devices

unitycoder commented 8 years ago

sent.

fad12 commented 8 years ago

i tested it on :

note : for android i'm not so sure it is lagging cuz of undo or some stuff need to be optimized in my code

unitycoder commented 8 years ago

On androids it does get slow if you use full screen resolution, like 2048×1536, that is huge texture to update.. (using resolution scaler like 0.5 or 0.25 helps alot, then can add post effect to camera for extra antialias to smoothen it)

i'm looking into adding option to split canvas to smaller pieces which should fix it, but makes flood fills, patterns paints etc. bit difficult to handle..

fad12 commented 8 years ago

one thing I'm trying to make the user get list of the colors he used to color his room walls i can just record the selected colors but if the user erased the color then it should not be in the list do u have i a way to do it without effect the performance and read the pixels colors again.

unitycoder commented 8 years ago

multiple undos, using list of undo buffer arrays is in v1.96

ChambersChiu commented 8 years ago

can you send me multi undo to me ?

unitycoder commented 8 years ago

its available in the asset store (v1.96)