Projects
SpringSim
Overview
SpringSim uses a physical mass-and-spring system to simulate cloth. Currently the model is a flag with two corners locked in place, and wind and gravity acting on it. I wrote this to hone my C++, multithreading, and GUI programming skills.
Highlights
- Written in C++ using WxWidgets and the STL.
- Uses separate threads for rendering and simulation. This allows multiple rendering frames per simulation step and vice versa.
- Performs RK4 numerical integration on the mass-spring system to achieve accurate simulation.
Still To Do
- Clean up and comment code.
- Add more interactivity to GUI.
- Fix remaining bugs and compile on Linux and Mac OS X
Source Code
Download SpringSim source code. This is distributed under the MIT License
OpenLogic
Overview
OpenLogic is a "digital logic simulator" - it allows you to wire together different digital components (AND gates, OR gates, switches, etc.) and see how they interact.
Tips
- Drag components from the palette on the left onto the work area to use them.
- When you put your mouse over a component, you'll see blue squares which you can attach wires to.
- To draw a wire, click on one of these squares, then hold shift and click somewhere else.
Try It
If the link above doesn't work you can download OpenLogic, then double-click on it. Either way, make sure you have at least Java 1.4 installed. If you don't, you can get it here.
Source Code
Download OpenLogic source code. This is distributed under the MIT License