Raycasting engine in Factorio (vanilla 0.17) - Facto-RayO v1.0

Channel:arrow in my gluteus maximus · Length:13:09 · Published:2019-04-23 · Views:1027071

Watch on YouTube

Summary

A demo of a raycasting 3D engine built entirely from in-game mechanisms in vanilla Factorio 0.17. It renders simple 3D scenes, producing a new frame every 45 game ticks, with the video sped up to compensate for low UPS.

Why HN recommends it

HN points to it as a showpiece of what Factorio's circuit network can compute, alongside other absurd in-game computing feats.

Computer graphics & rendering · Speedrunning, glitches & game hacking

Subtitles (excerpt)

This is Facto-RayO, a raycasting engine that works in vanilla factorio. It can be controlled by ctrl clicking items out of chests positioned around the screen. You can go forward backwards rotate clockwise rotate anticlockwise strafe right and strafe left. It's not possible to look up or down. In that way it's very similar to early 3D games, like wolfenstein 3D. It's not yet possible to implement Doom in this raycasting engine due to another limitation. All objects have to be the same height. But it would still be possible to render something like the TI-84 version of doom. Despite the limitations of the engine, it also offers a lot of features. For example, the FOV can be changed. Extreme values, like 360° are no problem. Of course the image is very distorted at this FOV. But we can go even further. We can change the direction of every individual ray. This can be used for example to introduce a blind spot. Or if you want one side of the screen to be a mirror image of the other side. That is also possible. Or if you want to turn the screen into some sort of kaleidoscope, that's also not a problem. Another feature of the engine is collision detection. You can't simply walk through walls.

On Hacker News

A little bit off topic but I recently saw something regarding a Ray-tracing engine built inside of the game Factorio. Check it out here - [VIDEO] — aphextim, 2019-05
You mean the Combinators and circuit network? Pretty visual already: [LINK] I mean it basically runs doom already: [VIDEO] — Cthulhu_, 2021-02
When I saw this title, I first thought it was about understanding the cockroach-like aliens in Factorio, but it is actually about queuing and congestion and parallel processing with conveyor belts and factories! With the caveat that Factorio is EXTREMELY addictive, properly described as "programmer crack", here are some other Factorio related discussions: Factorio – a game where you can automate … — DonHopkins, 2019-07

Related videos