
"There's a long-running joke around playing DOOM on strange devices. Fans of the iconic first-person shooter have fired it up on everything from calculators to pregnancy tests since the source code was made freely available online. Now someone's discovered perhaps the weirdest way to play DOOM yet: in our favourite free 3D app. Running Doom in a Blender Icon from r/blender Alex Telford's contribution to the cult of DOOM is to run the game on an icon in Blender using the open-source DOOM Python API Doomviz."
"To make it work, he gave icons a custom scale (12x). Since icons don't draw immediately after they load, he says to "preflight" them by displaying the latest frames under the video as tiny icons. This gives Blender a run-up before drawing the main icon. The main icon shows one a few frames behind, so it's already been cached. Updates are done with a modal operator on a timer at a set interval and inputs are handled as toggle properties to simulate press/release."
DOOM runs inside Blender by using the open-source DOOM Python API Doomviz to render gameplay into an icon. Icons are scaled to 12x to make the content visible. Because icons do not draw immediately after loading, a preflight technique displays recent frames as tiny icons beneath the video to prime Blender's cache. The main icon displays frames slightly behind so they are already cached. Frame updates are managed with a modal operator on a timed interval and inputs are simulated via toggle properties that emulate press and release. The result is a playable DOOM instance within Blender, including on the default cube.
Read at Creative Bloq
Unable to calculate read time
Collection
[
|
...
]