box2d-wasm VS three.js

Compare box2d-wasm vs three.js and see what are their differences.

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
box2d-wasm three.js
7 451
243 98,992
- -
0.0 9.9
almost 2 years ago 5 days ago
TypeScript JavaScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

box2d-wasm

Posts with mentions or reviews of box2d-wasm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-21.
  • Article reply “Godot is not the new Unity” from Juan Linietsky (BDFL of Godot)
    2 projects | news.ycombinator.com | 21 Sep 2023
    https://github.com/Birch-san/box2d-wasm.) Godot uses box2d, too, so that would be convenient, if I switch to godot, but only if it is worth the performance improvement, which it currently does not seem to be. Maybe next year.
  • WebGPU – All of the cores, none of the canvas
    7 projects | news.ycombinator.com | 16 Jul 2023
    Following the article, you build a simple 2D physic simulation (only for balls). Did by chance anyone expand on that to include boxes, or know of a different approach to build a physic engine in WebGPU?

    I experiemented a bit with it and imolemented raycasting, but it is really not trivial getting the data in and out. (Limiting it to boxes and circles would satisfy my use case and seems doable, but getting polygons would be very hard, as then you have a dynamic size of their edges to account for and that gives me headache)

    3D physic engine on the GPU would be the obvious dream goal to get maximum performance, but that is really not an easy thing to do.

    Right now I am using a Box2D for wasm and it has good performance, but it could be better.

    https://github.com/Birch-san/box2d-wasm

    The main problem with all this is the overhead of getting data into the gpu and back. Once it is on the gpu it is amazingly fast. But the back and forth can really make your framerates drop - so to make it worth it, most of the simulation data has to remain on the gpu and you only put small chanks of data that have changed in and out. And ideally render it all on the gpu in the next step.

    (The performance bottleneck of this simulation is exactly that, it gets simulated on the gpu, then retrieved and drawn with the normal canvasAPI which is slow)

  • Running JS physics in a webworker - part 1 - proof of concept
    6 projects | dev.to | 30 Oct 2021
    box2dwasm - an old, still maintained C++ library compiled to WASM. The documentation is lacking and developer experience seems poor.
  • Show HN: WASM and WebGL Fluid Simulation
    11 projects | news.ycombinator.com | 29 Jul 2021
    network inspector says 2.1MB. but that's dominated by a 1.3MB image.

    the main assets of the library are:

    - Box2D.simd.js (422kB)

    - Box2D.simd.wasm (266 kB)

    a minimal demo that uses the library can be created in just a few kB:

    https://github.com/Birch-san/box2d-wasm/tree/master/demo/mod...

  • [AskJS] How could I implement realistic fluids simulations (SPH?) in my video game?
    3 projects | /r/javascript | 9 Mar 2021
    A couple weeks ago I ported liquidfun to TypeScript + WebAssembly: https://github.com/Birch-san/box2d-wasm/releases/tag/v4.0.0-liquidfun.0

three.js

Posts with mentions or reviews of three.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-05.
  • I've made game engine (I think)
    2 projects | dev.to | 5 May 2024
    Hi! With Python and ThreeJS (https://threejs.org/) I have made app to make easy 3d visualisation, which you can test in browser. Like this:
  • Implementing 3D Graphics in React
    6 projects | dev.to | 3 May 2024
    In React, there are different libraries for rendering 3D. In this article, we will focus on how to use the Three.js Library, React Three Fiber library, and the React Three Drei library for creating 3D objects.
  • Implementing Bloom Effect with Mapbox and Three.js
    3 projects | dev.to | 8 Apr 2024
    Regarding the optimization of the effect, I found an issue on the three.js GitHub repository: https://github.com/mrdoob/three.js/issues/14104 The alpha channel issue seems to be a difficult problem, which has been present since 2018. At the end of the discussion, a solution proposed by a contributor is not to modify the UnrealBloomPass but to blend the source texture and target texture in the shader.
  • Finding Stars and Affirmations in the Sky with Three.js for Ayra Starr
    2 projects | dev.to | 1 Apr 2024
    Here's how we used Three.js to place and find affirmations in the sky.
  • Ask HN: Tips to get started on my own server
    19 projects | news.ycombinator.com | 25 Mar 2024
  • Incredible JavaScript Animation Libraries
    6 projects | dev.to | 24 Mar 2024
    Three.js is dedicated to generating 3D visuals, offering a powerful suite of features and tools. It is built atop WebGL and optimizes GPU usage for rapid rendering, ensuring smooth performance across devices, including those with limited resources. Three.js's versatility allows for the creation of a vast spectrum of 3D graphics and animations, ranging from simple shapes to intricate models.
  • JavaScript Libraries That You Should Know
    8 projects | dev.to | 19 Mar 2024
    7. three.js
  • React: A Mess That Shouldn't Exist In Web Development
    3 projects | dev.to | 9 Mar 2024
    Most of frontend libraries are made with Vanilla JS. An example of library that you might frequently use is "Chart.js". But React is not compatible with Chart.js so here it comes "React-chartjs-2" A wrapper library to work with Chart.js in React ecosystem. Oh you want to use "three.js" for some cool 3D? you will need "React-three/fiber". In my case, I need to implement "telegram-web-app", not so fast, I have to create my own wrapper to be able to use it.
  • JPEG XL Is a Stupid Name
    1 project | news.ycombinator.com | 5 Mar 2024
  • Things you should know before learning Three.js
    1 project | dev.to | 4 Feb 2024
    For one of my 100-Day Challenges, I chose to dive into Three.js, a JavaScript 3D library. It's easy to start learning, and it becomes difficult to master with the inclusion of shaders.

What are some alternatives?

When comparing box2d-wasm and three.js you can also consider the following projects:

rapier - 2D and 3D physics engines focused on performance.

BabylonJS - Babylon.js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.

PixiJS - The HTML5 Creation Engine: Create beautiful digital content with the fastest, most flexible 2D WebGL renderer.

p5.js - p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —

box2d.ts - Full blown Box2D Ecosystem for the web, written in TypeScript

model-viewer - Easily display interactive 3D models on the web and in AR!

LiquidFun - 2D physics engine for games

heatmap.js - 🔥 JavaScript Library for HTML5 canvas based heatmaps

Box2D - Box2D is a 2D physics engine for games

A-Frame - :a: Web framework for building virtual reality experiences.

comlink - Comlink makes WebWorkers enjoyable.

framer/motion - Open source, production-ready animation and gesture library for React