Login
You're viewing the code4lib.social public feed.
  • Nov 30, 2026, 3:01 AM

    *irritated sigh* are there any good C or C++ open source 3D physics engines that support wasm and *aren't* slop? I'm willing to compromise on the "good" part if necessary.

    💬 1🔄 10⭐ 4

Replies

  • Nov 30, 2026, 3:07 AM

    Jolt has a big AGENTS.md turd sitting in the project root, and their readme says to use a different project if you need physics in a wasm build anyway.

    Box3D looks perfect on paper, but the end of the readme says that he only uses the best hand picked slops for quite a lot of things, so that's also a non-starter.

    💬 1🔄 1⭐ 0
  • 💬 0🔄 3⭐ 7
  • Nov 30, 2026, 3:51 AM

    ok maybe I'm looking for the wrong thing here. The features I actually care about are queries (ray and simple shape casting), navmeshes, and constraints. I actually don't care about high performance physics simulation and consider it to be something of an albatross here, but I think the thing I want is usually called a "physics engine", but i figure if i have to have an actual physics sim to get all that i'll probably use it for incidental things

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 4:01 AM

    side thought, i think it's really funny how radically disconnected every physics engine demo is from how they're actually used in games. ah yes, the stack of too many cubes, everyone loves that game

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 1
  • Nov 30, 2026, 4:02 AM

    @aeva Last commit to the repo is a note to say they shut down the issues page because it got clogged with AI spam

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 30, 2026, 4:07 AM

    @aeva Which I guess is a way of saying

    (1) they haven't updated since Everybody Started Using Claude (Sep 2025-Jan 2026)

    (2) Maybe they don't like AI. Maybe

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 4:19 AM

    @aeva @mcc i have recently been feeling rather validated in my stance that "not having been updated in a long time" is a positive quality of software

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 8:06 AM

    @chrisamaphone @aeva @mcc I keep joking in my various projects that with how the mainstream is going, if we just don't give into the bullshit we'll win by attrition

    💬 0🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 30, 2026, 4:36 AM

    @ireneista @rygorous @aeva suddenly I'm reminded of the "flying ice cube" problem in molecular dynamics

    (temperature is often modeled / stated as the average kinetic energy of all the molecules.  if you don't heat your system up right, rather than the energy being distributed as independent motion of each molecule, the entire system of molecules will instead just... fly through space at high speed, like a frozen block of ice)

    https://en.wikipedia.org/wiki/Flying_ice_cube

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 30, 2026, 4:23 AM

    @aeva like you can't just go to a fencing match and say "well when I want to murder someone I usually do this" and just shoot a motherfucker!

    it's in bad taste and severely frowned upon!

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 7:09 AM

    @rygorous @aeva yes, you can. however a strange exotic fencing team known as "The Police" can, and they will have an exotic fencing dual with you with guns.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 30, 2026, 4:05 AM

    @aeva if you look at the textures we normally use to test Oodle Texture, they look nothing like most game textures because most game textures are always fine no matter what you do

    instead our test set contains things like this which look like no texture you are ever likely to use but makes every texture encoder look bad instantly

    this test is evil. trust me on this
    💬 3🔄 0⭐ 0
  • Nov 30, 2026, 4:05 AM

    @aeva that said, shout-out to the God of War team. your textures are positively demented, I hate it, also thank you for the torture tests

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 4:09 AM

    @aeva I can't post the images here because I don't own them, but imagine this:

    packing multiple things into channels of the same texture is reasonably standard

    well GoW (the 2018 one) went one further and has what I have to assume (I don't have the matching shaders) is textures where some channels are sampled with different UVs than other ones

    💬 2🔄 0⭐ 0
  • Nov 30, 2026, 4:10 AM

    @aeva so just imagine a 4-channel texture where R, G, B and A are just entirely different 1-channel textures sampled with different UVs

    FUN FACT: texture compressors don't like this much

    💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 30, 2026, 6:05 AM

    @rygorous @aeva I thought I remembered most of the details of that texture baker, but I don’t remember this. I guess it probably happened during the eleventh hour “uh… we have to fit on this Blu-ray…” scramble.

    💬 1🔄 0⭐ 0
  • Nov 30, 2026, 6:29 AM

    @jc @aeva I don't know what percentage of textures it was, just that we got a pretty big dump at one point and the GoW set had more "weird" textures (in the sense of "producing outliers in the rate/distortion charts") than all other games in the test set combined

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 30, 2026, 4:03 AM

    @aeva "Thanks for showing me early how badly your engine handles it when a dynamic collider sits on top of another dynamic collider, though"

    💬 0🔄 0⭐ 0