<div dir="ltr"><div class="markdown-here-wrapper" style="font-family:"Lucida Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)"><p style="margin:0px 0px 1.2em!important">Yes, all the graphics allocations/deallocations happen during Render. The render call should ensure that the texture object is bound correctly.</p>
<div title="MDH:WWVzLCBhbGwgdGhlIGdyYXBoaWNzIGFsbG9jYXRpb25zL2RlYWxsb2NhdGlvbnMgaGFwcGVuIGR1
cmluZyBSZW5kZXIuIFRoZSByZW5kZXIgY2FsbCBzaG91bGQgZW5zdXJlIHRoYXQgdGhlIHRleHR1
cmUgb2JqZWN0IGlzIGJvdW5kIGNvcnJlY3RseS4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 25, 2018 at 11:32 AM Matthew Troke <<a href="mailto:matthew.troke@avalonholographics.com">matthew.troke@avalonholographics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">No I did not - I'm assuming that's important? I appear to be having trouble binding a texture in a render pass if the texture was created with another render window as the context. <div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 25, 2018, 10:25 AM Sankhesh Jhaveri <<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_-4197328605001413653m_-8055271533264000501markdown-here-wrapper" style="font-family:"Lucida Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)"><p style="margin:0px 0px 1.2em!important">Did you call <code style="font-size:0.95em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(218,218,218);background-color:rgb(232,232,232);border-radius:3px;display:inline">Render</code> on the new render window after adding the renderer and before invoking the renderer method?</p>
<div title="MDH:RGlkIHlvdSBjYWxsIGBSZW5kZXJgIG9uIHRoZSBuZXcgcmVuZGVyIHdpbmRvdyBhZnRlciBhZGRp
bmcgdGhlIHJlbmRlcmVyIGFuZCBiZWZvcmUgaW52b2tpbmcgdGhlIHJlbmRlcmVyIG1ldGhvZD8=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 23, 2018 at 11:35 AM Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com" rel="noreferrer" target="_blank">elvis.stansvik@orexplore.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I think a colleague did something like this for an "export image" feature at work where we wanted to control the resolution of the exported inage.<div dir="auto"><br></div><div dir="auto">I can have a look at how he worked around gotchas/crashes, but not until Monday (on my way home).<div dir="auto"><br></div><div dir="auto">I think the window and renderer have mutual references to each other and need to be broken apart in the right order... Something like that..</div></div></div><div dir="auto"><div dir="auto"><div dir="auto"><br></div><div dir="auto">Elvis</div></div></div><br><div class="gmail_quote"><div dir="ltr">Den fre 23 nov. 2018 17:00Matthew Troke <<a href="mailto:matthew.troke@avalonholographics.com" rel="noreferrer" target="_blank">matthew.troke@avalonholographics.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Once a vtkRenderer is attached to a vtkRenderWindow, can it be removed and added to a another vtkRenderWindow temporarily to perform an operation in isolation?</div><div><br></div><div>Here is what I tried:</div><div>- removed renderer from its current window with RemoveRenderer()</div><div>- created a new vtkRenderWindow with vtkNew and added renderer with AddRenderer()</div><div>- I called a method on the renderer (which is my own derived class of vtkOpenGLRenderer); inside this method, I create a new vtkTextureObject using the context from the renderwindow and Create2DFromRaw(). This method fails with an exception in vtkTextureObject::Bind() (Handle is null)</div><div><br></div><div>If I don't remove and add the renderer to another window, I don't get the exception.<br> </div><div><div><br>-- <br><div dir="ltr" class="m_-4197328605001413653m_-8055271533264000501m_-2485763348453347320m_-4939717794022060328gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="color:rgb(0,0,0)">Matthew Troke</span></div><div><span style="color:rgb(0,0,0)">Software Engineer</span></div><div><img src="http://www.avalonholographics.com/img/logo.png" width="200" height="46"></div><div><span style="color:rgb(0,0,0)">Office: <a href="tel:(709)%20701-0239" value="+17097010239" rel="noreferrer" target="_blank">1-709-701-0239</a></span></div><div><span style="color:rgb(0,0,0)">Email:</span> <a href="mailto:matthew.troke@avalonholographics.com" rel="noreferrer noreferrer" target="_blank">matthew.troke@avalonholographics.com</a></div></div></div></div></div></div></div></div>

<br>
<span lang="EN-CA"><div><i style="background-color:rgb(255,255,255);color:red;font-family:arial,sans-serif;font-size:12.8px;font-weight:bold">This email and any attachments are confidential and may be privileged. Any unauthorized use, disclosure, copying or distribution of the information received is prohibited. If you are not the intended recipient please contact the sender immediately by return email confirming that you have and will delete all communications related to the email and any attachments sent to you in error.</i></div></span>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer noreferrer noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer noreferrer noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>-- <br><div dir="ltr" class="m_-4197328605001413653m_-8055271533264000501gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="m_-4197328605001413653m_-8055271533264000501inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-markdown-here-wrapper" style="font-family:"proza libre",sans-serif;color:rgb(0,56,107)"><h5 id="m_-4197328605001413653m_-8055271533264000501inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-sankhesh-jhaveri" style="margin:1.3em 0px 1em;padding:0px;font-size:1.1em;border-bottom:1px solid rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh Jhaveri</h5>
<h6 id="m_-4197328605001413653m_-8055271533264000501inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417" style="margin:1.3em 0px 1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:"open sans",sans-serif;font-weight:normal"><em>Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">Kitware</a> | <a href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Swgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
aXY+PC9kaXY+PC9kaXY+" style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div></div></div>
</blockquote></div>

<br>
<span lang="EN-CA"><div><i style="background-color:rgb(255,255,255);color:red;font-family:arial,sans-serif;font-size:12.8px;font-weight:bold">This email and any attachments are confidential and may be privileged. Any unauthorized use, disclosure, copying or distribution of the information received is prohibited. If you are not the intended recipient please contact the sender immediately by return email confirming that you have and will delete all communications related to the email and any attachments sent to you in error.</i></div></span></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-markdown-here-wrapper" style="font-family:"proza libre",sans-serif;color:rgb(0,56,107)"><h5 id="inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox-sankhesh-jhaveri" style="margin:1.3em 0px 1em;padding:0px;font-size:1.1em;border-bottom:1px solid rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh Jhaveri</h5>
<h6 id="inbox-inbox-inbox-inbox-inbox-inbox-inbox-inbox--sr-research-development-engineer-kitware-http-www-kitware-com-518-881-4417" style="margin:1.3em 0px 1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:"open sans",sans-serif;font-weight:normal"><em>Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/">Kitware</a> | (518) 881-4417</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:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div></div></div>