Another demo

Discussion in 'Architecture and Products' started by Humus, Dec 11, 2003.

  1. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
  2. hoom

    Veteran

    Joined:
    Sep 23, 2003
    Messages:
    2,948
    Likes Received:
    497
    So we can blame you for these turning up in the Cats then?
     
  3. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Nope, I'm innocent :p
     
  4. UberLord

    Newcomer

    Joined:
    Nov 21, 2002
    Messages:
    54
    Likes Received:
    0
    Hardly useless!

    You could run the demo on a remote pc - say your one at home - and pipe the output to local pc - say your one at work.

    Easily achievable using something like VNC :D

    Now, if someone could write a wrapper for this to say take the video out from any given application and dump it through your ASCII filter ........ maybe I could play UT2003 on my crappy work pc!

    :lol:
     
  5. [maven]

    Regular

    Joined:
    Apr 3, 2003
    Messages:
    645
    Likes Received:
    16
    Location:
    DE
    I like the idea of using the 3D-texture; that's quite clever. :)

    But the harder (and more interesting bit) is to select characters not via average intensity but to approximate shape... ;)
     
  6. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Heh, that would require a good deal of work :p
     
  7. [maven]

    Regular

    Joined:
    Apr 3, 2003
    Messages:
    645
    Likes Received:
    16
    Location:
    DE
    I was thinking, maybe you could render to a larger texture (2x2 texels for each ASCII character), and then look a character up with the average intensity of the 2x2 block and ddx / ddy (computed from the texels in the block). This would probably need (at least) one other dependent lookup, and I don't have a clue whether this would have the desired effect... :?:
     
  8. Grall

    Grall Invisible Member
    Legend

    Joined:
    Apr 14, 2002
    Messages:
    10,801
    Likes Received:
    2,172
    Location:
    La-la land
    Hahaha, I don't believe it! LOL Humus, but you actually found a way for an ASCII demo to require DX9! ROFL, kudos man!


    *G*
     
  9. Arun

    Arun Unknown.
    Moderator Legend Veteran

    Joined:
    Aug 28, 2002
    Messages:
    5,023
    Likes Received:
    299
    Location:
    UK
    Very nice demo :)
    But Humus, you REALLY should have taken a bit more time to weak it though IMO. I fiddled a bit with the fragment shader of ascii.sdh, and I managed a way cooler result in just +- 15 minutes.

    [​IMG]
    http://www.notforidiots.com/muchcooler.jpg

    I simply replaced:
    Code:
    return tex3D(Ascii, float3(asciiBase, dot(tex, gray))) * float4(1.5 * normalize(tex), 0);
    with:
    Code:
    return tex3D(Ascii, float3(asciiBase, dot(tex, gray))) * float4(1.5 * normalize(tex), 0) + ( 0.01/tex.xyzz );
    Or maybe am I the only one to think that change makes it cooler? :)


    Uttar
     
  10. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Hmm. I'm doubtful.
     
  11. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    8)
     
  12. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    Probably ;)
     
  13. Xmas

    Xmas Porous
    Veteran Subscriber

    Joined:
    Feb 6, 2002
    Messages:
    3,298
    Likes Received:
    137
    Location:
    On the path to wisdom
    Hm, seems like there is a fundamental difference in how NVidia and ATI treat divisions by zero or something, Uttar. Your version produces bright white on ATI cards where your screenshot shows black.
     
  14. Mendel

    Mendel Mr. Upgrade
    Veteran

    Joined:
    Nov 28, 2003
    Messages:
    1,350
    Likes Received:
    17
    Location:
    Finland
  15. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    In OpenGL division by zero is undefined, but in DX it's defined to yield infinity, so it seems ATI has the conformant implementation.
     
  16. Humus

    Humus Crazy coder
    Veteran

    Joined:
    Feb 6, 2002
    Messages:
    3,217
    Likes Received:
    77
    Location:
    Stockholm, Sweden
    I don't think that would look particularly good.
     
  17. bloodbob

    bloodbob Trollipop
    Veteran

    Joined:
    May 23, 2003
    Messages:
    1,630
    Likes Received:
    27
    Location:
    Australia
    humus your implementation certainly looks alot better then the ati one ( prolly at a bigger fps cost ) I love it :)

    Very good work on the demo but aren't yours always like that.
     
Loading...

Share This Page

  • About Us

    Beyond3D has been around for over a decade and prides itself on being the best place on the web for in-depth, technically-driven discussion and analysis of 3D graphics hardware. If you love pixels and transistors, you've come to the right place!

    Beyond3D is proudly published by GPU Tools Ltd.
Loading...