Results 1 to 21 of 21

Thread: Smoothing Algorithm

  1. #1

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Cheers all, and here's my problem:

    I'm trying to make a better quality blown up image for use with fullscreen 2d games (eg. Kreed's SuperEagle in SNES9X or ZSNES)

    I'm doing it pixel by pixel, and a list of rules follows.
    I'm using the rules:

    If the pixels to the top & left are the same, put the colour in quadrant #1 ( top-left when blown up )

    If the pixels to the top & right are the same, put the colour in quadrant #2 ( top-right when blown up )

    If the pixels to the bottom & left are the same, put the
    colour in quadrant #3

    If the pixels to the bottom & right are the same, put the colour in quadrant #4


    That is what I'm doing so far, and it seems to do a good job, but how will it do for every picture?

    Here is what I ask of you:

    1. Send me a 320x240 picture from an emulator screenshot (or a computer rpg or something like that)
    EMAIL: [email protected]

    2. Or post it on the forums here.

    3. Wait to get it back and tell me if you like the results.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    ok
    Attached Images Attached Images  
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Thanks, and thank you for taking my advice.

    I'll post it back here in a sec.
    To the left is the unsmoothed
    To the right is the smoothed.
    This isnt a good example for various reasons, but
    here is an example that shows off the features nicely:

    kedascrn.gif
    examscrn.gif

    Are the attachments, kedascrn being yours, kedaman.

    Enjoy!

    Cheers,
    Sastraxi
    Last edited by Sastraxi; Feb 3rd, 2001 at 09:56 PM.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  4. #4

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Kedascrn
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Here are the pics, zipped so I can upload them:
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    I don't see any links Sas, maybe you tried to upload more than the 100k limit?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  7. #7

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Yeah... the zip's 237 KB, the jpg 132 KB, the bmp 1.22 mb... etc....

    So I zipped them and I'm sending them over to ya.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  8. #8
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Okay, what IS it with the Chrono Trigger avatars?

    I've been working on something like that for a while. It extrapolates curves and lines in a bitmap, kind of like CorelDraw's trace function. I wrote it to clean up low-rez digital camera pictures. I'm having lots of problems with it, though. Oh well. Another project for the back burner...

    ~Zero the Inestimable

  9. #9

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    Angry

    So now you're copying me, eh?

    Just joking, good luck to you.
    I hope it works out, like it did for me.
    (I can send you my algorithm if u want)
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  10. #10
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    heh, i am lost in this discussion...

    whats the speed of ur algorythm? is it a slow one... and does ur algorythm do anything about the file size?

    i dont know if those are the right q to ask, but i wanna see some of that testing stuff... hey do you have icq?
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  11. #11

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    1. Since it uses SetPixelV and Getpixel, it takes about 9 seconds/frame. (Soon to be changed to get & setbitmapbits) This is on a Celeron 533 w/128 mb Ram and an S3 Savage4 card. The conversion is 24bit from 320x240 to 640x480.

    2. My algorithm doesn't save, but if it did, it would about quadruple the file size. Its meant just to be written to the screen, like on an Emulator. It looks okay, if you havent downloaded the zip then download it now.

    My ICQ is 84479333.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  12. #12
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    where is it?? cant find the zip
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  13. #13

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Here it is:
    Attached Files Attached Files
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  14. #14
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Hey that's pretty cool. Why aren't they all the same image?
    Harry.

    "From one thing, know ten thousand things."

  15. #15

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    That one sux compared to my latest.... although my 2nd latest makes everything 1 pixel in 320x240 disappear when enlarged....

    I'll post the latest here, and to HarryW, I thought they were all the same. If you want to TRULY compare, enlarge the image unprocessed.bmp or something like that x2. Then you can see the difference clearly.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  16. #16
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    cool im checking it out.
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  17. #17
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    hey i dont see a big difference between the super eagle mode and smoothing engine except for file size,,,

    cool.
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  18. #18
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    Yo Kedaman, how bout moving out of Geo****ies man!! they suck and they will [try to] own ur hard work!!
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

  19. #19
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    `Yeah i know i should but i'm lazy, Any suggestions where to?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  20. #20

    Thread Starter
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    www.tripod.lycos.com
    register under kedaman
    and then your address will be:
    kedaman.tripod.com
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  21. #21
    Fanatic Member MoMad's Avatar
    Join Date
    Oct 2000
    Location
    Seattle, WA
    Posts
    625
    http://www.virtualave.net

    register under kedaman
    and then your address will be:
    kedaman.virtualave.net

    or just get a http://go.to/kedaman
    or http://i.am/kedaman
    or fly.to, welcome.to, etc.... or even a kedaman.cjb.net

    the possibilities are endless... try to get something that supports scripts... (cgi, perl, php, etc..) and has infinites or lots of space....

    make a choice here:
    http://freeweblist.freeservers.com/

    they have a good list of many free hosts... and the list grows....
    :MoMad:
    Nice Sig!

    http://go.to/momad/ Status: Not Ready

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