Hacker news

  • Top
  • New
  • Past
  • Ask
  • Show
  • Jobs

Computer Graphics from Scratch (2021) (https://www.gabrielgambetta.com)

75 points by ibobev 3 days ago | 14 comments | View on ycombinator

kbruner 2 days ago |

I don't see clipping in homogeneous space, which seems like a big omission. Can't beat good old Foley/van Dam - "Computer Graphics Principals & Practice" for stuff like this.

matinmonshizade about 5 hours ago |

When I studied my bachelor’s degree I had a computer graphics course which this book cover most of it and it is fabulous.

senthil_rajasek about 8 hours ago |

If you are looking for the source, like I did, to experiment then it is in the js files of the Demo links in each chapter. The demo code uses canvas and js to show the implementations. Looks fun!

vivzkestrel 2 days ago |

- a few major questions from a guy who is absolutely not familiar with this subject

- is x axies increasing towards right, y axis towards top, z axis into the screen ?

- are there other alignments for x,y,z?

- does every object have coordinates defined in the -1 to 1 range?

- what is local coordinate system compared to world coordinate system and does it also stick to -1 to 1 range? let us say I have a 3d Cube 5 units think, what does the local coordinate system for this look like and if I wanted to place it at 0,0,0 what do we do? multply local x world space in matrix form?

AlexeyBrin 2 days ago |

This is a great tutorial. I also bought the book published by No Starch Press.

undefined about 20 hours ago |

undefined