3d box bug? - can't move box after changing page orientation

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:

3d box bug? - can't move box after changing page orientation

Postby brynn » Fri Jul 02, 2010 6:22 am

Hi Friends,
I was just playing around with a 3d box. I'm able to edit the box at will, until I change Doc Prop > Page Orientation from the default Portrait to Landscape. At the moment Landscape is clicked, the page border changes (as expected) and the 3d box jumps to this point -- X: 453.00, Y: 699.421. When I try to move the box, it snaps back to that exact point, every time. If I switch back to Portait, the problem persists. The box always snaps to that exact point, every time.

Now I've just opened a fresh doc, created a 3d box with different dimensions. Again, I can move it around anywhere, successfully, as long as I remain in the default Portrait orientation. But if I switch to Landscape, the box jumps to -- X: 171.00, Y: 645.974. Again, it snaps back to that point exactly, every time I try to move it. And again, switching back to Portrait does not resolve the problem. It still snaps to that exact place every time I try to move it.

Now another fresh new doc. This time, changing to Landscape orientation before drawing the box. No problems, box moves without snapping away. Switch to Portait, no problems, box moves anywhere without snapping away. So this is clearly a good workaround, if the problem has not already been fixed in the development version.

I'm using Inkscape v 0.47, last stable release on Windows 7 laptop (64-bit). I searched Launchpad and found some similar issues, but none exactly like this. Here are the similar ones (or at least they appear similar in certain ways, to me):
https://bugs.launchpad.net/inkscape/+bug/187668
https://bugs.launchpad.net/inkscape/+bug/400982
There may be others that I didn't find because I only searched with the Launchpad engine, not Google.

So is this a bug? Should I report it? Or has it already been fixed in development version? OR am I missing something about using Inkscape, somewhere. Here, let me upload the SVGs for you.

learnInkscape1.svg
original problem
(5.24 KiB) Downloaded 189 times

learnInkscape2.svg
simple duplicate of problem
(4.5 KiB) Downloaded 188 times

learnInkscape3.svg
workaround (change orientation b4 drawing 3d box)
(4.54 KiB) Downloaded 245 times


Ok, new problem, possibly related. After I saved those 3 files, and before uploading, I closed 2 and 3 (leaving the original open to continue working). Then I had an afterthought and wanted to check on something, so I opened them again. On the file containing the 3d box that can't be permanently moved (#2), the box is invisible! In the Open dialog, in the list of files that I might open, the boxes are visible, but after I click on the file to choose it, the Preview shows the box invisible (or iow the box doesn't show up). And after I open it, the boxes are invisible. I have not used layers, or even applied any color, much less opacity. These are very basic files. If I click Edit menu > Select All, the info area says "3D box in layer Layer 1" but I don't see it, not even the selection box. I opened the Fill and Stroke dialog to see if somehow the opacity had been changed, but it shows 100% opacity! Layer also 100%!

But on the 3rd file, containing the box that can be moved around without being snapped away, the box is visible. So I'm not sure how you can actually see the boxes, but the files are there for you :roll:

Thanks for any help you might offer. For now, I can just use the workaround of changing the orientation before I draw the box. So not a huge problem. But still possible a bug (or 2). Thanks again :D

Edit: Went back to the original file, and thought I would copy the 3d box into a new doc with orientation already set to Landscape, rather than draw it again. Copy and paste. Even though the box is still visible in the original file (that was never closed), the pasted box is invisible, not even the selection box can be seen, but again, the info area says "3D box in layer Layer 1". How weird is that? Oh well, I guess I'll just draw the box again then :roll: But I expect if/when I close this original file, when I reopen it, the box will be invisible. Anyway, just some more info.

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: 3d box bug? - can't move box after changing page orientation

Postby Kjohrf » Sat Jul 03, 2010 1:22 am

This sounds like another manifestation of the transform bug I run into all the time. I think I even hit this on the 3D tool a few months ago.

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

Re: 3d box bug? - can't move box after changing page orientation

Postby brynn » Sat Jul 03, 2010 7:07 am

Is changing page orientation considered a transform? I thought transformation was limited to objects being manipulated (or paths or whatever). I've had many issues with various transformations, I just didn't think page orientation was a transformation.

So is it a nebulous sort of bug, that hasn't been fully described, or recognized? Or is it a well known sort of thing, that just hasn't been (or can't be) fixed yet? Can you link me to the bug?

User avatar
Kjohrf
Posts: 170
Joined: Tue Oct 27, 2009 11:42 am
Location: US
Contact:

Re: 3d box bug? - can't move box after changing page orientation

Postby Kjohrf » Sat Jul 03, 2010 1:42 pm

When I change the orientation and then look at the XML Editor, the layer shows a transform after I change the orientation.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: 3d box bug? - can't move box after changing page orientation

Postby ~suv » Sat Jul 03, 2010 5:12 pm

I have tried this:
  1. reproduce the problem following your description, using Inkscape 0.47
  2. open each of your attached file in Inkscape 0.47 and move/edit/add 3d boxes

I cannot reproduce the behavior (3dbox jumps and can't be moved (using the select tool or the 3dbox tool?)) after changing the page orientation). learnInkscape3.svg also behaves normally - I can move the 3dbox with the selection tool, I can edit it with the 3d-box tool, I can add new boxes.

I can confirm that your files 'learnInkscape[1,2].svg' do have a corrupt 3D perspective definition and new boxes are not visible nor selectable even if they appear to be (or have been) created and stored in the file:

Code: Select all

  <defs
     id="defs2834">
    <inkscape:perspective
       sodipodi:type="inkscape:persp3d"
       inkscape:vp_x="NaN : NaN : 1"
       inkscape:vp_y="NaN : NaN : 0"
       inkscape:vp_z="NaN : NaN : 1"
       inkscape:persp3d-origin="NaN : NaN : 1"
       id="perspective2840" />
  </defs>

You see this indicated when you switch to the 3dbox tool and look at the values for the angle of the VPs on the 3dbox controls bar: 'nan' instead of '90' or similar e.g. for 'Angle Y'. I have no idea how to reproduce this - the key might be in
brynn wrote:I was just playing around with a 3d box.
do you remember what steps you actually did?

brynn wrote:So is this a bug? Should I report it? Or has it already been fixed in development version?

Both reports you linked to have been marked 'Fixed' by the developer of the 3dbox tool. Max also noted in his comment: «Any further issues should be reported in a new bug report.»

At this stage of the development, I think that similar or re-occuring issues with 3dboxes would best be verified or tested with a current prerelease build if they still happen, before filing a new bug, especially because the next release is close and many things have been changed since the release of 0.47 (but 3dboxes still have issues, some old, some new).

Can you reproduce your described issue in new drawings? And maybe - if you have the prerelease 7z verison installed too - with 0.48pre1 as well?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: 3d box bug? - can't move box after changing page orientation

Postby ~suv » Sat Jul 03, 2010 5:18 pm

brynn wrote:Went back to the original file, and thought I would copy the 3d box into a new doc with orientation already set to Landscape, rather than draw it again. Copy and paste. Even though the box is still visible in the original file (that was never closed), the pasted box is invisible, not even the selection box can be seen, but again, the info area says "3D box in layer Layer 1".

Copying a 3dbox includes the associated perspective definition (location of the vanishing points, angle of the axes etc.), otherwise you'd loose the ability to edit the copy&pasted 3d box again with the 3d box tool. AFAIU if that information is corrupted, copy&paste can't 'fix' it and will still expose the same issues.


Return to “Help with using Inkscape”