OpenGL 3 & DirectX 11: The War Is Over

Tessellation

The major new feature of Direct3D 10 was the appearance of Geometry Shaders, which finally made it possible to create or destroy vertices on the GPU. But the role of this unit has been somewhat misinterpreted. Rather than being used for massive expansion of geometry, it’s better suited to implementing more flexible Point Sprites, managing Fur Shading, or calculating the silhouette of an object for shadow volume algorithms. Nothing is better than a dedicated unit for doing tessellation. Initially planned for Direct3D 10 (which explains its presence in the Radeon HD series), it seems that Microsoft, ATI, and Nvidia weren’t able to reach an agreement in time, and so it disappeared from the specifications, only to return with a vengeance with Direct3D 11. So, tessellation is the big new feature of Direct3D 11—or at least the one that’s easiest to sell for non-specialists.

So, Microsoft has introduced three new stages in its rendering pipeline:

Unlike other stages of the pipeline, these don’t operate with triangles as primitives, but use patches. The Hull Shader takes the control points for a patch as input and determines certain parameters of the Tesselator, such as, for example, TessFactor, which indicates the degree of fineness of the tessellation. The Tesselator is a fixed-function unit, so the programmer does not control how tessellation is calculated. The unit sends the points generated to the Domain Shader, which can apply operations to them. An example should make all this clearer. Let’s take a case that has come up in each generation since Matrox’s Parhelia—Displacement Mapping.

As input to the vertex shader, we have the control points of the patch. The programmer can manipulate these as he or she sees fit, since they aren’t numerous. To simplify, they are a very coarse version of the final mesh. These transformed points are then passed to the Hull Shader, which determines how many times to subdivide each side of the patch (for example, as a function of the size of the patch in pixels on the display). The Tesselator handles tessellation as such. That is, the creation of the geometry, which is passed to the Domain Shader. It transforms the points generated into the appropriate space (the points exiting the Tesselator are in the space of the patch), producing classic vertices that it can displace as a function of a texture and perform Displacement Mapping.

The potential is enormous. Thanks to tessellation, it becomes possible to do without the normal map and implement a level of detail directly on the GPU, allowing the use of very detailed models (several million polygons instead of 10,000 or so with current games)—at least in theory. In practice, tessellation raises some problems that have kept the technique from taking off so far. Can Direct3D 11 and compatible cards avoid these pitfalls and come up with a functional version? It’s too early to say, but in any event not everybody is convinced, and id Software is working on solving the same geometry problem with a completely different approach based on ray casting with voxels.

  • Gatekeeper_Guy
    Cool, but it will be a few years before we see at DX11 graphic card on the market.
    Reply
  • stridervm
    Sadly, I agree by the author's opinions. Not simply for, but because it still give away the idea that PC gaming cannot be considered serious..... Unless you're using Windows, which is proprietary, the only viable alternative cannot be used because of the fear of losing compability. I just hope this can be remedied before Microsoft becomes.... Unreasonable and becomes power hungry..... If it isn't already. Look at how Windows systems cost now compared to the the alternative.
    Reply
  • johnbilicki
    DirectX 11 will be available on Windows 7 and Vista? Great news indeed! Normal noobs will be able to own super noobs who are standing around looking at over-detailed shrubs.

    As for real gamers, we'll stick with XP until either Microsoft gets smart and clones XP and only adds on Aero or OpenGL gets it's act together and Linux becomes a viable gaming platform. It would be nice if it became a viable anything-other-then-a-web-server viable platform though. Linux gurus, feel free to let us know in sixty years that I won't have to explain to my grandmother how to type console commands to install a copy of Opera.

    OpenGL can go screw backwards compatibility, look what it's done to (competent) web designers who are stuck dealing with Internet Explorer.

    All the bad news about DirectX, OpenGL, and DRM makes me wonder if these companies want us to pirate the hell out of everything. At this rate "next generation" consoles might actually become the next generation consoles!
    Reply
  • jimmysmitty
    Gatekeeper_GuyCool, but it will be a few years before we see at DX11 graphic cardhttp://en.wikipedia.org/wiki/Video_card on the market.
    I thought the article said that DX11 is supposed to be compatable with previous gen hardware.

    I know the Gemoetry Shader with Tesselation is already in all of the ATI Radeon HD GPUs so thats one thing it will support.

    But no SP 5.0 support. I have heard that Intels GPU, Larrabee will support DX11. So that would mean late 2009/2010 will have at least one and that should mean that ATIs HD5K series and nVidias next step should includ support if they were smart and jumped on the wagon early.
    Reply
  • OpenGL may not have gotten the changes it needed to compete with DirectX as a gaming graphics API. But then you have people like Tim Sweeney telling us that graphics APIs are not going to be relevant that much longer (http://arstechnica.com/articles/paedia/gpu-sweeney-interview.ars).

    Direct3D 10 has changed very little in the industry so far, predictably only a very small number of games us it. And those who do can do most of it on Direct3D 9 as well. Maybe MS learned by now that releasing a new API on only the latest platform is a huge mistake, but it will still be a while before people will adapt their new API. And if Tim Sweeney's predictions come true, it will likely not happen at all.
    Reply
  • martel80
    johnbilickiLinux gurus, feel free to let us know in sixty years that I won't have to explain to my grandmother how to type console commands to install a copy of Opera.I have been able to "accidentally" (because I'm no Linux guru, you know) install Opera through the Synaptic Package Manager on Ubuntu. So please, stop talking nonsense. :)
    The process was a bit different but overall faster than under Windows.
    Reply
  • dx 10 may not appear major but for devs its actually is.. no more checking cap bits.. that is a big improvment. dx10 is alot more strict in terms of what the drivers should do and thats good. doing away with fixed functions is also great

    however hardware tesselation if huge.. dx 11 also allows for hardware voxel rendering /raymarching thru compute shaders and alot of other stuff.. as apis become more general im sure the pace of new apis: will slow down, but that's not a indicator that pc gaming is dying (un informed people have claimed that the pc is dead since the ps1)

    as for the windows/other platforms discussion, it is not the fault of microsoft that there is no viable alternative on other platforms. if someone chose to compete with microsoft, they could. but no one seems willing. what really should be done is a port/implementation of dx11 in open source..

    however, in the cut throat buisness of game engines and gpu drivers, i seriously doubt that open source systems will ever be at the forefront of gaming
    Reply
  • phantom93
    DX11 is compatiable with DX10 hardware. It should work when it is released unless they have bugs.
    Reply
  • spaztic7
    From my understanding, all HD4800 serious are DX11 compatible... and the HD4800 line is ray tracing compatible at ray tracings frame cap. I do not know about the 4600 line, but I don’t see why they wouldn’t be.
    Reply
  • GAZZOO
    ow PC gameing is dieing allright the major game componies are starting to squeese out the PC games from there production list useing the excuse that they are loosing money through pirecy but what they are realy doing is cutting out one version forcing PC gamers to evolve into console players
    And from this article I get the impresion that microsoft has a hand in it aswell by making sure that the console games end up running better or as good as PC games
    I think if the origenal Opengl was alowed to proceed years ago and if the follow up was taken and there wasnt any sabotage happening then the PC and its performance with mutly CPU GPU and the tecnolegy evolving with the progamers and propper apis in this area would have left the console market in the shade but this way Microsoft is eliminating other similar competion Apple
    To cut to the chace Apple and OpenGl is getting the Microsft squeese and who has an interest in a console product :-)
    I guess I might be one of the old dinosorse but I still am a PC gamer through and through even though I am grampar foda I love buiding PC units and playing well I havent been to a net game in a couple of years Pizza and beer he he heee But Il be buggered If I will lie down and die because of big buisness
    Gazza
    Reply