5 ms·
Few things consistently blow my mind as insane graphics demos https://www.shadertoy.com/view/4dfGzS https://www.shadertoy.com/view/4dfGzS (or basically anythin
by adamnemecek 10y ago
Few 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.