3D Game Programming

Learning and science

game programming tutorial

SHOW HN2017

109points
50comments
#411of 2,242 in 2017
Top 19%of 2017 by points

How HN took it

RoastedHalf or more of the comments are critical

2 positive, 4 neutral or asking, 0 mixed, 9 critical, out of 15 comments about the project. Thread score -0.24.

Execution: 1 for, 5 againstIdea: 0 for, 3 againstDesign: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Good for learning low-level graphics and math, with simple examples

    From 3 comments
    • ALways nice to see simple examples, but just going through an example, I see this: imgWidth = pow(2, log(sqrt(stat_p.st_size/3))/log(2)); And I have no clue why because if you…
      NKCSS on HN
    • Honestly, though, it's not like the Windows API parts of those examples are clunky or hard to understand. It's extremely straightforward code (effectively probably just using…
      ygra on HN
    • I think the intention of this is to get closer to "on the metal" as a teaching tool of the math and low-level graphics rendering. Using SDL or others would abstract all that away.
      cabaalis on HN

Objections

  • Tied to Windows; cross-platform libraries like SDL would widen reach

    From 3 comments
    • This is nice! Too bad it's tied to one platform (Windows), instead of some more generic API (like SDL or opengl).
      Ace17 on HN
    • I do not recommend learning the Windows API. There are convenient crossplatform alternatives to it for this use-case.
      partycoder on HN
    • > There's no harm in using/coding against the windows api It needlessly restricts your platform though. For example, I was very interested in the handmade hero tutorials linked…
      dkersten on HN
  • Windows API is clunky and creates vendor lock-in

    From 2 comments
    • Well, you said it yourself. "WndProc". These abbreviations is something you will see frequently and you will have to spend time memorizing them. Better identifiers are possible.…
      partycoder on HN
    • There's harm. It's called "vendor lock-in". https://en.wikipedia.org/wiki/Vendor_lock-in Windows API is carefully designed to maximize costs of switching to another platform.…
      partycoder on HN
  • Code has an unclear image-width calculation that gives inconsistent results

    From 1 comment
    • ALways nice to see simple examples, but just going through an example, I see this: imgWidth = pow(2, log(sqrt(stat_p.st_size/3))/log(2)); And I have no clue why because if you…
      NKCSS on HN

Questions

  • Why the image width calculation truncates to different values

    From 1 comment
    • ALways nice to see simple examples, but just going through an example, I see this: imgWidth = pow(2, log(sqrt(stat_p.st_size/3))/log(2)); And I have no clue why because if you…
      NKCSS on HN

Alternatives named

  • Handmade Hero

    From 2 comments
    • If you're into game programming, Casey Muratori's Handmade Hero [1] project is worth checking. From the website description, “Handmade Hero is an ongoing project to create a…
      ePierre on HN
    • Casey goes through the math, programming, and the logical processes of understanding how to build a an engine and a game with that engine. Its extremely deep, and extremely…
      pooloo1 on HN
  • SDL

    From 2 comments
    • > There's no harm in using/coding against the windows api It needlessly restricts your platform though. For example, I was very interested in the handmade hero tutorials linked…
      dkersten on HN
    • No, on Windows, SDL will interface directly with the Windows API, not GTK or Qt. And will give you a native window, the same as if you do it by hand. Proof:…
      partycoder on HN
  • 3D Math Primer for Graphics and Game Development

    From 1 comment
    • Allow me to recommend this book as well: 3D Math Primer for Graphics and Game Development https://www.amazon.com/Primer-Graphics-Development-Wordware-Library/dp/1556229119 It…
      cabaalis on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/15793156)