Hello,
So far, I have only been able to scale/rotate/translate a pattern uniformly on an object.
However, what if I want to have the pattern mapped non-uniformly onto a shape?
I want to achieve something similar to regular OpenGL texture coordinates:
e.g. a square with texture coordinates like these:
0.0,0.0 1.0,0.0
0.0,1.0 0.5,1.0
To make it a little more concrete: imagine you draw a hilly terrain shape. You want the top soil of the terrain to always be brown, and the stuff below it always grey. Because the top of the soil is not always at the same y, a standard transformation can never do this.
Is there a construct similar to texture coordinates in inkscape?
With these, it would be possible to do any sort of mapping a pattern.
Thanks!
Bram
Non uniform transformations on patterns
Re: Non uniform transformations on patterns
I have no insight into non uniform transformations on pattern - nevertheless some thoughts and links:
- Inkscape is a SVG editor: you need to look up in the SVG specification if what you need is supported:
Scalable Vector Graphics (SVG) 1.1 Specification - Patterns - Filter Effects - I assume that you can achieve more with SVG filter effects than with patterns:
Inkscape 0.46 manual page on Filter Effects - Pixel Manipulation Filter Primitives
FLOSS manual page Introduction to SVG Filter Effects - this might be something completely different, but I'll add it anyway, maybe that site has more useful information about SVG and texture mapping: Perspective texture with 6 lines of SVG
Re: Non uniform transformations on patterns
Suv,
thanks for the suggestions.
The path effects 'Bend Path' and 'Pattern along path' are roughly doing what I need I guess.
However, those are not too stable at the moment. (using the jul2009 bld)
It's easy to freeze inkscape when editing a skeleton path.
Bram
thanks for the suggestions.
The path effects 'Bend Path' and 'Pattern along path' are roughly doing what I need I guess.
However, those are not too stable at the moment. (using the jul2009 bld)
It's easy to freeze inkscape when editing a skeleton path.
Bram
Re: Non uniform transformations on patterns
It seems I completely misread your intentions and wrongly shortened above paragraph to 'texture mapping' which didn't let me even think of LPEs. Sorry for the misleading answer!bram wrote:To make it a little more concrete: imagine you draw a hilly terrain shape. You want the top soil of the terrain to always be brown, and the stuff below it always grey. Because the top of the soil is not always at the same y, a standard transformation can never do this.
Is there a construct similar to texture coordinates in inkscape?
With these, it would be possible to do any sort of mapping a pattern.