I try to check if an Actor can be seen by a user or if it is hidden behind another object. Currently I try doing this with a picker, since I thought it would only select the topmost Actor. But it selects all actors in its path, and I’ve run out of ideas.
Also adding only the desired Actors to the pick list does not work, because they will be picked any time
What I do currently (pseudocode)
point = [actor.x, actor.y, 0]
picker = vtkPointPicker.newInstance()
Now picker.getActors() will return all actors in the pickers ray cast, and they always have the same order to, so I can not decide if the actor can be seen by the user or is hidden behind one of the other actors.
Can anyone please help me?