Perspective + gradient problem

Post questions on how to use or achieve an effect in Inkscape.
mvviktor
Posts: 3
Joined: Fri Jun 12, 2009 10:57 pm

Perspective + gradient problem

Postby mvviktor » Fri Jun 12, 2009 11:48 pm

In Inkscape 0.46 the perspective effect doesn’t work as expected. I don’t know why, but the gradients are not transformed with the paths, so I have to readjust the gradients after applying the perspective effect. This is very frustrating when working with complex artwork. I checked it on Windows XP and Ubuntu Hardy as well, the result was the same, the gradient stays at its original location. I have the transform gradients option checked in Inkscape preferences. Any suggestions how to do perspective on paths with gradients properly?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Perspective + gradient problem

Postby microUgly » Sat Jun 13, 2009 2:34 pm

A gradient can't be distorted because it's represented by a single line (a envelope distort on a line will result in a line--perhaps shorter or longer). But you've said that you can manually adjust the gradient to get what you want, so what sort of adjustments are you doing that you think envelope distort should do for you?

Note that it doesn't surprise me that envelop distortion doesn't currently effect the fill--I imagine it could be extremely tricky to distort a pattern fill.

mvviktor
Posts: 3
Joined: Fri Jun 12, 2009 10:57 pm

Re: Perspective + gradient problem

Postby mvviktor » Mon Jun 15, 2009 6:38 pm

When I apply the perspective effect the selected paths are moved and resized into the frame of the envelope, while the related gradients stay intact. So I have to move all the gradients to the new position, resize and rotate them depending on the form of the envelope (e.g. if I had a rectangle with a linear gradient reaching from the upper left corner to the lower right corner, then I have to readjust the gradient to match the new corners after the perspective effect). What surprised me is that for others it seems to work, see this screencast: http://screencasters.heathenx.org/episode-037

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: Perspective + gradient problem

Postby heathenx » Mon Jun 15, 2009 11:05 pm

I think I understand your issue. One of the things I have to point out is when I made that screencast I was using version 0.45. Version 0.46 has different behavior. Regardless if I have the move gradients option selected, after I apply the perspective effect I lose my gradient position as well. So basically I'm in the same boat. I have to move the gradient stops back onto the object. Either this is a minor bug or intended functionality with a rather hidden setting somewhere. I'm using Ubuntu 9.04.

My current SVN version of Inkscape (r21449, soon to be 0.47) does not exhibit this behavior. It works just like the screencast. I'm a little confused about this. I'm back to wondering if this is a bug in 0.46 or a feature setting. Hmm...

mvviktor
Posts: 3
Joined: Fri Jun 12, 2009 10:57 pm

Re: Perspective + gradient problem

Postby mvviktor » Tue Jun 16, 2009 10:57 pm

Well, things are getting quite interesting. I checked out revision 21449 from SVN, compiled and installed it. So basically we are on the very same version of Inkscape now. However I still experience the same behaviour, the gradients do not move with perspective. Maybe the problem lies in one of the dependencies and not in Inkscape source code. I'm using Ubuntu 8.04.


Return to “Help with using Inkscape”