The camera flies between the stadium and its surroundings

Coming from the other view of the model, or laying the view back, the picture
moves and zooms there in 0.7 seconds; with reduced motion it stands there at once.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 21:04:13 +01:00
1 parent c60b0e9b2c
commit d9b0590705
3 files changed
+35 -3

No files matched your search

+8
View File
@@ -515,6 +515,13 @@ class App final : public Rml::EventListener {
std::array<double, 2> stadium_tip_at_{}; // where its name is shown, in units of the page
std::vector<stadium_scene::Hot> stadium_hots_; // the parts of the view that is shown
std::array<double, 3> stadium_cam(bool outer);
// the flight of the camera from one view of the model to the other: where it started,
// where it is, where it lands; `stadium_seen_` is the view that was drawn last
std::array<double, 3> stadium_from_{}, stadium_now_{}, stadium_to_{};
bool stadium_flying_ = false;
uint64_t stadium_flight_start_ = 0;
std::string stadium_seen_;
void stadium_flight_tick();
std::string stadium_cam_style(const std::array<double, 3> &cam);
bool stadium_stage_event(Rml::Event &);
std::string render_stadium_data();
@@ -1333,6 +1340,7 @@ class App final : public Rml::EventListener {
void frame() {
engine_create_poll();
engine_files_poll();
stadium_flight_tick();
if (engine_mode_) { engine_frame(); return; }
front_poll();
flush_selects();