Skip to content

Flyby camera support#1449

Merged
chreden merged 25 commits intomasterfrom
issue/1443
Aug 3, 2025
Merged

Flyby camera support#1449
chreden merged 25 commits intomasterfrom
issue/1443

Conversation

@chreden
Copy link
Owner

@chreden chreden commented Jul 17, 2025

Add flyby cameras and flyby playback.
Flyby cameras appear in the world showing the path that the camera will take.
Flyby cameras are shown in the camera/sink window and the flyby can be played back to show an approximation of how it will appear in-game.
Closes #1443

chreden added 9 commits July 13, 2025 11:35
Render default cube mesh for flyby nodes

Moving camera around

Control camera from flyby window

Tests, rolling

Update Flyby.cpp

Catmull rom pos, target

Also fov and roll.
Initial camera states need to be restored after playback.

Update Flyby.cpp

Start updating state

Update a state instead of being stateless
Implement bit 7

Rearrange state

Index

Flags, other values

Show flags, timer, speed, room

Flag names

Add the frustum mesh

Fix roll for nodes

Restyle slider to be the bar

WIP on flybys
Generate the flyby path
Only render flyby if cameras are visible
Jump to next camera in path
@chreden chreden self-assigned this Jul 17, 2025
@chreden chreden added TR4 Tomb Raider IV TR5 Tomb Raider V labels Jul 17, 2025
@chreden chreden changed the title Issue/1443 Flyby camera support Aug 2, 2025
@chreden chreden added this to the Next milestone Aug 2, 2025
@chreden chreden marked this pull request as ready for review August 2, 2025 13:48
@chreden chreden requested a review from lahm86 August 2, 2025 13:49
Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Works really well. Just a few queries below.
I suppose it would be nice too if when you click on a trigger for a flyby, that it takes you to its first node in the view (similar to clicking a camera trigger). But that could be a future enhancement.

@chreden
Copy link
Owner Author

chreden commented Aug 2, 2025

I suppose it would be nice too if when you click on a trigger for a flyby, that it takes you to its first node in the view (similar to clicking a camera trigger).

Yes I forgot this - also this made me notice that the sequences aren't always 0, 1, 2... so I will show that number too

chreden added 4 commits August 2, 2025 18:26
Take the sequence number from the first camera node if present
#1443
Show the flyby number on pick hover
Uncomment commented code (diff support)
@chreden chreden merged commit c142f0e into master Aug 3, 2025
1 check passed
@chreden chreden deleted the issue/1443 branch August 3, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TR4 Tomb Raider IV TR5 Tomb Raider V

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show flyby cameras

2 participants