Skip to content

Automatic camera placement can result in edge-on slice views (appears empty) #1715

Description

@mvictoras

When using the slice filter in Ascent without explicitly specifying a camera, the automatically computed camera position can be aligned nearly parallel to the slice plane. In these cases, the slice is rendered edge-on and appears empty (black image), even though the slice operation itself is successful.
This behavior is misleading, as it suggests the slice failed when it is actually a viewing issue.

Steps to Reproduce:

  1. Use a dataset with bounds similar to:
  • x ∈ [-0.05, 0.05]
  • y ∈ [-0.05, 0.05]
  • z ∈ [0, 1]
  1. Create a slice:
type: "slice"
params:
  point: {x: 0.0, y: 0.0, z: 0.5}
  normal: {x: 1.0, y: 0.0, z: 0.0}
  1. Do not specify a camera (use default rendering).

Observed Behavior:

  • The rendered image appears black or empty.
  • This gives the impression that the slice failed.

Expected Behavior:

  • The slice should be visible under default camera settings, or
  • The system should avoid placing the camera nearly parallel to the slice plane.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions