Skip to content

vtkRenderer background color ignored on initial rendering in local mode #84

@ppebay

Description

@ppebay

Description:

When using vtkRenderer in a Trame application with local mode using a SinglePageWithDrawerLayout instance, the specified background color is not displayed on initial rendering with no data. Instead, the background appears white until the user interacts with the UI, after which the correct background color is rendered.

In contrast, in remote mode, the proper background color appears initially as expected.

Environment:

System: macOS Sonoma 14.3
Browser: Chrome
VTK Version: 9.4.2 (pip)
Trame Version: 3.8.2 (pip)
Trame-VTK version: 2.8.15 (pip)

Notes:

This appears to be a timing or render sync issue specific to local mode rendering. It may be related to VtkRemoteLocalView not triggering an initial render or the render window not being fully initialized at the moment SetBackground() is called.

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