Users browsing this thread: 8 Guest(s)
Palette changer tools?
#31
Just tried to recolour a few sprites, but then I got this:
[Image: iyUO1YfCSxKtK.png]
[Image: iYcpYvjbZJFFc.png]

Edit: It seems like they have to be exactly in the same spot within the boxes. I actually managed it to recolour one single sprite, but the rest of the animation has still the old palette.
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by:
#32
Yep, since it compares the relative pixel positions, the frames should be at the same position inside the box. It's best to align the top and left with the sprite's pixels (you can use the zoom for better precision).
The one single correct sprite there results from the oridinal source frame (pink) being copied ovet to the destination frame's position (blue) after recolouring.


While it would be possible to add frame recognition, it's require a lot of work and would probably be rather slow (due to checking many pixels) aaand I don't really have the time at the moment :<
Thanked by:
#33
Ok, but I've tried to recolour a whole sheet and the only thing it does is switching the colours between these two sprites. The other sprites on the sheet remain unaffected. Did I overlook something or is it supposed to be like this?
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by:
#34
The pink one is the original colour you want to get rid of, blue is the new colour. Then it should replace all colours found in the pink one with those of the blue frame on the whole sheet. Colours not found in the source frame will remain unchanged.
Thanked by:
#35
Just wondering, can you not just open the sheet in mspaint and then use the reverse eraser trick with an extremely large brush size...? That always works for me.
[Image: ndsMEF0.gif][Image: sig.gif]
Thanked by:
#36
Palettifier 1.2 Nerd

After failing horribly at my own attempt, it appears AS3 has a function that can automatically shrink the rectangle to fit around the sprite, and extremely quickly and efficiently too. This should make it much easier to select the frames.
By the way, it recognizes the background colour (i.e. the colour to ignore) by getting the dominant colour of the sheet. This should work with most sheets, but if it's a problem please say so.

Other than that I've added a few other things. You can now drag rectangles in any direction, previously you could only drag it from the top-left (this was surprisingly difficult to get working), added border colours like Recolour, plus a few minor changes.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Thanked by: Previous, Garamonde, Kami
#37
(09-15-2012, 02:32 PM)puggsoy Wrote: After failing horribly at my own attempt, it appears AS3 has a function that can automatically shrink the rectangle to fit around the sprite, and extremely quickly and efficiently too.

. . .

Cheater



Version 1.3.1 of Recolour has an auto-fit option which will reduce the size of the source selection and position the destination selection. For source, you should draw the rectangle around it, afterwards, just clicking on the destination frame (with Shift held down) should suffice to place the rectangle properly around it.

I may work on a simple just-click-anywhere-on-the-frame another day.
Thanked by: Garamonde, puggsoy
#38
(09-15-2012, 04:21 PM)Previous Wrote: afterwards, just clicking on the destination frame (with Shift held down) should suffice to place the rectangle properly around it.

rageface.jpg

Although I wonder why you made auto-resizing an option. I mean it's not bad or anything but when would somebody not want it?

also it isn't cheating it's called using a good language
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Thanked by:
#39
(09-15-2012, 04:55 PM)puggsoy Wrote: Although I wonder why you made auto-resizing an option. I mean it's not bad or anything but when would somebody not want it?

also it isn't cheating it's called using a good language
Because I have something else on mind I will do later (this here was just a quick thingus) but currently, DIG demands some care and attention.

Don't get me started on "good" languages. Don't. Either way, you're the one missing out on fun Tongue
Thanked by: Kami, Garamonde
#40
I'm sorry puggsoy but

Thanked by: puggsoy, Garamonde
#41
uyiagddjs
fbhjjdafkjadh

Jeez now my program's totally obsolete. I don't even know if I would be able to do that, checking for the borders from within the sprite is a totally different deal. I might give it a go (along with the choosable backgrounds) although if I ever manage it you'll probably override it with something even cooler.

At least you finally had the sense to add some shortcuts though Wink
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Thanked by: Garamonde
#42
I've... been having shortcuts since forever?



This is how I do it:

Start with minimal X and maximalX equal to clicked X, minimal Y and maximal Y equal to clicked Y.

Until a turn passes without any size change,
- assume no changes will occur
- Iterare over the current width (minimal X to maximal X),
-- check each column up and down if the next pixel is of the background colour - if not, adjust minimal and maximal Y values (take a note that a change occured)
- Iterare over the current height (minimal Y to maximal Y),
-- check each row left and right if the next pixel is of the background colour - if not, adjust minimal and maximal X values (take a note that a change occured)

Hope this helps?
Thanked by:
#43
Yeah I figured that's how it'd go, I'm just not sure how quick it is in AS3. Either way it's more complicated than last time Tongue I will give it a go though, maybe I think up something even better along the way.

(09-16-2012, 08:58 AM)Previous Wrote: I've... been having shortcuts since forever?

Ah OK, nah just because you mentioned them just now I thought you didn't have them yet.
You may have a fresh start any moment you choose, for this thing that we call "failure" is not the falling down, but the staying down. -Mary Pickford
Thanked by:
#44
Since I mentioned the (new (since that part didn't exist before)) [1] to [4] shortcuts, I thought I'd list the other ones, too, just to make sure they're known. >:I
Thanked by: puggsoy, Garamonde
#45
Oh my god I just tried it on some Terranigma NPCs, it works so well and is so easy to use, it's just awesome =D

Many many thanks =)
[Image: dariC.png][Image: tumblr_mlf109xOe81rmu6i5o1_250.gif][Image: b0KxM.gif]
Thanked by: puggsoy


Forum Jump: