frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Anthropic’s Nasdaq debut

https://www.reuters.com/business/finance/anthropics-historic-debut-put-ais-promise-peril-wall-st-...
810•wslh•6h ago•1548 comments

Pancreatic cancer halted by virus injection in three patients

https://www.newscientist.com/article/2528235-pancreatic-cancer-halted-by-virus-injection-in-three...
452•cybermango•6h ago•64 comments

Synology Security Advisory

https://www.synology.com/en-uk/security/advisory/Synology_SA_26_21
65•choult•1h ago•29 comments

Claude solves two open problems in the physics of black holes

https://www.anthropic.com/research/claude-black-hole-physics
340•cybermango•6h ago•154 comments

How to CAD Almost Anything

https://ocw.mit.edu/courses/res-16-002-how-to-cad-almost-anything-january-iap-2024/
57•o4c•2d ago•10 comments

RegExr: Temporarily Offline

https://regexr.com/
21•somebudyelse•1h ago•14 comments

Garage Door Spam

https://blog.harrison.page/garage-door-spam/
720•harrisonpage•3d ago•304 comments

The 98% Slot Machine: How Paid Advertising Became an Extraction Tax

https://globalcommercegraph.com/writing/the-ninety-eight-percent-slot-machine
167•dev1one1•5h ago•84 comments

Should governments slow frontier AI? Jacob Coxon and Robin Hanson debate [video]

https://www.youtube.com/watch?v=lwfewYL7X0o
61•sandslash•4h ago•106 comments

Show HN: Cornhole News – A Hacker News inspired site for news across the Midwest

https://cornholenews.news
175•cornholemedia•8h ago•86 comments

Someone reported java4shell bug in September 2026

https://github.com/openjdk/jdk/pull/32781
340•notmine1337•11h ago•90 comments

UK government forced to admit it issued Apple a secret encryption order

https://macanorak.com/uk-government-forced-to-admit-it-issued-apple-a-secret-encryption-order/
458•Terretta•7h ago•197 comments

Rebuilding my local voice assistant pipeline

https://blog.platypush.tech/article/Rewriting-my-voice-assistant-pipeline
36•todsacerdoti•2h ago•2 comments

Launch HN: Onlook (YC W25) – An open-source developer tool for designers

https://github.com/onlook-dev/onlook/
78•D_R_Farrell•7h ago•66 comments

Making 8-page foldable zines from a single A4 sheet in the browser

https://krthr.co/paper-folds-and-whats-new-in-fanzines-app/
227•krthr•10h ago•50 comments

Reverse-Engineering Kevin J. Lang's Lost OCaml Code in Apache DataSketches

https://www.tisonkun.io/posts/ai-repair-program/
22•tison•3d ago•0 comments

Ruby2ßhell: Pre-authentication RCE on stock Rails

https://verialabs.com/ruby2shell/
374•jdns•18h ago•159 comments

Computer Graphics from Scratch (2021)

https://www.gabrielgambetta.com/computer-graphics-from-scratch/index.html
34•ibobev•2d ago•9 comments

Nintendo takes Picofly firmware down from GitHub [video]

https://www.youtube.com/watch?v=-TLCGUpoD6c
245•cowlevel•1d ago•95 comments

Pete warden on local AI, open models, voice interfaces, the future of hardware

https://thedataexchange.media/pete-warden-moonshine/
201•datascientist•8h ago•184 comments

How the European Commission rolled out Matrix to more than 40k staff

https://element.io/blog/how-the-european-commission-rolled-out-matrix-to-more-than-40-000-staff/
643•liotier•12h ago•308 comments

Do not buy RAM, compress

https://curiousbits.nl/blog/do-not-buy-ram-compress/
233•Ecno92•14h ago•196 comments

An Oregon library ditched Dewey Decimal and got people excited about books again

https://www.fastcompany.com/91597520/oregon-library-ditched-dewey-decimal-wayfinding-system
178•bookofjoe•2d ago•134 comments

What's New in PHP 8.6

https://www.php.net/releases/8.6/en.php
265•netol•14h ago•126 comments

Unblockable communication with gravity

https://www.science.org/doi/10.1126/sciadv.aee0802
135•rbanffy•11h ago•49 comments

Court: 4th Amendment Disallows Use Of AI-Generated 'Probable Cause'

https://www.techdirt.com/2026/11/19/court-tells-cops-that-the-4th-amendment-doesnt-cover-ai-gener...
23•defrost•49m ago•6 comments

Adding Fortran Support to LLDB (GSoC 2026)

https://blog.llvm.org/posts/2026-09-07-gsoc-add-fortran-support-to-lldb/
30•JDevlieghere•3d ago•8 comments

Distributed, high-performance blob storage on SQLite

https://zerodha.tech/blog/high-performance-distributed-blob-storage/
248•ghostfoxgod•15h ago•68 comments

How to Make the Ink Used to Write Hamlet and the Declaration of Independence

https://lithub.com/how-to-make-the-ink-used-to-write-hamlet-the-declaration-of-independence-and-b...
66•ohjeez•8h ago•28 comments

Visa, Mastercard and JPMorgan Customer Data Leaked by Hackers

https://www.wsj.com/finance/banking/visa-mastercard-and-jpmorgan-customer-data-leaked-by-hackers-...
8•mikhael•14m ago•0 comments
Open in hackernews

Computer Graphics from Scratch (2021)

https://www.gabrielgambetta.com/computer-graphics-from-scratch/index.html
34•ibobev•2d ago

Comments

AlexeyBrin•2d ago
This is a great tutorial. I also bought the book published by No Starch Press.
vivzkestrel•1d 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?

Frotag•1d ago
(amateur explanation incoming, should probably double check elsewhere)

I think of it as the world is biggest possible 3d-space. The camera is a 3d volume within the world, often a pyramid called the "frustrum" [0]. The screen is a 2d rectangle generated from the 3d camera frustrum. Loosely speaking, the pyramid is stretched into a rect prism and flattened. Or in other words, only objects inside the camera volume are rendered.

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

When referring to the world, yes a lot of rendering software uses the y-up convention, with x being horizontal and z being into / out of the screen.

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

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

I think y-up is the most common but sometimes its z-up like in Blender. I'm not super familiar with the history / how older software like directx does it.

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

The world, camera, and screen (and object) all have different coordinate systems.

The camera actually has a bunch of them: view space, clip space, normalized device coordinates (NDC).

View space mostly just applies a translation (and possible rotation if camera is rotated) to the world space coordinates of each object. So the camera (the tip of the frustrum / pyramid) is at origin now, still y-up and z in/out of screen (again assuming no camera rotation).

Clip space maps the view-space pyramid to a new pyramid where the rectangular cross-sections become square and the height of pyramid along z get's warped too. Both the final side-length of the squares and new pyramid height are usually configurable constants. This "handles" the effects of FOV (the slope of pyramid edges) and camera aspect ratio (the aspect ratio of rect cross sections in view space). [1]

NDC maps each square xy cross-section of the clip space pyramid to the same size square and stacks these cross-sections to form a cube. This models perspective (far objects need to be bigger (occupy same % of cross-section) to render at same size as something closer to camera / tip of pyramid). This is also where the coordinates get normalized to [-1,1]. [2]

And then screen space is rendered by flattening the NDC cube (ie draw on screen using xy, use z as order for drawing). There's also stretching involved since NDC is a cube but your screen is probably a rectangle.

> - 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?

Hopefully the previous blurb mostly answers this, with model space -> world space being the same as world space -> view space. That is, convert coordinates such that the origin changes from middle of object to the world's origin. And again, model space doesn't require normalizing anything to [-1,1], only NDC asks for that.

--

[0] When modeled by pyramid volume, they're called perspective cameras. When modeled by a rectangular prism, they're called orthographic cameras.

[1] I implied clip space is 3d but there's really a 4th dimension to make the math easy.

[2] Not sure why z has to be normalized to same range (ie why cant result be a rect prism instead of cube) but that's the convention I guess.

vivzkestrel•1d ago
- first of all thank you for the absolute detail on this one

- when i searched books i only see web GL, open GL, directX, vulkan etc and most resources online are also dedicated to these

- are you aware of a resource that teaches these things from scratch like without using any of the libraries above, it explains all these coordinate spaces, then vector math associated and starts drawing / rendering 3d objects that may eventually turn into discussions of collisions, physics , raytracing, shaders etc? (eventually gamedev)

Frotag•1d ago
No sorry, I don't remember seeing any all-in-one tutorials. For just the rendering / raytracing / shaders I remember using the OP and the github link below a lot.

https://natethegreat2525.github.io/projects/software_rendere...

vivzkestrel•1d ago
- super appreciate, as a token of appreciation, i ll share some of my links in return

- https://danielchasehooper.com/posts/shapeup/ Making a 3D Modeler, in C, in a Week

- https://medium.com/@togunchan/building-a-simple-3d-graphics-... How I Built a Raycasting 3D Engine in C++ (Wolfenstein-Style)

- i still havent found that one tutorial to be honest that makes it all click like it starts at a point on the screen, explains all coordinate spaces, explains enough vector math, linear algebra, draws cubes, explains shaders, raytracers, textures, physics, collisions and literally ends up making a quake game or something putting everything brick by brick together

Frotag
kbruner•1d 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.
•
1d ago
> i still havent found that one tutorial

Yeah I haven't either. I think what's helped me the most (both for rendering and algorithms in general) is reading about the general idea and then trying to derive the process myself. I don't worry about the math as much as the intuition and this usually reveals what steps are optional or are some kind of tradeoff (eg optimizing for memory over cpu, etc).

In fact I went through this whole learning process recently while trying to make a DSL + interpreter for defining enemy behavior in my game. Almost forgot how satisfying it feels to rediscover an algorithm and compare notes with existing versions.

molybd3num•1d ago
this is rather 'all over the place' and only graphics, but still a very good resource https://www.scratchapixel.com/