Skip to content

macOS arm64 reset camera with a different view angle than other platforms #3375

Description

@mwestphal

Describe the bug
In certain specific conditions, F3D reset camera on load ends up with a different view angle on macOS arm64 for some reason.

To Reproduce
Steps to reproduce the behavior:

  1. Download f3d 3.5.0
  2. f3d dragon.vtu --resolution=300,300 --colormap-file=viridis --coloring-component=0
  3. print_scene_info
Camera position: 334.215, 169.822, 341.61
Camera focal point: 2.23745, 3.83305, 9.63185
Camera view up: -0.235702, 0.942809, -0.235702
Camera view angle: 31.8889

Expected behavior
All other platforms:

Camera position: 334.215, 169.822, 341.61
Camera focal point: 2.23745, 3.83305, 9.63185
Camera view up: -0.235702, 0.942809, -0.235702
Camera view angle: 32.1111

There is also an obvious visual difference:

Image Image

System Information:

  • OS: macOS arm64
  • GPU and GPU driver: Any (reproduced with osmesa and native cocoa)

F3D Information
Paste the content of f3d --version or f3d-console.exe --version on Windows: 3.5.0 and master

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status
    Discuss

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions