Slashdot Mirror


Gaming Beauty Is Only Pixel Deep

Thanks to NTSC-uk for its feature discussing what the new pixel and vertex shaders mean to this generation of videogames. The piece laments: "Looking back at the past few years, games have looked incredibly similar. And this is the main reason why: they all used the same tools", before going on to explain: "The hardware previously contained logic circuits to simply perform the operations needed by Gouraud and Flat shading, but now the fully Programmable Pipeline has introduced a whole new world of graphical effects for us all, limited only by the programmers' time and creativity", referencing "the water effects used in Super Mario Sunshine, cel shading effects used in Zelda, or the rippling water effects on Dead or Alive 3."

21 of 50 comments (clear)

  1. As far as I know... by Quarters · · Score: 5, Interesting

    The Gamecube doesn't have a programmable function pipleline for graphics effects - it has a very robust fixed function pipeline. The effects the author emphasizes in those three Gamecube Games were more than likely done on the CPU and not with a programmable GPU. While that doesn't diminish the look or technical achievement of those games it does throw water on the author's assertion that games all looked alike before GPUs because all fixed function pipelines give the same look to their output.

    1. Re:As far as I know... by Illissius · · Score: 3, Informative

      While I don't have any knowledge of the GC's GPU per se, what I do know is that the company that designed it, ArtX, was subsequently bought out by ATi and the same design was used as the base of their R3xx (Radeon 9x00) series of graphics cards, which do indeed use pixel and vertex shaders (versions 2.0). So it's certainly possible.

      --
      Work is punishment for failing to procrastinate effectively.
    2. Re:As far as I know... by Funk_dat69 · · Score: 2, Interesting

      I'd actually bet that it has functionality similar to the register combiners found on the original GF2-GTS. These were basically precursors to todays programmable units - they allowed nifty effects, but were still limited and locked into the fixed function pipeline.

      --
      FUNK!
    3. Re:As far as I know... by TomSalter · · Score: 2, Informative

      Hi all, I wrote this article, so I thought Id comment :) The GameCube does in fact contain Pixel/Vertex shaders in the true sense of the word, rather than complicated GL extensions available. If you browse Gamasutra.com or elsewhere, there are considerable articles explaining how to use these. If only someone would send me a full dev kit (I have the NR 'Cube) then I could test further :)

    4. Re:As far as I know... by Quarters · · Score: 2, Insightful
      A GL extension has no bearing on whether or not a particular piece of hardware has a true programmable GPU or not. OpenGL and GL extensions are software. You can write GL extensions that will run on a CPU.

      The Gamecube doesn't have a programmable pipeline. It's got a configurable one. It still allows for some amazing graphics, which goes counter to your claim that fixed-function doesn't allow for variety.

  2. Re:It might mean better looking games but... by Soul-Burn666 · · Score: 3, Interesting

    It could mean less stress is on the CPU, meaning the physics can be more realistic and funner and the AI can be smarter, giving a better gaming experience.

    --
    ^_^
  3. Wow, incredibly off-base by SilentChris · · Score: 4, Insightful

    That's like saying "because power tools are now popular, all buildings look the same". The reason why games are looking similar is that developers are sharing some of the more common code (as they should do). It's similar to when games first became color and all of them looked like blotchy squares. Over time the graphics start to vary. Give them time.

  4. Re:It might mean better looking games but... by SphericalCrusher · · Score: 2, Insightful

    and WarCraft 3 has some amazing graphics. Or did you mean WarCraft 2? Nonetheless, great game.

    I'm an old school gamer... but I also want the video game industry to keep rising. Even though I still play King of Fighters 96 on my Neo Geo, I would still play a new nice looking game. Although it's not ALL about graphics, I don't think that it would benefit the gaming industry to use choppy graphics in new games. After all, it's the medias and new-age gamers that promote the games the most... and what feature do they all seem to crack down on more than anything else? Yep. Graphics. As long as the game plays great, I'll always love it, but someone else who just wants it to look better probably has their pick over me, simply because there are more people like that in this world.

    --
    "Instant gratification takes too long." - Carrie Fisher
  5. Re:It might mean better looking games but... by Weirdofreak · · Score: 2, Insightful

    Correct me if I'm missing the point (or misunderstand/abuse the term 'physics'), but surely the physics don't have to be life-like any more than the graphics do, they're still physics and improving them will improve the games.

    Pong, for instance, had physics of 'if the ball hits a wall or paddle, it will bounce off'. Legend of Zelda had 'if x hits an enemy, the enemy will get hurt. If Y hits the player, the player will get hurt. If the player hits a wall, stop'. More recent games have loads - 'if there's nothing solid beneath you, start moving downwards. If you hit something solid, stop. If you stop from a fast enough speed, get hurt'. Etc.

  6. Re:It might mean better looking games but... by Soul-Burn666 · · Score: 4, Interesting

    Even though I haven't thought of that when I wrote my comment, this is a very interesting thing.

    In old games, to get to a high place, you need to find the correct set of crates/ledges that just "happen to be there" if such existed, or click a specific button that will let you eradicate your enemies fast.
    In new games, they just put reasonable world features in a way that you can CLIMB on them and get where you want to go, even if the game designers didn't think going there could help. Or just place some barrels somewhere and u could shoot/push them and expect them to roll down on your enemies.
    It becomes so that there is more than one way to achieve your goal.

    It's funner to see your char doesn't need to find a teleporter to go over a 0.5meter ledge (doom2, lvl2) but do what YOU as the player would like to do at that situation.

    Ofcourse the devs need to make sure you don't go to places you shouldn't go to if the storyline dictates, but not thru stupid things like tiny wall that a human could easily pass.

    --
    ^_^
  7. I don't care how a game looks... by Flyboy+Connor · · Score: 3, Insightful
    ...as long as it plays well.

    Different gameplay experiences are not caused by games looking different. They come from different game designs.

  8. Wrong by Have+Blue · · Score: 4, Interesting

    Games aren't going to use the standard fixed-function pipeline any more- they're all going to use the same shader programs. There's only one "best" way to implement character model normal mapping, and that's polybump, which virtually everyone is using for upcoming games. There are only 2 ways to do shadows, shadow buffers or stenciling, and both of those are very common. The only exceptions are going to be games making really unusual style choices like Jet Set Radio Future. What's really going to differentiate games in the future is going to have to be something other than graphics and physics, as those fields tend to converge onto a single "one true implementation" as they evolve (for graphics it's photorealism, for physics it's something like Havok which is available for anyone to just drop into their games).

    1. Re:Wrong by Quarters · · Score: 2, Informative
      While Havok is a nice package (for anything short of soft-body, cloth, or fluid dynamics) and has a clean API it isn't just something you "drop" into a game. Implementation of it takes a very concerted effort by both the programming and art staff. Resources also have to be devoted to the project to tune the physics simulation and to activate/deactivate objects into the simulation when they are needed.

      While the results are really good, Havok introduces dependencies into the development process that make it a non-trivial addition to any project that might use it.

      Of course, that is true for almost any middleware (or in-house generated) technology.

  9. Cool!! by Tom7 · · Score: 2, Funny

    the water effects used in Super Mario Sunshine, cel shading effects used in Zelda, or the rippling water effects on Dead or Alive 3.

    Wow, water effects, cell shading, and water effects? What an incredible breadth of effects available at the programmer's fingertips!

    1. Re:Cool!! by Quarters · · Score: 2, Interesting
      Except that currently we have normal mapping, parallax mapping, hardware skinnng & boning, edge effects, glow effects oil effects, screen space effects, high dynamic range lighting, and on and on and on....

      Picking three examples that use 2 simplistic effects doesn't do justice to the breadth of graphical wizardry that has come about and been *enhanced* because of a programmable pipeline. Note the word "enhanced"-all of those effects were achievable on a CPU. It just wouldn't be good for game performance to do them that way.

  10. Re:It might mean better looking games but... by Anonymous Coward · · Score: 2, Interesting

    This is what a typical Metroid game already gives you. You can spend a lot of time just trying to get somewhere you aren't really supposed to and sometimes it works... you can even bypass large sections of the game if you work at it.

  11. Re:good article by Cebu · · Score: 4, Informative

    Good article? It's terrible:

    "Most 3D objects are made from triangles. A triangle is given by three points in space. If they are modeled as polygons, by the time they are drawn on the screen (rasterised)..."

    Rasterization is the process by which an aribtrary mathematical representation is converted into a raster image (an image composed of a grid of orthogonal display elements). Rasterization is not when something is drawn on the screen. ...then they are split into triangles for simpler rendering (Due to the mathematics that states that any polygon can be formed by multiple triangles)."

    Complex representations of three dimentional objects are not split into triangles for simpler rendering, they are split into triangles because it allowed for faster rendering.

    There is no statement in mathematics that claims any polygon can be formed by multiple triangles. Furthmore, this claim is false.

    "The whole process of rendering takes each triangle in 3D world space, and projects them onto the screen as 2D triangles."

    This claim is false. If you are projecting three space triangles onto a cartesian plane, they do not necessarily become triangles. Lines, points, and nothing at all are not triangles.

    "The most basic method of lighting is simply giving each triangle a flat colour, and by no coincidence at all, this is called Flat Shading."

    This is not lighting -- it is called shading. The process of selecting the actual colour of the polygon would be considered a rudamentary lighting model, not simply the assignment of a colour. Again, shading and lighting are independant.

    "Cel shading techniques can make use of the fast rendering speed to save some processing power for the pencil outlines, so it's still a relevant shading method. I, Robot was one of the first games to take advantage of this technology."

    As before, the ambiguity of the last statement is enjoyable -- "I, Robot" was one of the first games to use 3D polygonal representations. It was not one of the first games to use flat shading, nor cell shading (given that it does not use cell shading).

    "The next shading technique, which was common in the later days of the PlayStation, is named Gouraud Shading:..."

    Gouraud shading was first presented by Henri Gouraud in 1971 and has been common in games well before PlayStation.

    "...by working out the colour at each vertex, and interpolating this colour between the vertices across the triangle whilst rendering, it will give an approximate idea of how the triangle should be shaded."

    Gouraud shading takes the averaged surface normals at each vertex and performs a lighting computation (originally a Lambertian diffuse calculation) upon them. The resulting vertex colours are then interpolated along the edges of triangle, then the triangle is filled by interpolating between each set of edge pixels per a scanline.

    "Unfortunately, because the colours are worked out at the corners and mixed across, shadows in the middle of the triangle will be completely missed."

    The production of shadows has nothing to do with Gouraud shading, or shading at all.

    "Also, when using large triangles, the effect can seem quite unnatural, and it's especially noticeable in Metroid Prime when moving around in Morph Ball mode."

    The problem with Gouraud shading is that it restrict light sampling to vertices taken from the world geometry. The accuracy of the shading is then directly proportional to the vertex density of the world geometry. It also performs poorly at oblique junctions. Another issue is the Gouraud shading is not perspective correct.

    "Games such as Silent Hill 2, however nice the shadow generation is, still only use this basic shading model, and it's very noticeable with the 'squares' since the light hits the vertices (corners) in turn, the light tends not to spread slowly across the triangles."

  12. may be going off topic... by nobodyman · · Score: 4, Insightful

    But I always bristle at the notion that "games lately look so much the same" and "there's no originality anymore, not like back in the day".

    Here's the deal: the reason why so many games look the same is because for every innovative game you have 20 or so derivative titles that want to cash in on the popularity of the original. Though we like to fondly look back to the early days of video games and think that they were so original, the truth is that the same problem existed back then as well. I recently got one of those 200-in-1 NES emulators for the GBA, and let me tell you that the 20-to-1 ratio of crap to innovation still applies.

    The author of this article makes another mistake: thinking that games will stop looking like each other with the advent of pixel shaders. Of course this is rediculous. I do believe that technology can enable new aspects of gameplay, but to think that pixel shaders are going to make people more creative is just plain wrong.

  13. Programmable pipeline by chris_oat · · Score: 3, Informative

    "the water effects used in Super Mario Sunshine, cel shading effects used in Zelda, or the rippling water effects on Dead or Alive 3."

    The gamecube doesn't have shader hardware, it uses a fixed function approach with many texture stages. Granted, the flexibility afforded by a dozen or so texture stages is similar to simple pixel shader hardware but there are still fundamental differences (particularly in the ability to do texture indirection) that make real shaders far more flexible. The first two games mentioned above don't use shaders at all... this guy should do a bit more research.

  14. Re:Pretentious shithead by Cebu · · Score: 2, Interesting

    I stand by all my points; though I'll only address the mathematical point:
    The proof you indicated is a proof of triangulation. Triangulation only applies to closed 2D polygons. We're dealing with 3-space polygons who's cartesian projection does not always form a polygon or set of polygons. Subsequently the statement inquestion is indeed false.

    On the subject of triangulation, there are many finite polygons who's triangulation requires an infinite number of triangles to construct. Subsequently, realtime 3D polygon based applications restrict what polygons can be presented and often incorporate failure cases.

    The point is that treatments of mathematical subjects, including computer graphics and the article in question, should be presented with at least a minimal degree of rigor. I wouldn't expect proofs, but I do expect at least accurate and fairly precise statements.

  15. Re:good article by erich666 · · Score: 2, Informative

    A minor point of interest (for true graphics geeks only): you write, "Another issue is the [sic] Gouraud shading is not perspective correct." In algorithmic terms, you're right, original Gouraud shading interpolates in screen space. However, when I was helping to revise the book "Real-Time Rendering" for its second edition, I asked NVIDIA about this (in 2001), whether they interpolated Gouraud in screen space or perspective space. Surprisingly enough, they now interpolate Gouraud shading using perspective correction, just as they do for textures, and so give a better result.

    I agree that there were a number of missteps and questionable statements in the original article, unfortunately. It's too bad, as this area of graphics is exciting and much of it not all that hard to explain clearly. Graphics GPUs (and not the article's "VPUs", a term that hasn't caught on outside of ATI) now allow some seriously large programs (e.g. 1024 steps per pass) to operate on each pixel a triangle covers. The graphics hardware pipeline, by using multiple passes, is Turing-complete (and has been for some time), though I recommend against using it for making a spreadsheet program.