News for hackers. Stuff that matters.
Re:Dissecting the 128-byte raycaster (2014) by nategri on Wednesday March 07, 2018 @02:00PM (#16538833)
Bonus content: Terry Davis randomly shilling TempleOS in the comments.
Re:Dissecting the 128-byte raycaster (2014) by monocasa on Wednesday March 07, 2018 @04:52PM (#16540261)
I wouldn't say that it's random. TempleOS seems to designed for the niche of classic style bare metal applications, extending the ideas behind 86DOS and C64 development on to modern systems.

Someone who's into a 128 byte DOS raycaster would probably find TempleOS to be pretty cool.

Re:Dissecting the 128-byte raycaster (2014) by c12 on Wednesday March 07, 2018 @03:18PM (#16539438)
The article itself is very interesting, the Terry Davis comments were the cherry on top.
Re:Dissecting the 128-byte raycaster (2014) by taneq on Wednesday March 07, 2018 @07:30PM (#16541270)
640x480x4bit is indeed like circumcision, yes.
Re:Dissecting the 128-byte raycaster (2014) by welfare on Wednesday March 07, 2018 @02:06PM (#16538885)
What happened to that guy? Haven't seen anything lately.
Re:Dissecting the 128-byte raycaster (2014) by TekMol on Wednesday March 07, 2018 @02:32PM (#16539110)
Re:Dissecting the 128-byte raycaster (2014) by busterarm on Wednesday March 07, 2018 @03:41PM (#16539679)
So he's not homeless?
Re:Dissecting the 128-byte raycaster (2014) by monocasa on Wednesday March 07, 2018 @04:49PM (#16540245)
AFAIU, he's on disability pretty much permanently.

Which I'm all for FWIW.

Re:Dissecting the 128-byte raycaster (2014) by xenadu02 on Thursday March 08, 2018 @02:22AM (#16542910)
For some reason Terry Davis is like nerd catnip.

I think we came to the conclusion that he has Tourettes, Schizophrenia, or some other mental condition which produce his racist rants, repetitive speech patterns, and hallucinations.

Re:Dissecting the 128-byte raycaster (2014) by tytytytytytytyt on Wednesday March 07, 2018 @04:08PM (#16539911)
TYVM, I almost missed that gem.
Re:Dissecting the 128-byte raycaster (2014) by a_t48 on Wednesday March 07, 2018 @02:02PM (#16538856)
The author implemented\improved the shader as https://www.shadertoy.com/view/MdXXz2

I copypasted the original code here - https://www.shadertoy.com/view/MdtcDX - neat!

Re:Dissecting the 128-byte raycaster (2014) by petercooper on Wednesday March 07, 2018 @04:40PM (#16540171)
Heads up to userbinator who posted about this in yesterday's mini Wolfenstein post BTW: https://news.ycombinator.com/item?id=16534119
Re:Dissecting the 128-byte raycaster (2014) by AtomicOrbital on Wednesday March 07, 2018 @02:01PM (#16538841)
writing in assembly is such a joy ... cuts to the essence ... such speed, power and danger ... especially when doing graphics pre gpu ... your post inspires me to get back on that saddle ... loved back when I found how to control one pixel then over a few days implemented bresenham's line algorithm then had objects moving in 3d with perspective projection all in a few pages of code, of course no libraries ... electrical engineering majors who get assembly as their first programming course like me are exposed to programming in the spirit of a chainsaw haircut

great post

Re:Dissecting the 128-byte raycaster (2014) by s-macke on Wednesday March 07, 2018 @01:37PM (#16538635)
To calculate a simple xor (color=x ^ y) to produce a texture for walls was a common hack in the early days of computer graphics. I used it frequently under DOS. It is still useful for these kind of hacks :-)
Re:Dissecting the 128-byte raycaster (2014) by hoosieree on Wednesday March 07, 2018 @01:43PM (#16538687)
It's visually distinctive as well. As soon as I saw the screen capture I thought "that's an XOR".
Re:Dissecting the 128-byte raycaster (2014) by msarnoff on Wednesday March 07, 2018 @03:54PM (#16539798)
It's known as "munching squares": https://en.wikipedia.org/wiki/Munching_square
Re:Dissecting the 128-byte raycaster (2014) by finalpatch on Friday March 09, 2018 @05:39AM (#16550945)
Author (of the article, not the demo) here. I still remember debugging this thing in Turbo Debugger in DosBox and the CDQ instruction was causing trouble because Turbo Debugger could not recognise it.
Re:Dissecting the 128-byte raycaster (2014) by Tepix on Thursday March 08, 2018 @04:10AM (#16543264)
I just tried it in dosbox 0.74 on Linux and it doesn't work - it renders very slowly and nothing that looks like that youtube video. Does it work for anyone else?
Re:Dissecting the 128-byte raycaster (2014) by bhhaskin on Wednesday March 07, 2018 @01:34PM (#16538607)
Thanks for posting this! It was a great read. I have always been interested in low level graphics programming.
Re:Dissecting the 128-byte raycaster (2014) by jfacoustic on Wednesday March 07, 2018 @03:13PM (#16539412)
That's real time? Awesome!