Urgent.News

What's breaking now, across thousands of outlets.

Tech

Wallhammer Web: building destruction in my TypeScript and WebGL2 engine

I have the first building destruction tests running in Wallhammer Web, my browser engine written in TypeScript and plain WebGL2. Click a wall and you can open a hole into the building. Remove enough support and the floors, walls and roof above it come down. The pieces keep the geometry of the building they came from, including windows and roof sections. Here is the current result. This is a raw…

The report describes the development of a browser engine called Wallhammer Web, written in TypeScript and using WebGL2 for graphics generation. Users can click on walls to create holes and cause the building to collapse, with pieces retaining the geometry of the original structure. The engine uses strict TypeScript and WebGL2 for graphics, focusing on code-based generation rather than loading image assets.

It includes separate modules for architecture, rendering, vegetation, and actors, with a modular design that separates the generation of buildings from the engine's rendering and simulation infrastructure. The simulation can run in Node without a canvas, allowing for structural analysis independent of rendering. The engine manages damage states, such as intact, cracked, breached, or gone, and uses a structural heuristic to determine which parts need to be supported to prevent collapse.

The destruction process generates a timeline for the collapse, which can be saved and used to render the sequence of events. Current challenges include optimizing collision detection between falling pieces and standing parts, as well as improving interior rendering and layout when large sections of a building disappear.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Property Portfolio Archival: Store and Expire Generated Promo Videos via API

A property-management campaign has an awkward operational constraint: OCR text extracted from listing photos must pass the publication policy, while generated promo videos must remain downloadable…

  • System generates promo videos via API from approved photos.
  • Archival process verifies copy before expiring generated assets.
  • Presigned URLs enable user downloads of private video copies.

Routing Jobs by UK Postcode Area: A Small Lookup Pattern for Mobile Service Businesses

Mobile businesses in the UK (cleaners, locksmiths, mobile mechanics, dog groomers) often split work by area. The enquiry form collects a postcode, then someone reads it and forwards the job.

  • System extracts outward code from full UK postcode using regex pattern
  • Outward code maps to specific teams for job routing
  • System logs raw postcode, parsed code, and final team for error tracking

Fake Video Call Scam: The "Fix Your Audio" Trap Targeting Developers

Cover image alt: Person on a laptop video call, illustrating a fake video call scam A message from a colleague, a meeting link, a familiar face in the lobby, then "I can't hear you, run this fix."…

  • Hackers use stolen webcam footage to create convincing impostor videos
  • Fake audio problem prompts target to click an update, installing malware
  • FBI recommends verifying meeting invites through separate channels and enabling MFA

More from Friday 13 November →