[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Texture Tile Iterator
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2007-09-10 6:04:53
Message-ID: 200709100804.55674.boud () valdyas ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 10 September 2007 01:18, Tom Burdick wrote:
> When talking about using GLSL for filters its clear that there is a need to
> tile the image, with some padded region (convolution and such).
>
> Is there something in krita already that I can pass in a paintdevice and
> get back a texture iterator and reconstructor?
>
> So I want to:
> - iterate through a series of textures built from tiling the paintdevice.
> - create a new paint device and construct a new image based on the filtered
> textures I've rendered.
>
> Does this sound reasonable? Is there something in krita I can use already
> to do this or something to help doing it?

No, there's isn't anything ready-made. You also won't be able to use the 
actual data from the tiles themselves, because you need padding. The best 
thing you can do is write an iterator on top of KisPaintDevice::readBytes and 
writeBytes (or the separated channel version, if that's handier) and use 
that. That could be a pretty easy class to create.

-- 
Boudewijn Rempt 
http://www.valdyas.org/fading/index.cgi

[Attachment #5 (application/pgp-signature)]

_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic