Results 1 to 5 of 5

Thread: Antialiased render

  1. #1

    Antialiased render

    I was thinking about creating a small game and for that I crated a small Vector based engine that uses SDL for the rendering ( :arrow: ).

    For that I want to enrich sdlutils with more drawing functions, so far I’ve only been able to create an AA_line procedure (based on WuLine, no thickness), AA_Disc and AA_circle (both with thickness).
    I still like to add:
    AA_line with thickness
    AA_Rect with thickness (border only and filled)
    AA_Triangle with thickness (border only and filled)
    AA_Bezier_Curve with thickness (opened/closed, border only and filled)

    Now the problem is that my maths skills are not that good.. I have no problem implementing all types of basic shapes but it will be far from optimized..
    So is there someone would like to join the effort?

    I found this lib which looks great, translated from c++, barely readable..
    http://aggpas.org/aggpas-demo.htm

    :arrow:
    Download it here
    [*/] Rotate
    [+-] Scale
    [Arrows] to move the ant (don’t get out of the screen!)
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

  2. #2

    Antialiased render

    Wow AggPas seems very comprehensive.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

  3. #3

    Antialiased render

    Thought its barely readable :cry: I wasn't able to follow the code..
    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

  4. #4

    Antialiased render

    Since it looks I’m the only one interested in those drawing functions I didn’t bothered uploading the code, thought I’ll ask Dom to include it to sdlutils.

    The thick line function is problematic, it simply uses many AA_Line => performance and quality drop.
    I still need to add polygon render function.

    you can download the updated test app from here
    Keys:
    [*/] Rotate
    [+-] Scale
    [Arrows] to move the ant
    [Key pad] to 'move the world'
    [1..4 + mouse click] to control the curve
    [5 + mouse click] to move the line

    [size=9px]BEGIN GEEK CODE BLOCK
    <br />d s-- : a24 GB GCS GTW GE C++ P L+ W++ N+ K- w++++ M- PS+ PE+ Y- t+ 5+++ X+ R*
    <br />tv b+ DI++ D+ e++ h+ G-
    <br />END GEEK CODE BLOCK[/size]
    <br />Create your own GeekCode block at: <a href="">...</a>

  5. #5

    Antialiased render

    I think this is pretty cool set of functions and they look quite good.
    If only they could be a faster.
    <br /><br />There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.<br />-= Paulo Coelho =-

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
  •