Top all-time · #2253
Lode Vandevenne
Personal blog · lodev.orgprogrammingmath
Lode Vandevenne's personal blog at lodev.org covers programming and math. Since 2014, 36 different Hacker News readers have linked it 46 times, most often “Raycasting”. No feed was found, so read it on the site itself.
Most-linked posts?
- Raycasting12 people · 12 mentions · first linked 2019-02-15
- Raycasting tutorial: build your own Wolfenstein 3D (2007)7 people · 8 mentions · first linked 2014-06-03
- Lode's Computer Graphics Tutorial6 people · 7 mentions · first linked 2018-11-01
- Lode's Computer Graphics Tutorials (2004-2018)2 people · 2 mentions · first linked 2016-08-04
What Hacker News says?
lodev has great oldschool tutorials: https://lodev.org/cgtutor/
Comment linking /cgtutor/
on “Finland adds the demoscene as a UNESCO intangible world cultural heritage”Submitted The XOR Texture (2004) as a story · 227 points
HN discussionAlso see: https://lodev.org/cgtutor/fire.html which is part of: https://lodev.org/cgtutor/
Comment linking /cgtutor/
on “How DOOM fire was done”Submitted Show HN: LogicEmu – Online Logic Simulator as a story · 210 points
HN discussionPretty sure the author followed this tutorial. http://lodev.org/cgtutor/raycasting.html
Comment linking /cgtutor/raycasting.html
on “A first-person engine in 265 lines of JS”Submitted Jmat.js: A new mathematics library in JavaScript as a story · 84 points
HN discussionThat's incredible. Was this the earliest instance of raycasting in the wild? Good intro to raycasting for those interested: https://lodev.org/cgtutor/raycasting.html
Comment linking /cgtutor/raycasting.html
on “New 3D FPS released for 1979 Atari 800”Submitted LodePNG: All-in-one PNG image decoder and encoder for C and C++ as a story · 56 points
HN discussionIt's a neat trick of projection, and really easy to hack on and extend yourself once you know the trick. Using your map of the space, cast a ray from the camera position through every column of the display rectangle; using the distance the ray travelled before intersecting the wall, you can calculate the apparent height of the wall seen in that column of the display; so, in that column, draw the wall that high. You…
Comment linking /cgtutor/raycasting.html
on “Build your own old-school 3D shooter in a weekend”Submitted Gammaplex Programming Language (2007) as a story · 13 points
HN discussionDoom’s predecessor Wolfenstein 3D was famous for using ray casting, and the Doom engine inherited ray casting and extended it to handle different floor heights. https://lodev.org/cgtutor/raycasting.html
Comment linking /cgtutor/raycasting.html
on “The joy of building a ray tracer, for fun, in Rust”Submitted Gammaplex Programming Language (2007) as a story · 11 points
HN discussionThere is a great tutorial (it's actually a series of them) which I used: http://lodev.org/cgtutor/raycasting.html It's old and C++ but explains raycasting very well. And there is also a similar project in just 265 JS lines: http://www.playfuljs.com/a-first-person-engine-in-265-lines/
Comment linking /cgtutor/raycasting.html
on “Show HN: 3D shooter in your terminal using raycasting in Awk”Submitted Lode's Computer Graphics Tutorial as a story · 6 points
HN discussionI wrote a similar code a few years ago, although it also supported textures (including ground and skybox, unlike the original Wolfenstein). I don't know if it'll be more to your taste but there are afew comments: https://bitbucket.org/simias/wolf/src/873cad46f3c8281e7d9429... the magic happens in wolf_horizontal_intersect. Note that I use fixed point which obfuscates the arithmetic a bit (I was targeting an embedded…
Comment linking /cgtutor/raycasting.html
on “A Tiny Wolfenstein-Like Software Engine”Submitted Raycasting as a story · 5 points
HN discussionhttp://lodev.org/cgtutor/raycasting.html ~200 LOC
Comment linking /cgtutor/raycasting.html
on “A Tiny Wolfenstein-Like Software Engine”Submitted Lode's Computer Graphics Tutorials (2004-2018) as a story · 4 points
HN discussionA Wolfenstein engine is pretty simple to replicate, it's basically a 2D top down game projected into the 3rd dimension. Here's how it works. http://lodev.org/cgtutor/raycasting.html A doom engine is a little more involved and requires BSP trees, more clipping/culling and something closer to actual 3d (floors and ceilings with variable heights, geometry that doesn't fit onto a grid). Both of the games used 2d sprites…
Comment linking /cgtutor/raycasting.html
on “Doom”Submitted Lode's Color Converter as a story · 3 points
HN discussionThanks for the hint! That's exactly what I was looking for as I have never looked into raycasting but having an interest in it. Direct Links: - https://nthorn.com/articles/batch_raycaster/ (batch variant) - https://lodev.org/cgtutor/raycasting.html (general intro)
Comment linking /cgtutor/raycasting.html
on “A Raycaster in Bash”Submitted Raycasting tutorial: build your own Wolfenstein 3D (2007) as a story · 2 points
HN discussionThere are https://lodev.org/cgtutor/raycasting2.html and https://lodev.org/cgtutor/raycasting3.html just FYI
Comment linking /cgtutor/raycasting3.html
on “A Raycaster in Bash”Submitted Lode's Computer Graphics Tutorial as a story · 1 points
HN discussionBeautiful. Correct me if I'm wrong, but this looks like a bash version of https://lodev.org/cgtutor/raycasting.html Edit: ah, just noticed this is in the readme :(
Comment linking /cgtutor/raycasting.html
on “A Raycaster in Bash”Submitted Lode's Computer Graphics Tutorial: Raycasting as a story · 1 points
HN discussionWhen I was in middle school, I had dabbled in coding but only knew how to make simple CLI applications that ran on the terminal. Then one day I stumbled on Lode's Computer Graphics Tutorial and I finally had easy to understand examples of how to open a window and draw some graphics on the screen. That led me to recreating a bunch of retro games (Pacman, Snake, Space Invaders, etc) that would not have been possible o…
Comment linking /cgtutor/
on “The XOR Texture (2004)”Submitted Turing Tumble Emulator in JavaScript as a story · 1 points
HN discussionhttps://lodev.org/cgtutor/examples.html#screen They're set by screen, exactly!
Comment linking /cgtutor/examples.html
on “The XOR Texture (2004)”Also compare this: https://lodev.org/cgtutor/raycasting.html It's a bit old but also explains a lot of the underlying logic. And it's not written in javascript so it may be more readable to some.
Comment linking /cgtutor/raycasting.html
on “A first-person engine in 265 lines (2014)”