[vtk-developers] OpenGL2 : VBO update missing for mapper2d

Xabi Riobe xabivtk at gmail.com
Wed Oct 7 10:00:27 EDT 2015


Yes it fixes the issue.
And i was the one that reported the initial problem linked to the topic, so
i will be double happy to see it merged when appropriate :)

Thanks Ken !

2015-10-07 14:48 GMT+02:00 Ken Martin <ken.martin at kitware.com>:

> Yes, topic
>
>
>
> https://gitlab.kitware.com/vtk/vtk/merge_requests/607
>
>
>
> has a fix for it. I just have been too chicken to try merging that patch.
> But the fix you need is in the diffs.
>
>
>
> Thanks
>
> Ken
>
>
>
> Ken Martin PhD
>
> Chairman & CFO
>
> Kitware Inc.
>
> 28 Corporate Drive
>
> Clifton Park NY 12065
>
> ken.martin at kitware.com
>
> 919 869-8871 (w)
>
>
>
>
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>
>
>
> *From:* vtk-developers [mailto:vtk-developers-bounces at vtk.org] *On Behalf
> Of *Xabi Riobe
> *Sent:* Wednesday, October 7, 2015 5:50 AM
> *To:* VTK Developers
> *Subject:* [vtk-developers] OpenGL2 : VBO update missing for mapper2d
>
>
>
> Hi,
>
>
>
> There is a missing update of the VBO in vtkOpenGLPolyDataMapper2D when we
> use TransformCoordinate and the viewport changes.
>
>
>
> In the attached example, a plane is rendered to cover the full window, but
> if you resize the window, the plane does not update.
>
>
>
> Maybe in vtkOpenGLPolyDataMapper2D::RenderOverlay, we should had a test on
> the viewport MTime when updating the VBO? It works if i force to pass this
> condition and update:
>
>
>
>   if (this->VBOUpdateTime < this->GetMTime() ||
>
>       this->VBOUpdateTime < actor->GetMTime() ||
>
>       this->VBOUpdateTime < input->GetMTime() )
>
>     {
>
>     this->UpdateVBO(actor, viewport);
>
>     this->VBOUpdateTime.Modified();
>
>     }
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20151007/0288d0de/attachment-0001.html>


More information about the vtk-developers mailing list