How immohammedsahil/martian works
MARTIAN is a native C++/OpenGL cinematic sequence engine: the runtime advances an 84.3-second timeline through orbit, separation, atmospheric entry, and a Martian landing, then presents the finale. The README documents the scene director, camera interpolation, optical post-processing, audio, and optional video export. The sampled main-loop excerpt shows rendering and input handling, while the README supplies several subsystem relationships; unsampled implementation details are not inferred.
Main entry points: main.cpp Runtime Loop · SceneDirector.cpp Scene Director · AudioEngine.cpp Audio Engine · VideoExporter.cpp Video Exporter
Components 16
Runtime Control
- Runtime Loop
main.cpp - Scene Director
SceneDirector.cpp - Timing Editor
TimingEditor.cpp
Sequence Scenes
- Orbit Scene
Scene1.cpp - Separation Scene
Scene2.cpp - Entry Scene
Scene3.cpp - Dune Scene
Scene4.cpp
Visual Systems
- Planet Rendering
Planet.cpp - Starfield
Starfield.cpp - Spacecraft and Particles
Spacecraft.cpp - Optical Post-Processing
PostProcess.cpp
Media Output
- Audio Engine
AudioEngine.cpp - Track or Synth
- Video Exporter
VideoExporter.cpp - FFmpeg
Other components
- Viewer
Connections 12
- Viewer → Runtime Loop: starts runtime
- Runtime Loop → Scene Director: advances timeline
- Scene Director → Orbit Scene: selects scene
- Scene Director → Separation Scene: selects scene
- Scene Director → Entry Scene: selects scene
- Scene Director → Dune Scene: selects scene
- Runtime Loop → Timing Editor: handles timing input
main.cpp - Runtime Loop → Optical Post-Processing: renders cinema post
main.cpp - Runtime Loop → Audio Engine: updates playback
- Audio Engine → Track or Synth: plays track or fallback
AudioEngine.cpp - Runtime Loop → Video Exporter: optionally captures frames
- Video Exporter → FFmpeg: pipes video