News for hackers. Stuff that matters.
Re:A Tiny Wolfenstein-Like Software Engine by WalterGR on Wednesday March 07, 2018 @12:41AM (#16534508)
Can anyone recommend something similar but with more code comments?
Re:A Tiny Wolfenstein-Like Software Engine by simias on Wednesday March 07, 2018 @04:53AM (#16535342)
I 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 platform without hard float at the time).

It looks like this while running: https://svkt.org/~simias/misc/wolf-floor.png

That being said if you're interested in writing something like that I recommend that you use any basic tutorial on raycasting and try implementing it "from scratch" yourself, it's pretty simple and quite fun IMO. IIRC I used this one: http://lodev.org/cgtutor/raycasting.html

Re:A Tiny Wolfenstein-Like Software Engine by diimdeep on Wednesday March 07, 2018 @12:06PM (#16537792)
Please add Readme with few words about project.
Re:A Tiny Wolfenstein-Like Software Engine by rileyphone on Wednesday March 07, 2018 @12:55AM (#16534545)
https://github.com/antirez/kilo

A text editor by the guy that made redis, in less than 1000 lines and a lot of comments.

Re:A Tiny Wolfenstein-Like Software Engine by pls2halp on Wednesday March 07, 2018 @04:43AM (#16535296)
There’s also a tutorial to build kilo at https://viewsourcecode.org/snaptoken/
Re:A Tiny Wolfenstein-Like Software Engine by buzzier on Wednesday March 07, 2018 @07:54AM (#16536021)
Tiny Renderer or how OpenGL works: software rendering in 500 lines of code

https://github.com/ssloy/tinyrenderer

Re:A Tiny Wolfenstein-Like Software Engine by s-macke on Wednesday March 07, 2018 @06:21AM (#16535691)
Very similar technique (raycasting), but for different type of data.

https://github.com/s-macke/VoxelSpace

The text in the README describes the technique very well. The JavaScript code is a little bit more complicated to read because most of the source contains the usual organizational tasks around the algorithm (initialization, keyboard input, ...). But this is also true for the provided C-code of this article.

Re:A Tiny Wolfenstein-Like Software Engine by PyComfy on Wednesday March 07, 2018 @04:45AM (#16535308)
Re:A Tiny Wolfenstein-Like Software Engine by Entalpi on Wednesday March 07, 2018 @09:05AM (#16536375)
I am writing a rendering engine that I try to keep minimal and clean while having some cool computer graphics stuff in it. Although it is in modern C++. :-)

It uses a deferred rendering pipeline and currently I am trying to get light volumes to work.

https://github.com/Entalpi/MeineKraft

Re:A Tiny Wolfenstein-Like Software Engine by glouwbug on Wednesday March 07, 2018 @12:19PM (#16537895)
Thats a very interesting name for your project
Re:A Tiny Wolfenstein-Like Software Engine by dejv on Wednesday March 07, 2018 @05:35AM (#16535512)
Not really better documented, but still great gem to read: https://github.com/fogleman/Craft
Re:A Tiny Wolfenstein-Like Software Engine by ahuth on Wednesday March 07, 2018 @10:31AM (#16537015)
Biased because it's my own, but here's one in Javascript and React: https://github.com/ahuth/raycast.