Welcome to TalkGraphics.com
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jan 2001
    Location
    East Sussex, England
    Posts
    2,021

    Default

    Your right it appears to work sometimes - perhaps Xara can shed some light on this. I must admit I usually use a combination of the methods described here. Get the shape nearly right then chip away any stray bits zooming in to do fine bits. Then feathering the edgest to blend into new setting.

    Christine
    Christine

    Software: XDPX9, WD9,WD10,XDPX10,WD11,XDPX11,XDP365

  2. #12
    Join Date
    Aug 2000
    Location
    Mid-Atlantic state, USA
    Posts
    528

    Default

    The closed shape remains.

    I must admit I don't use this technique much but when working on Ross's hair challenge I carefully traced Ross's image using the Freehand tool and closed the shape (no fill) Made minor adjustments with the Pen tool (not the Shape Editor tool unless I really needed it)

    Selected both (the bitmap and my closed trace) then from the "arrange" menu picked "combine shapes/intersect shapes" and the background disappears.....every time. Well I tried 3 times [img]/infopop/emoticons/icon_wink.gif[/img]

  3. #13
    Join Date
    Aug 2000
    Location
    Las Vegas, NV
    Posts
    819

    Default

    Alan, I didn't keep the bird. It's a xara photo from the clipart gallery. I've got the feeling that you and Christine have come up with the general "rule" but there must be some sort of "i before e except after c rule" maybe it doesn't recognize nodes added or something.

    Bob, your method works, but I have found I prefer snipping away background with the freehand tool until I'm close to the shape I want. Then I work with the nodes to get it right.

    Mickie

  4. #14
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default

    This one is strange. I've been playing about with it since the original posting. I believe it is the node count that matters, but it seems to follow some rules.
    If the image is sliced, with equal number of nodes on each side, delete the section that does NOT have the starting point within it. (Even if this is the larger shape)
    If the image is sliced across the starting point, then the node count must be greater than 2 on the non starting point section before the section with the starting point is deleted. (Remebering to add the new added nodes to both sides in the count.

    This sounds complicated, but I'll try to do a mini tut. (Not that its that important but it would be nice to know)
    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #15
    Join Date
    Aug 2000
    Location
    Prince Edward Island, Canada --- The land of lawn tractors
    Posts
    5,389

    Default

    I'm glad to see some energy going into understanding this one.

    It just struck me that most of us are talking about this in the context of editing bitmap-filled shapes to facilitate making composite images. I thought I should also perhaps remind that these techniques can be part of your general arsenal of shape editing approaches - if they aren't already. Isn't it great how xara's tools are so flexible! (The cad program 'intergraph' used to be famous for having a tool for everything. I much prefer the xara approach of having a few very flexible tools. I'm too stupid to learn 237 tools [img]/infopop/emoticons/icon_biggrin.gif[/img] ).

    Regards, Ross

    <a href=http://www.designstop.com/>DesignStop.Com</a>

  6. #16
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default

    Yes, it struck me that we were all talking about bitmaps, but any shape will do just as well. I've posted a long explanation that gets no nearer the truth but it may be of interest in this thread. By the way even bitmaps have a start point in Xara so this would explain Mickie's finding, as he was cutting out the start point corner.
    Re Bob C's point: The upper shape will always slice the lower shape Bob. Xara always works this way, and knowing it makes slicing 2 objects far more predictable.
    slicing images using the freehand tool
    Egg
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #17
    Join Date
    Aug 2001
    Location
    Oregon, USA
    Posts
    27

    Default

    Egg,

    I looked at your slicing exploration, and can suggest that straight and curved lines need to be differentiated. It's easy to verify that curved lines have more 'weight' than straight ones, and would help explain the seemingly inconsistent results.

    These variables can probably be ruled out as factors:
    » size of enclosed area
    » relative density of nodes (or length of line segments)
    » cartesian orientation (eg. top versus bottom)
    » direction of the line
    » chronology of changes (revisions, most recent operation, etc.)
    » type of slicing line (doesn't matter if it's straight, wavy or loopy -- it will attach to whichever side wins the slicing derby.)
    » type of tool used to create the shape.

    What is left?
    The mathematical complexity of the line as defined by the number of nodes and number of bezier tangent arms. That would probably be the simplest and surest way to predict the most important division of a shape.

    It's clear that it takes two extra nodes (without handles) to overcome the advantage of a shape's starting point -- so the starting point would get a bonus weight somewhere between one and two nodes, call it 1.5 (it gets one point for just being a node, so that's total of 2.5; and more if it's got control handles).

    I suspect bezier tangent arms probably have a similar weighting. (By comparing your examples nine and ten, you can estimate that each tangent line might be weighted about 0.7.) Nodes with two tangents likely have twice the additional weight of nodes with just one tangent line. Possibly the number and type of line segments (straight vs curved) is considered in addition to, or instead of the nodes. There may be other considerations, when shapes have donut holes, etc.

    I like to draw with the freehand tool with lots of loops, and also use the 'join shapes' command a lot, so I end up with a single convoluted shape, and often ninety percent of my drawing will disappear when I try to redraw a small corner. I end up either deleting nodes individually, or draw a shape over a complex area I want to redo, and 'subtract shapes'. I hope someone from Xara will respond, because I've also wondered about this.

    -- Ed Nadie

  8. #18
    Join Date
    Aug 2000
    Location
    Las Vegas, NV
    Posts
    819

    Default

    Attached is another experiment. I'm assuming the start point for a bitmap is the lower left. If I slice a bitmap in half, then I should always retain the lower part. My example uses curved lines, one slice beginning in upper left to lower right, the other lower left to upper right...and I have two different results.

    All I can say is thank goodness for the undo command!

    Egg, by the way I'm a she. In the U.S. most nicknames ending in ie are female, but not all...as we are proving there are exceptions to every rule. [img]/infopop/emoticons/icon_wink.gif[/img]

    Mickie
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	masking.jpg 
Views:	394 
Size:	10.8 KB 
ID:	9223  

  9. #19
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default

    Ed,
    You're probably correct in your assumptions. The more you mess around with the slicing the more complex it becomes. It would be interesting to know how the XaraX algorithim decides these factors, but what practicle use would it be, I'm not sure! Could you imagine trying to work out some calculus to decide what the end result would be... far better to try and use the undo icon. But it's something of a puzzle which is interesting to try to unravel.

    Mickie,
    Sorry for the gender confusion!!!! Re the example, the lower left is not the start point of the bitmap, but the top left. If you select the bitmap with the selector tool you get the 8 handles and the start point indicator. See attachment. It's not a well documented feature in XaraX but its handy when your trying to find start points within several objects.

    Egg
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	!!!!!!!!!!!!!start_handle.gif 
Views:	344 
Size:	8.3 KB 
ID:	8056  
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  10. #20
    Join Date
    Aug 2001
    Location
    Oregon, USA
    Posts
    27

    Default

    Mickie,

    The attachment refers to your second experiment, and shows that the
    starting point has a total weight of somewhere between two and three
    regular nodes. The cyan examples show that curves in a slicing line don't
    make any difference. Curved lines are only calculated as an indication of
    complexity -- and therefore likely importance -- of the shape you're
    slicing (like your first experiment).

    With a rectangular bitmap, you can easily predict which side will remain,
    if you know the starting point, but in a shape with curved edges, even
    knowing the exact algorithm wouldn't take the place of the undo button.

    -- Ed Nadie
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	slicing.png 
Views:	324 
Size:	3.5 KB 
ID:	8559  

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •