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
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
- What 40,000 Videos Tell Us About The Trending Tab · Coffee Break · 13:50
- The Beauty of Bézier Curves · Freya Holmér · 24:25
- SM64 - Watch for Rolling Rocks - 0.5x A Presses (Commentated) [OUTDATED] · pannenkoek2012 · 24:38
- The Continuity of Splines · Freya Holmér · 1:13:50
- Reverse emulating the NES to give it SUPER POWERS! · suckerpinch · 22:21
- elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo) · Demoscene High-Quality Videos (Annikras) · 3:36
- Painting a Character with Maths · Inigo Quilez · 24:46
- The Real Story Behind Wayland and X - Daniel Stone (linux.conf.au 2013) · Mladen Mijatov · 45:35
- A Deep Dive into Nanite Virtualized Geometry · SIGGRAPH Advances in Real-Time Rendering · 1:09:59
- MarI/O - Machine Learning for Video Games · SethBling · 5:57
- Siggraph2019 Geometric Algebra · Bivector · 1:37:21
- SNES Code Injection -- Flappy Bird in SMW · SethBling · 6:31
- FIXING the ENTIRE SM64 Source Code (INSANE N64 performance) · Kaze Emanuar · 18:20
- I painted a Landscape with Mathematics · Inigo Quilez · 42:00
- Elevated by RGBA and TBC · BUTTONTANG · 3:36
- Creating a Doom-style 3D engine in C · Bisqwit · 18:49