Re: [Gimp-developer] How to add a new stretch tool?

2006-04-26 Thread Sven Neumann
Hi,

Tom Lechner <[EMAIL PROTECTED]> writes:

> I desperately want a tool that can stretch a selection or layer in a  
> curvy sort of way on the main window, because I frequently want to  
> place images inside of other images in such a way that the  
> scale/rotate/perspective tools are not sufficient, nor are the curve  
> bend or image warp plugins. Speaking of the rotate/etc tools, when  
> shifting around, the thing is shifted as an opaque thing, rather than  
> with its actual transparency, which is very irritating (i've only used  
> the Gimp up to 2.2.11, maybe its different later?).

That's a limitation of the current preview code. There's a already bug
report for it but currently noone is working on this.

> So then, what is the easiest way to add a kind of transform tool
> that stretches the current selection based on a cubic tensor product
> patch?  I read a post somewhere in the archives that said it was
> mostly "easy" to add new tools. So what does "easy" entail? I've
> only spent an hour or two less'ing the gimp source, so I'm still not
> too sure yet what's what.

Have a look at the implementation of the existing transform
tools. That should give you an idea how to add a new one. I am not
sure though if your proposed tool will fit easily into the existing
transform tool framework.


Sven

___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] How to add a new stretch tool?

2006-04-26 Thread Alexander Rabtchevich
What I do see on the tutorial page is a potentially very nice 
spline-based gradient tool, as Adobe Illustrator has. ;)


--
With respect
Alexander Rabtchevich
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] How to add a new stretch tool?

2006-04-26 Thread Tom Lechner

Hi,

I desperately want a tool that can stretch a selection or layer in a  
curvy sort of way on the main window, because I frequently want to  
place images inside of other images in such a way that the  
scale/rotate/perspective tools are not sufficient, nor are the curve  
bend or image warp plugins. Speaking of the rotate/etc tools, when  
shifting around, the thing is shifted as an opaque thing, rather than  
with its actual transparency, which is very irritating (i've only used  
the Gimp up to 2.2.11, maybe its different later?).


So then, what is the easiest way to add a kind of transform tool that  
stretches the current selection based on a cubic tensor product patch?  
I read a post somewhere in the archives that said it was mostly "easy"  
to add new tools. So what does "easy" entail? I've only spent an hour  
or two less'ing the gimp source, so I'm still not too sure yet what's  
what. Is there any one else remotely working on such a thing?


I have already implemented something of the kind in a (somewhat rough  
and unpolished) program called Laidout that involves subdivideable  
patches, of which you can see screenshots here:

http://www.laidout.org/shots/screenshots.html

I envision a dialog something along the lines of this mock up:
http://www.laidout.org/temp.png

My actual rendering routine is currently a major hack to get it off the  
ground, and is totally inefficient. It really needs coding from someone  
who actually knows something about rasterizing cubic tensor product  
patches.



Tom
http://www.laidout.org
http://www.tomlechner.com


___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer