Interesting read on Graphics

Discussion in 'General StarCraft 2 Discussion' started by Fenix, Jun 28, 2009.

Interesting read on Graphics

Discussion in 'General StarCraft 2 Discussion' started by Fenix, Jun 28, 2009.

  1. Fenix

    Fenix Moderator

    Joined:
    May 21, 2007
    Messages:
    6,769
    Likes received:
    11
    Trophy points:
    0
    Came across this nifty little pdf file today, talking about the graphics engine, some of the problems they came across, and how they got around them.
     
  2. Kimera757

    Kimera757 New Member

    Joined:
    Feb 23, 2008
    Messages:
    1,035
    Likes received:
    3
    Trophy points:
    0
    Interesting but old news. (I have that PDF on my computer.)
     
  3. Fenix

    Fenix Moderator

    Joined:
    May 21, 2007
    Messages:
    6,769
    Likes received:
    11
    Trophy points:
    0
    Yeah, it's old, but this is the first time I've ever seen anything from this line
     
  4. Renatus

    Renatus New Member

    Joined:
    Mar 1, 2009
    Messages:
    330
    Likes received:
    5
    Trophy points:
    0
    I love anything art/graphics related for starcraft 2, ty!
     
  5. Seradin

    Seradin New Member

    Joined:
    Aug 19, 2007
    Messages:
    1,388
    Likes received:
    6
    Trophy points:
    0
    From:
    Aiur
    hmm wont let me open it.. odd.
     
  6. Fenix

    Fenix Moderator

    Joined:
    May 21, 2007
    Messages:
    6,769
    Likes received:
    11
    Trophy points:
    0
    Hm.

    I'd attach it but it's hella big. Try CTRL-F5 on the page
     
  7. Yamato_Cannon

    Yamato_Cannon New Member

    Joined:
    May 5, 2008
    Messages:
    56
    Likes received:
    0
    Trophy points:
    0
    From:
    Virginia, United States
    Heh. This article made me glad I didn't attempt to get an sc2 beta key, because there's no way my computer would be able to provide the raw computational power needed to run these algorithms.

    The player probably wants to play this game at around 40 to 60 FPS, which means that doing everything stated in this article and way more has to take around 20 milliseconds. I'll just take the example they gave about rendering the depth of field effect used in the campaign passive scenes.

    To achieve these effects, sc2 must effectively:
    make a full screen pass (1024x756 or more pixels read, which is around 2.2 mb of data)
    Run an algorithm over each of these pixels to blur them and generate a medium blurred image (another 2.2mb)
    Run the same algorithm over these pixels with different parameters to create a maximum blurred image (0.5 mb)
    Blur the depth map
    Create a downscaled blur image

    So every 20 milliseconds, sc2 uses creates about 8 megabytes of image data, processes a gaussian blur on three fourths of it, then processes the alpha... just for the depth of field effect. Anyone playing this better have a good graphics card!
     
  8. Seradin

    Seradin New Member

    Joined:
    Aug 19, 2007
    Messages:
    1,388
    Likes received:
    6
    Trophy points:
    0
    From:
    Aiur
    that worked perfectly, thanks fenix!
     
  9. MeisterX

    MeisterX Hyperion

    Joined:
    Jul 23, 2007
    Messages:
    4,949
    Likes received:
    17
    Trophy points:
    38
    From:
    New Port Richey, FL
  10. DeckardLee

    DeckardLee Guest

    This piece of news is older than the Overmind.
     
  11. Fenix

    Fenix Moderator

    Joined:
    May 21, 2007
    Messages:
    6,769
    Likes received:
    11
    Trophy points:
    0
    Hasn't been posted on the forums before mate. Don't make a post just to complain.
     
  12. DeckardLee

    DeckardLee Guest

  13. MeisterX

    MeisterX Hyperion

    Joined:
    Jul 23, 2007
    Messages:
    4,949
    Likes received:
    17
    Trophy points:
    38
    From:
    New Port Richey, FL
    Doesn't look like the same article to me, mate.