Archive for January, 2006

More fixes 0

Yet another release today. Refresh area is now ok when painting on a layer with an offset. Blending modes now apply correctly in special paint modes (eg. Stamp, Magic Brush). Layer Mask and Quickmask issues with the new paint method were fixed. Tablet pressure is now interpolated between steps (might be slower on some computers but wil givemuch smoother results). There are still issues with layers bigger than the document (cannot paint more than the size of document), I’ll fix this another day.

Stamp, Eraser and Magic Brush restored 0

I just found a few hours to restore functionality for the non-standard paint tools. They now work with the new ‘delayed pasting’ technique explained previously. So using the eraser at 20% opacity effectively does erase 20% during one single brush stroke. Same goes for other modes. It turns out this is indeed much faster, especially for magic brushes with blur filter where filtering over and over on the same area wasn’t a very smart move.

There is still a problem when painting on a layer with an offset, so try not to complain about it until I can find enough time to fix this. Have fun :-)

This new release is on the download page.

ChocoFlop is now horribly fast (on a fast machine) 0

Ok, so I did some rewriting of the final display steps. As explained in the previous post. This doesn’t make much difference on an iBook. Actually zooming is slower (on an iBook), because now it’s a Transform+Pixellation filter as opposed as being just a plain non-antialiased texture, but who cares, it’s still usable on the iBook or Mac mini and doesn’t make any difference on a good machine.

Now, on an accelerated machine (radeon 9550 or 9600+, ) it’s just not the same program. In filters can drag handles or sliders and everything moves quite fast (like in any other decent CoreImage app). Also when dragging layers around this is much faster, even on the iBook.

I am not adding this to the release page because I just noticed that other brush modes (eraser, magic brush, stamp) just don’t work anymore since I modified the brush painting part. I also noticed there are refresh problems when painting on a layer that has been moved (not on offset 0,0).

I won’t be able to fix this this week I am just uploading this just in case anyone wants to play with it on a new Core Duo machine and make me dribble :-)

On a side note this fixes problems with filters that previously bugged on large areas (deformations filters, including mine). Also this is the first release ever I could test on a huh, say, nearly-Apple X86 machine, so it’s definitely an universal binary. I’d love to hear comments from people with either a recent powerbook or imac with a good GPU.

Download it here.

ChocoFlop is horribly slow (on a powerful machine) 0

First of all: yes I am back. I started working on the project again last week. That doesn’t mean I can spend much time on it but at least I do spend some.

I have been rewriting entirely the paint stroke part. There were many problems with the previous ones. Most of all when painting at 10% every spot added another 10%. When someone selects 10% he wants it to be so. So I added a temporary layer of paint onto which you can paint which only gets ‘pasted’ on the image once you release the mouse/tablet pressure. This also gives much better results when using special paint modes (addition, multiply whatever). I also fixed crashes that happened when painting fast from one side to another (too many CoreImage filters killed my iBook, so I have to force applying the result every now and then).

So where’s the release you say? I am not going to release it right now for one reason: I had the occassion to test ChocoFlop on a CoreImage supported machine (well, not supported, but working… sorry) On a 3ghz intel with a 70$ 256mb radeon 9550 card: CoreImage just flies! It’s just like in the WWDC demo, blur filters happen at like 50 fps. Everything is instantaneous! That is amazing! Photoshop in Windows on this same machine looks like a dog compared to that (on small images that is). The downside? ChocoFlop itself sucks awfully on this machine, and probably any other with a decent GPU. It is hardly faster than my iBook from a visual point of view. Everything is so laggy compared to other apps… sigh :-(

Because my lowly iBook has an unsupported graphics card I have been quietly optimizing the app for the only mac I had access to. I was quite satisfied when comparing it to other apps. But the results is that I “break the pipeline” on every operation. The whole thing about CoreImage instant effects is that all operations get done in the GPU and you don’t have to go back and forth. That idea of rendering the CIFilters onto an OpenGL texture sounded good on my Ibook, but it’s just *horrible* on a Radeon9550 computer. And I don’t want to know what it’s like on an X850…

Funny thing is that originally my idea to render over an OpenGL texture (which requires flipping y on every update, and is rather slow) was that once this was done I could display in zoomed, pixellated modes very fast. Yay, ChocoFlop is the fastest zooming image manipulation app out there, but the goal is not to zoom in and out…

So I am going to rewrite the final part of the display model. Maybe I’ll keep the two different models for low and high end machines. Not sure how long it takes, but when it’s done my good old Choco is going to fly… huh.. even on powerful machines ? :-)