Live data from Hacker News

Graphics Programming Weekly

jendrikillner.com

1–10 of 30 posts

Re: Graphics Programming Weekly

#2
I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

Re: Graphics Programming Weekly

#4
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

May I suggest my book? The full contents are online: https://gabrielgambetta.com/computer-graphics-from-scratch/

Re: Graphics Programming Weekly

#5
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

I would start with fundamental rendering algorithms first before anything.

- Write a software rasterizer

- Write a software ray tracer

You can do all that without exiting a programming language's standard library.

I wrote a simple ray tracer (primary rays only) in vanilla C89 in about 30 lines (if you don't count the PPM image library that I made):

https://github.com/d26900/JamaisVu/blob/main/tests.c

Lines 66 - 91.

Screenshot: https://raw.githubusercontent.com/d26900/JamaisVu/main/scree...

Here are great resources:

- https://www.scratchapixel.com/

- https://www.gabrielgambetta.com/computer-graphics-from-scrat...

- https://erkaman.github.io/posts/junior_graphics_programmer_i...?

- http://immersivemath.com/ila/index.html

Re: Graphics Programming Weekly

#6
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

Graphical programming is a blast. I can totally see how it feels overwhelming, especially with a lot of ways to do the same thing. I will say though that once you get started a lot of the knowledge is transferable to different technologies and methods. I tend to recommend that people start with The Book of Shaders [0].

What kinds of things would you ultimately like to make?

[0] - https://thebookofshaders.com/

Re: Graphics Programming Weekly

#7
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

May I suggest my book? The full contents are online: https://gabrielgambetta.com/computer-graphics-from-scratch/

It's a great book! Thank you for your effort and for making it accessible to people for free!!!

Edit: (If I wouldn't be so poor, I would donate to your cause as well.)

Re: Graphics Programming Weekly

#8
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

Build a raytracer from scratch. It's a couple hundred lines of very straightforward C code, or much, much less with a higher level language. You will learn _a ton_ about the rendering pipeline, transformations, lighting, shading surfaces, etc. It is super satisfying the very first time you run and finally get some colorful shaded spheres floating in space--you'll remember that moment for a long time. This is just one of many resources to help get started with a raytracer: https://www.realtimerendering.com/raytracing/Ray%20Tracing%2...

Re: Graphics Programming Weekly

#9
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

May I suggest my book? The full contents are online: https://gabrielgambetta.com/computer-graphics-from-scratch/

I saw that book but was confused on the way to use it. Are you supposed to follow along and turn the pseudo code into a real implementation? Or is meant to be Passively read while perhaps taking notes?

Re: Graphics Programming Weekly

#10
post #2

I’ve always wanted to get into graphical programming but I always get hung up on creating anything. Shaders feel like black magic to me. And the tutorials are spread across many different technologies and techniques that it’s hard to determine where you should start.

Build a raytracer from scratch. It's a couple hundred lines of very straightforward C code, or much, much less with a higher level language. You will learn _a ton_ about the rendering pipeline, transformations, lighting, shading surfaces, etc. It is super satisfying the very first time you run and finally get some colorful shaded spheres floating in space--you'll remember that moment for a long time. This is just one…

Peter Shirley's one is nice too!

But he has 2 more:

https://gamephysicsweekend.github.io/

And you can do a very simple one in much less than 30 lines in C. ;)

Edit: Oops, it was the wrong one... This is the right one:

https://raytracing.github.io/

Sorry!

Post reply on HN