Results 1 to 5 of 5

Thread: Soft lines with canvas

  1. #1

    Soft lines with canvas

    Hi All!
    Is posible with DelphiX Canvas, draw smooth lines? I draw lines with MoveTo and then LineTo methods, but this is not look good. Maybe is alternative method to draw lines (i thing not) to draw smooth lines?
    Thanks for answer!
    Iguana

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Soft lines with canvas

    DelphiX uses only TCanvas type methods of drawing to a DirectDrawSurface. You'd have to create your own or look into another library for such functionality.

    Hope this helps. Best of luck!
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3

    Soft lines with canvas

    Not to dismiss what Will said but I shall go into a bit more detail. I believe what you are after is "anti-aliased" lines. This involves drawing the line pixel by pixel in any colour you like (Let's say black for example) and then placing a slightly lighter colour either side of each pixel so that it blends in with the surrounding image, this works best when the blend colour is a mixture of the line colour and the colour of the surrounding image but a standard gray usually does the trick. As Will already mentioned DelphiX is not capable of doing this fast enough, in fact, in order to do it fast enough 3D acceleration is almost certainly required if framerate is an issue (and it most probably is since you're posting on a game development website). Hope this helped, if you have any trouble understanding any of this (I'm guessing English isn't your native language) then perhaps someone here can translate/reinterprate my answer. Good luck.

    PS, try typing "Anti Aliasing Techniques" into Google.
    Isometric game development blog http://isoenginedev.blogspot.com/

  4. #4

    turbopixels

    Look at the WuLines functions in turbopixels. This is what you need, and I`ve yet to find any faster

  5. #5

    ??

    Where is this turbopixels thinggy?? O_o is it part of [Un]DelphiX?

    Edited: Uhh stupid me I'm forgot to check the Addons section XD

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
  •