Skip to content

Add support for offscreen progress bars #3472

Description

@Meakk

Is your feature request related to a problem? Please describe.

When running f3d offscreen with large models, there is no clear way to check the loading progress.

Describe the solution you'd like

Run f3d huge_model.stl --output=/dev/null --verbose

Some kind of console progress bar should be implemented for at least two steps:

  • Importer loading (1)
  • Animation in the case of image sequence or video output

(1) Interactive progress is handled here:

    if (this->Interactor && !this->Window.isOffscreen())
    {
      f3d::color_t color = this->Options.ui.loader_progress_color;
      scene_impl::internals::CreateProgressRepresentationAndCallback(
        &callbackData, this->MetaImporter, this->Interactor, color);
    }

Could write something like:

Loading model.glb : 50% |██████████          | [00:13 / 00:26]

With an estimated total time if possible.

Ideally, no external library should be used and f3d::log should be improved to support that.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Contribution
Please tell us if you are able to contribute (Can you develop this new feature?)
Don't worry, you can still post a feature request if you cannot contribute!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

  • Status
    Discuss

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions