Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Xiaomi MiMo v2.6(xiaomi.com)
    153comments
  2. NASA’s Mars Sample Return mission is dead(science.org)
    171comments
  3. Transformers Explained Visually(poloclub.github.io)
    17comments
  4. I don't want to read what you didn't write(colinbreck.com)
    discuss
  5. What Sun got wrong(dtrace.org)
    256comments
  6. Data Protection Commission fines Google €403M over processing of location data(dataprotection.ie)
    discuss
  7. Attention is all you have(alicegg.tech)
    150comments
  8. AI coding has made CI a bottleneck, so we reworked ours to keep up(linear.app)
    82comments
  9. Divide by depth for instant 3D(gabrieloc.com)
    5comments
  10. The Advisory Group on Mathematics and Artificial Intelligence(terrytao.wordpress.com)
    29comments
  11. Why does mathmain need an encrypted loader?(safedep.io)
    26comments
  12. Apple Copland D11E4 Booting in the Browser(pagetable.com)
    18comments
  13. Grok 4.7(x.ai)
    368comments
  14. In Search of a Compositional Theory of Self-Stabilization(muratbuffalo.blogspot.com)
    3comments
  15. Roboharm: Do frontier robot policies refuse unsafe instructions?(robocurve.org)
    10comments
  16. US halts flights at busy East Coast airports, says fiber line cut(reuters.com)
    96comments
  17. Frontier AI on Your Own Hardware(timdettmers.com)
    30comments
  18. Turn off and restrict access to Apple Intelligence features on Mac(support.apple.com)
    131comments
  19. Kev: Tiny Jev-like family of decision models built on top of Qwen3.5(github.com/jaredpalmer)
    170comments
  20. Python Workers are now generally available(cloudflare.com)
    26comments
  21. TXR: An Original, New Programming Language for Convenient Data Munging(nongnu.org)
    discuss
  22. The Journey of a Migratory Shorebird(newyorker.com)
    discuss
  23. HERMES radio enables voice and data communication over vast distances(ieee.org)
    34comments
  24. How do Traffic Signals Work (2019)(practical.engineering)
    34comments
  25. Show HN: Foremerge – Catch intent conflicts between parallel coding agents(github.com/naw103)
    discuss
  26. Avoiding the babbling-idiot failure in a time-triggered communication system(ieee.org)
    6comments
  27. Fable 5 – Median thinking declined in August(twitter.com/lon)
    215comments
  28. Noodle Gallery – Self-hosted photo and video manager forked from Immich(digitalescapetools.com)
    34comments
  29. A restored PDP-11/83 serving this page on 211BSD Unix(pdp1173.com)
    38comments
  30. M5 Ultra Mac Studio Review(macstories.net)
    213comments

Divide by depth for instant 3D

46 pointsby 2d agogabrieloc.com
5 comments
2d agoHN ↗

Hi! I wrote a few notes on how 3D cameras work with interactive examples to hopefully demystify a pretty complex topic that I once struggled with. Maybe this is useful for someone here, and if not, there are fun sliders to play with!

1h agoHN ↗

The visuals and sliders are great!

Maybe consider clipping the ball properly on the edges of the sides of the view frustum ?

Similarly the near and far could also be clipped; i know this is not true of the math necessarily but is the expected result in 3d graphics applications.

1h agoHN ↗

FWIW, if you start with "The view frustum is a 90 degree pyramid with the tip cut off at z = 1 and the 'end' at infinity", you can then work out how to map that to a NDC using a matrix and perspective divide.

I've used that when teaching short "Graphics 101" (not in the first session though) and the math comes out more intuitive than the usual "here's how to calculate a perspective matrix, don't ask where these numbers come from" version.

54m agoHN ↗

For me learning on my own, it was even illustrative to not use a near plane and see how things behind the camera would still appear in front of it.

A lot of 3D graphics can be derived pretty easily just from knowing a few basics like divide by depth. I think knowing how to construct a transformation matrix from a coordinate system basis is another one -- that would remove the need to look up how to construct a perspective matrix, for example.

A few things like that will get you pretty far and you can kind of take the same journey of discovery as early 3D pioneers. That's one of the best ways to learn because you're much more likely to remember something you figured out compared to something you just read about.

It gets tricky with perspective-correct textures, but running into issues like that on your own (even if not solved on your own) is part of the fun of learning, I think.

7m agoHN ↗

The sliders are great UX on mobile, love the detail to attention.