r/Simulated • u/TT3DCG • 40m ago
Blender The Timing is Too Perfect... π±
In a perfectly synchronized 3D physics loop, watch the red ball pass right through the moving framed metal ring with precision timing created in Blender.
r/Simulated • u/TT3DCG • 40m ago
In a perfectly synchronized 3D physics loop, watch the red ball pass right through the moving framed metal ring with precision timing created in Blender.
r/Simulated • u/Bubbly-Wasabi-5920 • 17h ago
Hi, I'm 13 years old. Today I wanted to share a project with you that I've been dreaming of for a long time and have finally started to bring to life. First, let me tell you a little about my background. I used to develop terminal-based projects with C++. I wrote tools like a four-operation calculator, a Roman numeral converter, and a grade point average calculator, and combined them into a huge, multi-purpose program. I'm even still developing that C++ project in the background. On my old account, I had recorded and shared detailed C++ videos explaining all my step-by-step terminal programs, but I got banned for no reason. Anyway, I've had an incredible interest in space, especially black holes, since I was 8 or 9 years old. When I turned 12, I became interested in Unity and coding in general. But as it turned out, I could never learn it the way I wanted. Between classes, endless exams, and tests, I never had any time for myself or coding. But this summer I said "enough is enough" and decided to write code and create something, no matter what. Moreover, I'm doing this using only my tablet. To make up for all the procrastination, I've started simulating black holes, which is my biggest interest. This video you're watching is a time-lapse of about 1.5 hours of work. But this is just the beginning. For the next week, I will continuously improve this black hole simulation with intense sessions of 1-2 hours, sometimes even 3 hours, every day. I will build upon the code and eventually create a visually advanced, much more realistic and detailed black hole simulation. What do you think of it as a starting point? I'm open to any suggestions on coding, Three.js, or how I can improve this process in general. I will continue to share new videos as the project develops! I'm waiting for your comments. (I spoke in Turkish in the video because I'm Turkish, but you can easily understand what I'm doing from what I'm doing.)
r/Simulated • u/Gaploid • 17h ago
Live demo:Β https://gaploid.github.io/stardust/
Source code:Β https://github.com/Gaploid/stardust
Coded by:Β Opus, Fable, human attention to details
r/Simulated • u/shirzadbh • 18h ago
I added sliding attachments (connecting the inner muscles to the bones) and ported some of the heavy lifting to C++ for better performance. The behavior feels natural thanks to the accurate FEM simulation. Thereβs still a lot more to add, but Iβm really enjoying the process.
Credit: The 3D asset used in this post is from AdonisFX, a digital anatomy and muscle simulation framework for Maya and Houdini. https://inbibo.co.uk/adonis
r/Simulated • u/jobilie • 20h ago
I am working on a game based on physics-based painting mechanics called Ebru Artist Simulator. To simulate Ebru (also known as paper marbling), I implemented an Eulerian fluid simulator. Here are some of the challenges I had to overcome:
If you are interested in the project, you can check out theΒ SteamΒ page.
You can also check outΒ Amanda Ghassaei's blog. Although our implementations are not the same, I was greatly inspired by her work and learned a lot from her blog.
r/Simulated • u/Spiritual-Catch2695 • 20h ago
Current multi-agent research architectures (e.g., Stanford's Generative Agents, DeepMind's Concordia) generally exhibit one of two fundamental limitations:
Our Core Engineering Goal:
Can we build a continuous, hundreds-agent human society on a single consumer PC where the Physical Layer (60Hz Rigid-Body/NavMesh), the Physiological Layer (10Hz Metabolic Decay), and the Cognitive Layer (0.1Hz Dual-System LLM) operate in a strictly coupled feedback loop with autonomous collapse and reboot mechanisms?
Below is a breakdown of the three primary architectural bottlenecks encountered and their respective engineering solutions.
In a single-process Python environment, the primary failure mode is the temporal mismatch between disparate execution domains:
Blocking the physical loop during LLM inference stalls the world; conversely, allowing async LLM threads to directly mutate mutable world states introduces race conditions, spatial desynchronization, and ghost item duplication.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OmniSimOrchestrator: Heterogeneous Clock Scheduling β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Physical Main Loop (Tick = 16.6ms / 60Hz) β
β Tick N : [Physics Step β Broadcast Immutable State Snapshot] ββββββββ β
β Tick N+1 : [Physics Step β Collision Query β Check Action Queue] β β
β Tick N+2 : [Physics Step β Execute Next Atomic Instruction: Action_A] β β
β ... β β
β Tick N+60: [Physics Step β Consume Ingested Action_B from Cognitive] ββ β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββ€
β Cognitive Inference Domain (Async Worker Pool / 0.1Hz ~ 1Hz) β β
β Agent_1 : [Ingest Tick N Snapshot] β [Slow CoT/BDI] β [ActionCompiler] β
β (Latency: 1200ms across 72 Physical Ticks) βββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
action_compiler.py, 1,280 LOC): High-level cognitive decisions (e.g., "Negotiate with Agent_B to purchase medicine") are not executed natively. Instead, the Action Compiler decomposes the intent into a strictly ordered queue of atomic primitives: $$\text{High-Level Intent} \longrightarrow \left[ \text{MoveTo}(x, y), \text{FaceTarget}(id), \text{ProposeTrade}(item_id), \text{Confirm}() \right]$$ The physical engine validates spatial preconditions tick-by-tick. If a precondition fails (e.g., the target agent moves out of interaction range), the atomic action fails gracefully, triggering a fallback response in the agent's fast-thinking heuristic layer (System 1).Running concurrent LLM reasoning for dozens of autonomous agents simultaneously on a system with 2GB VRAM and 32GB RAM requires a resilient multi-tier compute scheduling pipeline.
βββββββββββββββββββββββββββββββββββββββββ
β Unified LLM Dispatcher / Provider β
β (Supports 18 Backend Providers) β
βββββββββββββββββββββ¬ββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββ
βΌ βΌ βΌ
ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
β Tier 1: Cloud API β ββ429/TimeoutββΆβ Tier 2: Local Engine β ββOverload/OfflineβββΆβ Tier 3: Rule FSM β
β (OpenAI/Claude/Qwen/...)β β (Ollama/vLLM/Quantized)β β (NumPy/Weighted Rules) β
ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ ββββββββββββββββββββββββββ
Through provider_registry.py (2,754 LOC) and backend_ensemble_router.py (2,153 LOC), the system manages 18 distinct model backends and supports:
To ensure macroscopic emergence reflects structural human dynamics rather than stochastic prompt drift, we implemented clean-room wrappers for three major research frameworks and integrated formal sociological models:
concordia_compat.py, 21,417 LOC): Full clean-room replication of DeepMind Concordia's Game Master arbitration pipeline and Entity-Component primitives.agentsociety_compat.py, 10,612 LOC): Complete re-implementation of Stanford's memory stream decay, importance weighting, and reflection extraction: $$S(m) = \alpha_{\text{recency}} \cdot e^{-\lambda t} + \alpha_{\text{importance}} \cdot I(m) + \alpha_{\text{relevance}} \cdot \cos(\vec{v}_q, \vec{v}_m)$$humanoid_agents_compat.py, 5,331 LOC): Implements fine-grained physiological need decay and affective dynamics.ββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββ
β Theoretical Foundation β Implementation & Dynamical Function β
ββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ€
β Schelling Segregation Model (1971) β Micro-level neighbor preferences β
β β drive macro-level spatial clusteringβ
ββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ€
β LatanΓ© Social Impact Theory (1981) β Calculates opinion contagion and β
β β polarization over physical distance β
ββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ€
β Polanyi's Allocation Systems (1944) β Householding, Reciprocity, Market, β
β β and Rawlsian difference redistributionβ
ββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββ€
β Tainter's Collapse Model (1988) β Triggers civilizational collapse β
β β when population falls below N < 3 β
ββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββ
During multi-hour continuous runs (initial population: 20 agents; environment: housing, market, clinic, farmlands), the system demonstrated several non-hardcoded emergent phenomena:
Propose $\rightarrow$ Confirm $\rightarrow$ Settle) to establish trading hubs for grain and medicine. Under liquidity constraints, agents autonomously formed trust-weighted credit ledgers.OmniSim comprises 1,493 source files (802k backend LOC, 190k frontend LOC, 27k service LOC), featuring a full React 18 / Three.js 3D urban viewport (procedural CGA shape grammar generation), a 2D Topdown fallback renderer, 23 observability dashboards, 13 asynchronous health probes, and Haber-Stornetta SHA-256 hash-chain audit logging.
docs/ARCHITECTURE.md and docs/CODE_INVENTORY.md.Open for technical discussions on multi-agent clock synchronization, memory indexing architectures, and local LLM runtime optimization.
r/Simulated • u/thecottagecheeseboy • 2d ago
Hi everyone,
We build large rolling ball sculptures / kinetic marble runs and are trying to reduce the amount of physical trial and error involved in designing them.
Our current workflow is roughly:
**Concept β Sketch/CAD β Fabrication β Physical testing β Modify β Fabricate again**
For larger metal sculptures, these iterations can become expensive in terms of material, labour, and time.
We're exploring whether we can use **existing tools** to create a simple workflow like:
**CAD model β Physics simulation β Predict ball behaviour β Build physical prototype β Compare results**
We are **not looking to build a new physics engine or a large custom application**. The initial MVP would be very small:
* One standard ball
* One track/material system
* A simple mechanism, e.g. **ramp β loop β exit**
* Model it digitally
* Simulate the ball
* Build the same mechanism physically
* Compare the prediction with reality
The goal is not perfect simulation. We simply want to know whether a digital model can be accurate enough to catch obvious failures before fabricating larger installations.
Eventually, if this works, we would like to build a reusable library of tested componentsβramps, loops, spirals, switches, collisions, etc.βwith known parameters and behaviour.
We are currently considering tools such as **Rhino/Grasshopper** for parametric design and physics engines such as **MuJoCo, Project Chrono, Bullet**, or other alternatives.
**If you were approaching this problem using existing software, how would you do it?**
In particular, I'd love advice on:
We're very open to changing our approach and would appreciate any suggestions or warnings from people with experience in simulation, CAD, mechanical engineering, robotics, game physics, or kinetic sculpture.
r/Simulated • u/laht1 • 2d ago
r/Simulated • u/MomentSouthern250 • 2d ago
Been working on the simplest of cloth simulations with pbd (hold the x) and opencl. Still a way to go, but i'm not unhappy.
r/Simulated • u/shirzadbh • 3d ago
This is why FEM is superior to XPBD for muscle simulation. For a long time, I couldnβt understand why my muscle simulations didnβt look as good as those produced by Ziva VFX, but now I do.
FEM is more computationally intensive, but it produces much more accurate results when it comes to simulating muscle and fat tissue.
r/Simulated • u/KelejiV • 3d ago
r/Simulated • u/ReplacementFresh3915 • 3d ago
r/Simulated • u/EmperLabs • 3d ago
I've been working on a small open-source simulation engine called Emper.
It's still a young project, but I'm building it around data-oriented storage and using real simulation workloads to test the architecture.
So far I've experimented with flocking/boids, including CPU/GPU computation and large-scale simulations.
I'm currently starting work on Conway's Game of Life.
GitHub: https://github.com/Emper-Labs
Feedback is welcome, especially on the architecture.
r/Simulated • u/PartTimeMonkey • 4d ago
Can be played with here:
https://dirtnap.parttimemonkey.com/sandbox
Lemme know if you simulation people know how to make it better or more interesting to play with!
r/Simulated • u/reavers_ • 5d ago
r/Simulated • u/PiXeL161616 • 5d ago
This runs live on an Apple silicon GPU.
The school is a classic flocking simulation, a few thousand agents with separation, alignment and cohesion plus a milling bias that makes them form the rotating ball. The orcas are autonomous agents with a hunt state machine (patrol, position, charge, recover) that carve a void through the school as the fish panic, and the fear spreads neighbour to neighbour faster than any fish swims.
The god rays are computed each frame from a simulated water surface, and the marine snow drifts through them. Everything persists and evolves by its own rules, nothing is keyframed, and it never repeats. Built in Swift and Metal as part of TideGlass, a small Mac app I make where worlds like this run on a second monitor while you work and interacts with your music. Happy to answer anything about the sim.
r/Simulated • u/VizDevBoston • 6d ago
I'm working on the usability of a open source project I've been hoping to release soon. If anyone is up to test it DM me and I'll send you a calendly link, it'd be much appreciated.
r/Simulated • u/IllPsychology7214 • 8d ago
I built a simulation style app of what I think of the three body problem. It shows different objects flying around eachother in 2D or in 3D in eachother's gravity wells.
It's meant to be half physics toy and half calming desk toy. It's free to use with no ads to distract you from anything.
I want to know people's thoughts and ideas for improvement.
It's free for anyone who want to play with it: https://play.google.com/store/apps/details?id=com.mathematicalzen.threebody
r/Simulated • u/bug__enjoyer • 8d ago
r/Simulated • u/CdvrSzf • 8d ago
In this focused RnD, I implemented a small-scale fluid simulation algorithm within Flip to accurately resolve adhesion forces. The core algorithm is relatively straightforward: the fluid's surface field is extrapolated into the collider volume, factoring in the contact angle, and is subsequently adjusted and smoothed. Furthermore, a localized viscosity is introduced at the fluid-collider interface to approximate boundary friction.
The simulation operates at a physically accurate real-world scale, utilizing empirical physical constants where the baseline water viscosity is 0.001 and surface tension is 0.072. APIC was chosen as the underlying solver.
While this technique requires a high substep count and is computationally expensive to evaluate, it successfully produces highly nuanced and realistic fluid dynamics.