<div dir="ltr"><div dir="ltr" class="gmail_msg">Seems like you've exposed a bug. Mind creating a <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests">merge request</a> to VTK. You can tag me on the MR for review. <div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Thanks,</div><div class="gmail_msg">Sankhesh</div></div><br class="gmail_msg"><div class="gmail_quote gmail_msg"><div dir="ltr" class="gmail_msg">On Wed, Nov 30, 2016 at 1:26 PM meow_fiz <<a href="mailto:meow@mat.uni.torun.pl" class="gmail_msg" target="_blank">meow@mat.uni.torun.pl</a>> wrote:<br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've downloaded latest VTK from GIT (git clone<br class="gmail_msg">
<a href="https://gitlab.kitware.com/vtk/vtk.git" rel="noreferrer" class="gmail_msg" target="_blank">https://gitlab.kitware.com/vtk/vtk.git</a> VTK). I guess it's the latest. But<br class="gmail_msg">
the problem remains.<br class="gmail_msg">
<br class="gmail_msg">
calling MaskInputData->Modified(); does not do any update to volume Mask<br class="gmail_msg">
<br class="gmail_msg">
My temp solution until I find the right one:<br class="gmail_msg">
<br class="gmail_msg">
(temporarily i've edited vtkOpenGLGPUVolumeRayCastMapper.cxx file -<br class="gmail_msg">
GPURender( ... ) by forcing to call LoadMask when mask was modified:<br class="gmail_msg">
<br class="gmail_msg">
if (this->Impl->NeedToInitializeResources ||<br class="gmail_msg">
(input->GetMTime() > this->Impl->InputUpdateTime.GetMTime()))<br class="gmail_msg">
{<br class="gmail_msg">
volumeModified = true;<br class="gmail_msg">
input->GetDimensions(this->Impl->Dimensions);<br class="gmail_msg">
<br class="gmail_msg">
// Update bounds, data, and geometry<br class="gmail_msg">
this->Impl->ComputeBounds(input);<br class="gmail_msg">
this->Impl->LoadVolume(ren, input, volumeProperty,<br class="gmail_msg">
scalars, independentComponents);<br class="gmail_msg">
this->Impl->ComputeCellToPointMatrix();<br class="gmail_msg">
this->Impl->LoadMask(ren, input, this->MaskInput,<br class="gmail_msg">
this->Impl->Extents, vol);<br class="gmail_msg">
}<br class="gmail_msg">
else<br class="gmail_msg">
{<br class="gmail_msg">
///---------------------changed lines<br class="gmail_msg">
<br class="gmail_msg">
if (MaskInput->GetMTime() >Impl->ShaderBuildTime.GetMTime())<br class="gmail_msg">
this->Impl->LoadMask(ren, input, this->MaskInput,<br class="gmail_msg">
this->Impl->Extents, vol);<br class="gmail_msg">
//-------------------- end of changed lines<br class="gmail_msg">
<br class="gmail_msg">
this->Impl->UpdateVolume(volumeProperty);<br class="gmail_msg">
}<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
Regards,<br class="gmail_msg">
Michal<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRayCastMapper-OpenGL2-Mask-Input-update-tp5741322p5741375.html" rel="noreferrer" class="gmail_msg" target="_blank">http://vtk.1045678.n5.nabble.com/vtkGPUVolumeRayCastMapper-OpenGL2-Mask-Input-update-tp5741322p5741375.html</a><br class="gmail_msg">
Sent from the VTK - Users mailing list archive at Nabble.com.<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Powered by <a href="http://www.kitware.com" rel="noreferrer" class="gmail_msg" target="_blank">www.kitware.com</a><br class="gmail_msg">
<br class="gmail_msg">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
<br class="gmail_msg">
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" class="gmail_msg" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br class="gmail_msg">
<br class="gmail_msg">
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" class="gmail_msg" target="_blank">http://markmail.org/search/?q=vtkusers</a><br class="gmail_msg">
<br class="gmail_msg">
Follow this link to subscribe/unsubscribe:<br class="gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br class="gmail_msg">
</blockquote></div><div dir="ltr" class="gmail_msg markdown-here-signature">-- <br class="gmail_msg"></div><div data-smartmail="gmail_signature" class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="m_-2403717110871844972markdown-here-wrapper gmail_msg" style="font-family:'Proza Libre',sans-serif;color:rgb(0,56,107)"><h5 id="m_-2403717110871844972sankhesh-jhaveri" style="color:rgb(0,65,107);margin:1.3em 0px 1em;padding:0px;font-weight:bold;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)" class="gmail_msg">Sankhesh Jhaveri</h5>
<h6 id="m_-2403717110871844972-sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417" style="color:rgb(0,65,107);margin:1.3em 0px 1em;padding:0px;font-weight:bold;font-size:1em;color:rgb(11,83,148);font-family:'Open Sans',sans-serif;font-weight:normal" class="gmail_msg"><em class="gmail_msg">Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/" class="gmail_msg" target="_blank">Kitware</a> | <a href="tel:(518)%20881-4417" value="+15188814417" class="gmail_msg" target="_blank">(518) 881-4417</a></h6>
<div title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDEx
LCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48
L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
aXY+PC9kaXY+PC9kaXY+" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0" class="gmail_msg"></div></div></div></div></div>