A Flash Developer Resource Site

Results 1 to 13 of 13

Thread: Bad rounded corners, its a bug or its me?

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    70

    Bad rounded corners, its a bug or its me?

    Hello,

    I spent countless hours with this:

    I draw a shape with the Standard Shape Tool - Draw Rounded rectangle
    I select in Shape Properties - Look - Line width either 0.25, 0.5 or 1 I play the movie and the button shape has an awful rounded corners drawn. For line width of 2 it is better but for 3 is bad again, and I need 0.25 width, can some body explain this behavior to me, please?

    I do not want to go to an Image vector program to draw my buttons, export and import into Koolmoves. Please help me with this to find what its going on with the rounded corner inside Koolmoves.

    By the way I did a search in this forum for "round corners" and I noticed that links to examples and tutorials are broken.

    I would suggest a Koolmoves place for the documentation and all the nice tutorials to be posted there and preserved in time.

    Your kind help it is very much appreciated.

    regards
    joejac

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Quote Originally Posted by joejac
    I would suggest a Koolmoves place for the documentation and all the nice tutorials to be posted there and preserved in time.
    There is such a place http://koolexchange.com

    I'm not sure what's going on with your shapes I'll look a bit.

  3. #3
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Bret, the tool for rectangles with rounded corners does not give a smooth line, I notice most often it is worse on the bottom corners.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Interesting, I hadn't noticed this before but you seem to be right.
    It seems to be an issue with the number of rounded nodes. I tried drawing one in another program and bringing it in as an SVG (which works pretty well for simple shapes) and noticed many more nodes in the corners which looked much better.

  5. #5
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    Quote Originally Posted by Stoke Laurie
    Bret, the tool for rectangles with rounded corners does not give a smooth line, I notice most often it is worse on the bottom corners.
    I had metioned this sometime back. I either set the line to 0 or used transparency for the line. But looking at Bret's svg import image, I'll have to try that.

  6. #6
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    That rectangle was done in Realdraw from http://Mediachance.com

    Didn't get good results from Inkscape

  7. #7
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    Quote Originally Posted by blanius
    That rectangle was done in Realdraw from http://Mediachance.com

    Didn't get good results from Inkscape
    Thanks Bret!

  8. #8
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    I suspect it is a pixel round off problem. You might try nudging the bad points.

    I am not sure only what conditions fractional widths work but it is definitely not screen display.

  9. #9
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Not sure I understand Bob, but what I'm seeing looks like it's that the individual line segments making up the rounded corner are just too big. In the SVG it's still there made up of straigt lines but notice there are 4 curve points and 5 fixed points compared to 1 round and 2 fixed in the KM drawn corner. Seems to me this might be something that could be improved upon.

  10. #10
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Are you saying that there aren't enough corner points to handle the roundedness?

  11. #11
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Thats absolutly the case Bret, the appearance will better, the greater the number of nodes. Flash mx and above allows the user to select the number, so thats one possible fix route. In the meantime, something that does work well is to create a regular rectangle, then apply the curved line option to both of the short sides, this creates an acceptable long oval with straight top and bottom.

  12. #12
    Member
    Join Date
    Oct 2004
    Posts
    70
    Hello gentlemen,

    I am a little confused here, isn't Koolmoves a vector graphics program? I do not understand much on the issue but as far as I know vector graphics are based on mathematical equations to draw images, so for this reason the drawings are continuous and smooth in contrast with bitmap programs. If so, probably the equation used inside KM to draw curves needs to be checked by your programmer.

    I have KM V 5.7.6

    Any help it is very much appreciated.
    Regards
    joejac

  13. #13
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Vector drawings are based on points, not mathematical equations. Curves are dependent upon how many points define the curve.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center