Skip to content

File with multiple actors only show first actor when coloring #2000

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

Closed
mwestphal opened this issue Feb 18, 2025 · 8 comments · Fixed by #2172
Closed

File with multiple actors only show first actor when coloring #2000

mwestphal opened this issue Feb 18, 2025 · 8 comments · Fixed by #2172
Assignees

Comments

@mwestphal
Copy link
Member

Describe the bug
Opening a file providing multiple actors is not working well with coloring

To Reproduce
Steps to reproduce the behavior:

  1. Open the file using f3d --no-config InterpolationTest.glb
  2. Press S

Image

Expected behavior
All actors should be visible, instead of the first one

@mwestphal mwestphal added this to F3D Feb 18, 2025
@mwestphal mwestphal moved this to Investigate in F3D Feb 18, 2025
@mwestphal mwestphal changed the title File with multiple actors not working well with coloring File with multiple actors only show first actor when coloring Feb 18, 2025
@exbluesbreaker
Copy link
Contributor

I would like to work on this issue

@mwestphal
Copy link
Member Author

Assigned! Its probably an issue in vtkF3DMetaImporter:245

@exbluesbreaker
Copy link
Contributor

Some minor update on the topic, since some time passed. Unfortunately, I didn't have much time last week and only worked a bit on it. But so far I didn't find any obvious to me issues in regard VTK state related to this issue (VTK-level visibility seems okish). So I am trying to track how visibility is tracked down directly to shaders/drawing as I do not understand why they are visible/invisible in a way they are.

@mwestphal
Copy link
Member Author

Hum, I'd have expected this to be more straitgorward, I can take a look if you want.

@exbluesbreaker
Copy link
Contributor

Hum, I'd have expected this to be more straitgorward, I can take a look if you want.

Maybe give me just a little bit more time. In general I am still exploring VTK and 3D graphics.

@exbluesbreaker
Copy link
Contributor

I got a bit sidetracked focusing on visibility, but the real issue was that all actors were being rendered in the same position—not just one being visible. You were right about the location in the code; it was in the constructor called at this line. I'll create a merge request soon.

@exbluesbreaker
Copy link
Contributor

Adding screenshot with fix from pull request

Image

@mwestphal
Copy link
Member Author

I got a bit sidetracked focusing on visibility, but the real issue was that all actors were being rendered in the same position—not just one being visible. You were right about the location in the code; it was in the constructor called at this line. I'll create a merge request soon.

Damn, I should have thought of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants