[vtkusers] vtkGPUVolumeRayCastMapper (OpenGL2) - Mask Input update

meow_fiz meow at mat.uni.torun.pl
Wed Nov 30 13:26:36 EST 2016


I've downloaded latest VTK from GIT (git clone
https://gitlab.kitware.com/vtk/vtk.git VTK). I guess it's the latest. But
the problem remains.

calling MaskInputData->Modified();  does not do any update to volume Mask

My temp solution until I find the right one:

(temporarily i've edited vtkOpenGLGPUVolumeRayCastMapper.cxx file -
GPURender( ... ) by forcing to call LoadMask when mask was modified:

if (this->Impl->NeedToInitializeResources ||
      (input->GetMTime() > this->Impl->InputUpdateTime.GetMTime()))
  {
    volumeModified = true;
    input->GetDimensions(this->Impl->Dimensions);

    // Update bounds, data, and geometry
    this->Impl->ComputeBounds(input);
    this->Impl->LoadVolume(ren, input, volumeProperty,
                           scalars, independentComponents);
    this->Impl->ComputeCellToPointMatrix();
    this->Impl->LoadMask(ren, input, this->MaskInput,
                         this->Impl->Extents, vol);
  }
  else
  {
       ///---------------------changed lines

	  if (MaskInput->GetMTime() >Impl->ShaderBuildTime.GetMTime())
	  this->Impl->LoadMask(ren, input, this->MaskInput,
		  this->Impl->Extents, vol);
        //-------------------- end of changed lines

    this->Impl->UpdateVolume(volumeProperty);
  }

 
Regards,
Michal




--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRayCastMapper-OpenGL2-Mask-Input-update-tp5741322p5741375.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list