[vtkusers] vtkGPUVolumeRayCastMapper (OpenGL2) - Mask Input update

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Thu Dec 1 11:59:33 EST 2016


Seems like you've exposed a bug. Mind creating a merge request
<https://gitlab.kitware.com/vtk/vtk/merge_requests> to VTK. You can tag me
on the MR for review.

Thanks,
Sankhesh

On Wed, Nov 30, 2016 at 1:26 PM meow_fiz <meow at mat.uni.torun.pl> wrote:

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.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at:
http://www.vtk.org/Wiki/VTK_FAQ

Search the list archives at: http://markmail.org/search/?q=vtkusers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161201/f718c6d0/attachment.html>


More information about the vtkusers mailing list