Skip to content

feature: default orbit in given time #2016

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

v0id-strike
Copy link
Contributor

@v0id-strike v0id-strike commented Feb 24, 2025

added --camera-orbit option and test the option

Fix: #1743

Copy link

You are modifying libf3d public API! ⚠️Please update bindings accordingly⚠️!
You can find them in their respective directories: python, java, webassembly.

@@ -237,6 +237,24 @@ void animationManager::Tick()
{
this->Window.render();
}

// Check if camera orbit option is enabled
if (this->Options.scene.camera.orbitTime > 0)
Copy link
Member

Choose a reason for hiding this comment

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

I dont think camera orbit should be handled in animation, but it should be handled in the eventLoop directly.

Copy link
Member

Choose a reason for hiding this comment

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

I even think the camera orbit should be handled in the application event loop, not in the lib

namespace options {
namespace scene {
struct camera {
double orbit_time = 0.0;
Copy link
Member

Choose a reason for hiding this comment

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

that not how you add an option, look at options.json :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

@v0id-strike
Copy link
Contributor Author

my bad : )

@mwestphal
Copy link
Member

So we discussed it in discord, lets implement that in the application event loop :)

@v0id-strike
Copy link
Contributor Author

On it 🫡

@mwestphal
Copy link
Member

Hi @v0id-strike ! Do you need help moving forward ?

@v0id-strike
Copy link
Contributor Author

Sorry, i was busy with semesters.
Will finish as soon as possible after semester

@mwestphal
Copy link
Member

No problem, thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a CLI option to generate an animated camera orbit
2 participants