News for hackers. Stuff that matters.
Re:Show HN: 3D Raycasting Engine in JavaScript by tomxor on Tuesday March 31, 2020 @07:19PM (#22743846)
Very neat. Shameless plug: Things can get extremely minimal if you make the view frustum orthogonal and also use raymarching instead, then the geometry (SDF) is very concise to define... a lot of the math disappears and the code gets super short... like 140 chars short:

  Spheres + Displacement
  https://www.dwitter.net/d/15947
  https://www.dwitter.net/d/15951

  Spheres Orbit + Fake Lighting
  https://www.dwitter.net/d/16192

  "Smoke" (3D perlin-esc noise)
  https://www.dwitter.net/d/16179
  https://www.dwitter.net/d/16169

  Snowman + Snow
  https://www.dwitter.net/d/16955
Not very practical for much of an engine of course, and also much slower than casting, but it makes it dead easy to understand by removing matrix transforms et al.

There are no comments on this comment yet.