How does my special relativity simulator work?

Click For Summary
SUMMARY

The discussion centers on a special relativity simulator developed by Marko, which allows users to visualize relativistic motion of bodies in a 3D environment. Unlike other simulators, it does not include Doppler and headlight effects but offers unique features such as the ability to switch observers dynamically and rewind time. The simulator is built using cross-platform libraries and is available as open-source software, with a demo video and Linux build accessible at http://thelarge.org. Marko seeks feedback on the accuracy and correctness of the simulation from the physics community.

PREREQUISITES
  • Understanding of special relativity concepts such as time dilation and length contraction.
  • Familiarity with 3D graphics programming and simulation frameworks.
  • Knowledge of open-source software development practices.
  • Basic experience with Linux operating systems for running the simulator.
NEXT STEPS
  • Explore the physics of time dilation and length contraction in detail.
  • Learn about 3D graphics programming using libraries like OpenGL or Unity.
  • Investigate the implementation of dynamic simulations using OpenDynamicsEngine (ODE).
  • Review open-source projects for best practices in software development and community feedback.
USEFUL FOR

Physics enthusiasts, software developers interested in simulation, educators looking for teaching tools in relativity, and anyone involved in open-source projects related to scientific visualization.

markosr
Messages
3
Reaction score
0
Hello!

I have no formal relativistic education, however, I am plenty of an enthusiast. Finding relativity fascinating I decided to learn it the best way that I know of, that is - putting it into a computer program. So, I've written a special relativity simulator.

It doesn't show Doppler and headlight effects as some other fine simulators out there, but it can simulate relativistic motion of "bodies", their 3d models and has some features I haven't found elsewhere. It can show the scene as-observed (typical text-book view) or as-seen (with optical aberration). The camera is put outside of the current observer, which is rather unrealistic, but I find such 3rd person view to show with more clarity what is going on. The bodies can do accelerations, you can rewind the time and switch among observers on-the-fly (every body can be an observer). User interface is limited to 2D plane, but the engine is fully 3D capable. I've prepared several scripts/examples which you can try, such as the classical length contraction, time dilation, simultaneity, twin paradox, ladder and barn...

There are screens/video, a Linux build and source code available at http://thelarge.org . All the libraries used are cross-platform.

I though the physics forum would be the best place to kindly ask for some feedback. If anyone is interested, I'd appreciate any comments, especially on the correctness and accuracy of the simulation.

Cheers,
Marko
 
Physics news on Phys.org
The demo video looks cool, and it's great that this is open source. I assume you're familiar with the ANU videos.
 
Yes, I've seen those, also, they did Real Time Relativity, which is really nice :) . However, I believe RTR's world is pretty static, I wanted to do fully dynamic simulation, similar to Bullet or ODE (OpenDynamicsEngine), but relativistic. I wanted to be able to specify initial velocities and positions of the bodies, then have an update callback at each time-step to apply accelerations. The program keeps track of history/worldlines, so you can go back in time and switch observers. That way it is possible to, say, program a game or some other interactive dynamic simulation using special-relativistic physics.
 

Similar threads

  • · Replies 35 ·
2
Replies
35
Views
5K
  • · Replies 32 ·
2
Replies
32
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 20 ·
Replies
20
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 21 ·
Replies
21
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K