14 ms·
A trip down the League of Legends graphics pipeline
- ryandrake 10y agoTitle is a nice nod to the classic _A Trip Down the Graphics Pipeline_ by the great Jim Blinn.
- deleted 10y ago[deleted]
- adamnemecek 10y agoFew things consistently blow my mind as insane graphics demos https://www.shadertoy.com/view/4dfGzS https://www.shadertoy.com/view/4dfGzS (or basically anything on that site) How is that 400 lines of code. Or this one which even generates the sound on the GPU https://www.shadertoy.com/view/4ts3z2 https://www.shadertoy.com/view/4ts3z2 With the wide adoption of WebGL, it's a good time to get involved in graphics. Furthermore, GPUs are taking over esp. with the advent of machine learning (nvidia stock grew ~3x, amd ~5x last year). The stuff nvidia has been recently doing is kinda crazy. I wouldn't be surprised if in 15 years, instead of AWS, we are using geforce cloud or smth, just because nvidia will have an easier time building a cloud offering than amazon will have building a gpu. These are some good resources to get started with graphics/games # WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL https://www.amazon.com/WebGL-Programming-Guide-Interactive-Graphics/dp/0321902920/ref=as_li_ss_tl?ie=UTF8&linkCode=ll1&tag=akhn-20&linkId=6a3c5120f9335a1038329ba5136d0ca9 https://www.amazon.com/WebGL-Programming-Guide-Interactive-G... Historically, C++ has definitely been THE language for doing graphics but if you are starting these these, you would have to have really compelling reasons to start with C++ and not JavaScript and WebGL. And that's coming from someone who actually likes C++ and used to write it professionally. # Book of Shaders https://thebookofshaders.com/ https://thebookofshaders.com/ # Game Programming Patterns http://gameprogrammingpatterns.com/contents.html http://gameprogrammingpatterns.com/contents.html https://www.amazon.com/Game-Programming-Patterns-Robert-Nystrom/dp/0990582906/ref=as_li_ss_tl?sa-no-redirect=1&linkCode=ll1&tag=akhn-20&linkId=abb3d10b5110e80969bf860188704f7c https://www.amazon.com/Game-Programming-Patterns-Robert-Nyst... HN's own @munificent wrote a book discussing the most important design patterns in game design. Good book applicable beyond games. # Game engine architecture https://www.amazon.com/Engine-Architecture-Second-Jason-Gregory/dp/1466560010/ref=as_li_ss_tl?_encoding=UTF8&psc=1&refRID=CYQ60B781NB1PD69E20Y&linkCode=ll1&tag=akhn-20&linkId=d234fcc54fc7579edd423dccfe0d47a4 https://www.amazon.com/Engine-Architecture-Second-Jason-Greg... # Computer graphics: Principles and Practice https://www.amazon.com/Computer-Graphics-Principles-Practice-3rd/dp/0321399528/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1484843854&sr=1-1&keywords=computer+graphics&linkCode=ll1&tag=akhn-20&linkId=ce5d19658fd2884b7b6bf7ceb09686dc https://www.amazon.com/Computer-Graphics-Principles-Practice... This is more of college textbook if you'd prefer that but the WebGL one is more accessible and less dry. # Physically Based Rendering & Real-Time Rendering These discuss some state of the art techniques in computer graphics. I'm not going to claim to have really read them but from what I've seen they are very solid. https://www.amazon.com/Computer-Graphics-Principles-Practice-3rd/dp/0321399528/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1484843854&sr=1-1&keywords=computer+graphics&linkCode=ll1&tag=akhn-20&linkId=ce5d19658fd2884b7b6bf7ceb09686dc https://www.amazon.com/Computer-Graphics-Principles-Practice... https://www.amazon.com/Physically-Based-Rendering-Third-Implementation/dp/0128006455/ref=as_li_ss_tl?s=books&ie=UTF8&qid=1484843804&sr=1-1&keywords=physically+based&linkCode=ll1&tag=akhn-20&linkId=1c04902237f3600b48d26a8d3e9f507b https://www.amazon.com/Physically-Based-Rendering-Third-Impl...
- andrewmcwatters 10y agoI would say C more than C++, with the latter only emerging into popularity due to major game engines within the last couple of decades.
- coherentpony 10y agoHmmm. The first official C++ standard was published in 1998, so 'the last couple of decades' covers pretty much the entirety of languages standardised life.
- shuntress 10y ago"I would say Latin more than English, with the latter only emerging into popularity due to major nations within the last couple of centuries"
- optionalparens 10y agoNow mostly retired, but I've been doing game dev for a couple of decades. I would say based on my career and that of my peers, it is more correct to say C or even assembler is the traditional graphics programming language with regard to games. It just depends on your definition. For that matter, if we consider things like CAD, 3D modeling/animation (using APIs/scripting), movie production, etc. to be graphics programming, again there are some differing results as to which language you use. It also really depends on what time period we're counting as the "start" and if we value older games or periods of higher but simpler productions vs. now. For instance, I wrote quite a lot of code against NES, SNES, Genesis, Atari, Arcade machines, C64, and so on in assembler. 68000-based systems alone are such a huge chunk of sheer volume of games and most of us wrote quite a bit in pure assembler with regard to graphics. On other systems that were faster or for different game requirements, we definitely used a ton of C, only moving to C++ later. In the case of C++, it's almost hard to even call things C++ at times. To be honest, most decent game engines I've worked on essentially use C++ to practically rewrite the language and go to great lengths to avoid some of the primary selling points of C++. It's sort of pick and choose some good things about C++ or at least powerful things while avoiding some of the burdens of C with regard to games. Obviously general C++ programming is different, so keep in mind I'm only referring to professional games programming. As things have progressed, people are indeed using more of what the newer C++ standards offer, but most of the same things still hold true. Where one has a tough argument with regard to graphics is the fact that so much now happens on the GPU, which one can argue is its own thing given stuff like shader languages.
- OnACoffeeBreak 10y agoThe author answered a few question in this /r/gamedev thread: https://www.reddit.com/r/gamedev/comments/5otq0r/a_trip_down_the_lol_graphics_pipeline/ https://www.reddit.com/r/gamedev/comments/5otq0r/a_trip_down...
- ggregoire 10y agoSeveral years ago, if I had to choose a video game company where I would loved to work as a software developer, it would have been Blizzard Entertainment. Now, it would definitely be Riot Games. As player, spectator and developper, I'm so impressed by their work, the evolution of their game since the release in 2009, how they listen their community [1], try new things and, most of the time, admit their mistakes (e.g. removing the ranked solo queue in 2016) and rollback [2] or improve their changes when it's needed. Their game is the most played game ever. ~100 millions active players every month [3]. Their game is also the most watched game ever. ~40 millions unique viewers for the finals of the last World Cup in September [4]. Hundreds of thousands of viewers on Twitch every day (without even counting the Asian region). They have revolutionized the "e-sport" in Occident. I don't play anymore (for now) but I'm still watching most of the professional games because they created an accessible, passionate and entertaining game to watch (for those interested, the new season just started in Korea, China and Europe, and tomorrow in North America [5]). Really inspiring. Congratz Riot Games. [1] https://www.reddit.com/r/leagueoflegends https://www.reddit.com/r/leagueoflegends [2] http://na.leagueoflegends.com/en/news/game-updates/competitive/riot-pls-ranked-pls-2017-season-ranked-changes http://na.leagueoflegends.com/en/news/game-updates/competiti... [3] http://www.riftherald.com/2016/9/13/12865314/monthly-lol-players-2016-active-worldwide http://www.riftherald.com/2016/9/13/12865314/monthly-lol-pla... [4] http://www.espn.com/esports/story/_/id/18221739/2016-league-legends-world-championship-numbers http://www.espn.com/esports/story/_/id/18221739/2016-league-... [5] http://www.lolesports.com/en_US http://www.lolesports.com/en_US
- oblio 10y agoValve is pretty cool. Both their products and their internal policies. And regarding Riot, their marketing is (was?) really shady.
- omni 10y ago> And regarding Riot, their marketing is (was?) really shady. If you're going to throw shade like this it'd be helpful to bring some examples, I have no idea what you're referring to so this contributes nothing to my understanding other than FUD.
- seanalltogether 10y agoIt's interesting to me how a few of the effects are still baked into the textures, which means they still can't let the user rotate their camera. Most people feel there is an advantage to playing on the bottom side due to camera perspectives, and allowing users to rotate their cameras could nullify this disadvantage.
- Asooka 10y agoThey could just bake two versions for the two possible views and let you select between them. Or even just always put the enemy team on top.
- che_shirecat 10y agoI'm always impressed by how well hugely popular games like League and CSGO run on bottom-tier machines. Maybe it really isn't all that impressive and its just the number of poorly optimized bloatfests out there that skews my perception
- noio 10y agoNope, as a gamedev I can say that it definitely is impressive. As with all optimization it is hard: as you try to squeeze more out of the machine your code gets less and less elegant.
- optionalparens 10y agoI agree as well. Most of my fastest, "best" code is awful to look at because it has to be. It's full of crazy comments and hacks that were necessary for the hardware, language, and time usually. I think as processing power has increased, the low-level code is actually much less ugly. This is in no small part due to astronomical leaps in game design, engine design, and development time and other resources. Still, in my experience any codebase that pushes a large amount of technical boundaries tends to be full of huge "WTF is this" moments that require explanation. It is an achievement if you can create a decently powerful codebase that can survive rapid changes and additions. It's much more common, but I've seen and worked on AAA codebases that would break if you blew on them.
- teej 10y agoIt's actually key to obtaining a supermassive audience. People will roll their eyes at me for this, but one of the major reasons that FarmVille was able to reach 80M monthly actives was due to aggressive performance optimization at the bottom end and progressively turning off graphics features based on frame rate.
- sputknick 10y agoAlong the lines of this, can anyone recommend a blog post, or an article that demonstrates the mathematics that goes into game design? I want to show my 8 year old who wants to build games one day why math is important. Maybe something that shows how matrices are used to show placement, or vectors to drive movement?
- adamnemecek 10y agoTeach them to program first I think.
- teej 10y agoThis may help https://nrich.maths.org/1374 https://nrich.maths.org/1374
- corysama 10y agoNot exactly, but you might like https://www.reddit.com/r/videogamescience/ https://www.reddit.com/r/videogamescience/
- mastax 10y agoSee also the fantastic graphics studies produced by Adrian Courreges. http://www.adriancourreges.com/blog/2016/09/09/doom-2016-graphics-study/ http://www.adriancourreges.com/blog/2016/09/09/doom-2016-gra...