5 ms·
3D Game Shaders for Beginners
- sneeuwpopsneeuw 6y agoI can recommend this very much. Together with https://learnopengl.com/ https://learnopengl.com/ I learned most I know about graphics. The same thread in 2019: https://news.ycombinator.com/item?id=19895218 https://news.ycombinator.com/item?id=19895218
- forgotpwd16 6y agoLeanOpenGL is what I used my first time around OpenGL. Truly a great resource for someone to learn.
- Agentlien 6y agoFor anyone really wanting to learn computer graphics in depth I recommend the book Real-Time Rendering[0] A great way to explore, play around with, and share shaders is Shader Toy[1] [0] https://www.realtimerendering.com/ https://www.realtimerendering.com/ [1] https://www.shadertoy.com/ https://www.shadertoy.com/
- esperent 6y agoIt's an amazing book, but I think most beginners would struggle with it. It's more of an intermediate - advanced level overview of the entire field. Required reading of you're serious about getting into real time graphics, for sure.
- Agentlien 6y agoI was recently asked by a colleague how to get into rendering. I recommended this book to her. I did read through the first chapter again to see how beginner friendly the start was. It seems to assume some familiarity with linear algebra, but it seemed quite accessible. It's difficult to gauge when you already know the topic well and I'm still waiting to hear back from my colleague. edit: I might add that the reason I have a copy is actually that it was the textbok we used at the University.
- esperent 6y agoYeah, the early sections are good for beginners. Later sections less so - try reading through the chapter on PBR without prior knowledge, for example. I'm not saying this book is not suitable for beginners. But I think there are easier places to start and it's likely many beginners would get frustrated some time after the first few chapters unless they are very motivated or using it as part of a course (and hence having someone lead them through the material). For a beginner I'd recommend using this as a reference - something to keep on your shelf for years and keep coming back to as you go deeper into new areas of graphics - rather than trying to read it through and absorb all the material in one go.
- Agentlien 6y agoThose are excellent points and I think you're right. It's not the right recommendation for people just looking to dip their toes into the field. > try reading through the chapter on PBR without prior knowledge This is a tangent, but I honestly wish I could. It's a wistful fancy, but sometimes I wish I could experience something for the first time again.
- ggambetta 6y agoFor a gentle introduction to the theory behind all this, you might want to check out my book Computer Graphics from Scratch (https://gabrielgambetta.com/computer-graphics-from-scratch https://gabrielgambetta.com/computer-graphics-from-scratch). Freely available online!
- tvb12 6y agoIs learning OpenGL pretty much inevitable as a precursor to learning Vulkan? The main page of Khronos' beginner's guide to Vulkan has a quote which says "emphatically... NO", but then the first tutorial in the list gives as a prerequisite "some existing experience with 3D computer graphics" and links to a guide (https://paroj.github.io/gltut/ https://paroj.github.io/gltut/) which teaches OpenGL.
- exacube 6y agoOr DirectX. Mostly, I think the expectation is that folks won't handwrite vulkan, they'll use a higherlevel API, like a game engine's API.
- pjmlp 6y agoNowadays, unless one intends to become a graphics engine developer, using middleware is a much better option than sticking with a specific 3D API.
- Jasper_ 6y agoI'd rather suggest that people learn D3D11 first, if they can, instead of Vulkan. The OpenGL programming model has a lot of backwards ideas that can make graphics seem far more complicated than it is. Vulkan removes those and gets closer to the D3D11 style, but it also introduces a lot of more complicated ideas. Learning the whole gamut at once is a challenge. There are other options to get started with graphics. Frameworks you can use to start putting your toes in the water: any game engine, a higher-level graphics framework like raylib or bgfx, or a cross-platform graphics layer like WebGPU/wgpu. I don't want to gatekeep, just being realistic that if you're new to graphics in general, Vulkan might not be the best place to start. You'll get there eventually though.
- anchpop 6y agoIf they want to use Rust, wgpu-rs is basically a simpler and memory-safe version of the Vulkan API. Obviously the overhead will be unacceptable for some use-cases, but it's a good way of learning the core concepts of Vulkan and 3D rendering in general
- forgotpwd16 6y agoWhy they pushed a new repo (one commit), or they've always updated like that?
- pubby 6y agoFor single-dev projects it's not uncommon to have a massive first commit.
- forgotpwd16 6y agoThe repo had been re-submitted on HN two years ago, so I assume this isn't the first commit.
- zuzumarshal 6y agoOk