lorensen / VTKExamples

The VTK examples, formerly hosted on media wiki
Apache License 2.0
349 stars 157 forks source link

ImageActor should be opaque for the HardwareSelector to work #598

Closed cvandijck closed 3 years ago

cvandijck commented 5 years ago

The PropPicker (HardwareSelector) does not work for the automatically generate noise image. Adding imageActor->ForceOpaqueOn() solves the issue.

ajpmaclean commented 5 years ago

@cvandijck There have been changes to the original code for this example, so please check it out again.

It would be better to do this:

  if (argc != 2)
  {
    // Image should be opaque for the HardwareSelector to work
    imageActor->ForceOpaqueOn();
  }

Since the picking already works Ok if the image ColorCells.tif is used.

ajpmaclean commented 3 years ago

Thanks for noticing this. This site is no longer maintained, please use the new site: vtk-examples. Please see the MR 154.