perspective sometimes works, sometimes not, why?

Post questions on how to use or achieve an effect in Inkscape.
User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

perspective sometimes works, sometimes not, why?

Postby brynn » Wed Oct 17, 2012 12:17 pm

Hi Friends,
Aaaarrggh!! This Perspective extension is giving me fits, and I can't for the life of me figure out what's going wrong. The quadrilateral path is made properly. I'm selecting the object first and the quadrilateral path 2nd. Every now and then, I get a correct result, where the result fits perfectly inside the quadrilateral path. But most of the time I get the result like you see in the attached file.

Note that I have everything in a new 2nd layer, to prevent any potential problems from my landscape oriented custom default doc (transform attribute related bug). The object is a compound path with 3 subpaths. In another recent topic, I learned to remove the stroke (and add a fill) to make the new paths fit precisely (rather than slightly inset) so that's why my result is filled with no stroke. But the extension isn't working either way right now.

At first, I was using the actual face of a 3D box. But then I realized it was going in the wrong direction. So the quad. path in the file is drawn fresh (I've redrawn it several times). Hmm...let me draw the main object fresh.... :o It worked! Wow!

Can anyone figure out what's going wrong with the old path and what's going right with the new one?

I looked in the XML Editor, and I see that the old object has an attribute that the new one doesn't have. inkscape:connector-curvature (value = 0) Is that what's causing the problem, and if so, why? I actually pasted both the object and the quadrilateral path from another doc. So did that attribute get there as a result of the paste? Or maybe it got there by applying the extension and then undoing? Could that prevent it from working the next time?

Is it even possible to figure out what's causing the problem? And if so, can anyone figure it out?

Thank you very much :D

PS -- There must be a place to look up what each attribute does or is responsible for? Errrr....well, let me do some searching. If I can't find anything, I'll ask for a tip ;) Thanks again :D

Edit
persp issue 2.svg
(8.11 KiB) Downloaded 217 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: perspective sometimes works, sometimes not, why?

Postby brynn » Sun Oct 28, 2012 11:57 pm

No comments?
Even though I seem to have solved the problem (for now) I don't know why drawing the object fresh made it work. Since I've had this problem from time to time, and continue to have it, I'd like to know what I've been doing that causes it. Then I wouldn't have to redraw the object, because I could avoid causing it in the first place. While I usually use the extension on relatively simple objects, it could be really frustrating to have to draw a more complex object over and over again.

Any ideas?

Also, I found some info about SVG attributes (and XML attributes), but none specifically for attributes used in Inkscape. Or well, actually, I found a list of those used in Inkscape, but it didn't explain what they do or mean. Does anyone know where I can find what the SVG attributes, that are used in Inkscape, do or mean?

(Maybe that connector:curvature thing has nothing to do with the problem where the perspective extension doesn't work. But I didn't find that attribute at all.)

Thanks again :D

Jelle
Posts: 78
Joined: Sat Nov 06, 2010 11:25 am

Re: perspective sometimes works, sometimes not, why?

Postby Jelle » Mon Oct 29, 2012 3:42 am

Hello Brynn,

I couldn't find anything obvious in the code. I only noticed a difference in the amount of nodes in both objects when giving them mid markers. Maybe that rings a bell to you?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: perspective sometimes works, sometimes not, why?

Postby brynn » Mon Oct 29, 2012 7:41 am

Thanks Jelle :D

Well I honestly am completely confused now. When I first posted this, the "old" object would give the wrong (green) result (in the attached file). I mean, the green object IS the result of using the perspective extension on the object labelled "old"! And I tried at least 6 times and probably more like 10 or 12 times, and got the same result as the green, each time. After I drew the object again (labelled "new") the extension worked perfectly.

But after Jelle's comment, I started re-testing. Well NOW when I use the "old" object, and the same red quad. path it gives the correct result. So I guess there's no difference to be found in that file anymore. So I guess there's no need for anyone else to investigate. I just don't know what could have been happening. I have NOT edited the file or uploaded a different one. That's the same one I put up originally. One day it doesn't work, one day it does. I'm thoroughly baffled :!:

SIGH!!! Well, I guess I'll try to make another test file, the next time I run into this.

Thanks for reading anyway :D


Return to “Help with using Inkscape”