Comment 11 for bug 1571061

Revision history for this message
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.47, 0.48.5, 0.91 and latest trunk (on OS X 10.7.5).

AFAIU this is to be expected: SVG gradients for paint servers are stored in Inkscape with absolute coordinates/transformations - adjusting the position of the gradient stops for perspective rendering via extension scripts might be technically possible for linear gradients (though rather cumbersome), but the interpolation would still be linear (i.e. perspectively wrong). Radial gradients can't really be perspectively transformed in SVG 1.1 (maybe described/represented by offsetting the focal point to achieve a similar impression - I haven't investigated that particular aspect though).

To the best of my knowledge, the perspective extension script does not adjust the transformations of any particular style properties perspectively (be it e.g. gradients and patterns, or stroke widths and the length of individual stroke dashes) - it only recalculates the positions of nodes, and their handles.

In my understanding this report would be a feature request, similar to the one requesting to support gradients for the interpolate paths extension, the result though cannot be fully correct for perspective transformations due to limitations in the file format (SVG).