<div dir="ltr"><div>Hi, I have prepared a merge request in the gitlab repository, here the link:<br><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/882">https://gitlab.kitware.com/vtk/vtk/merge_requests/882</a><br>Let me know if it's okay!<br></div>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-02 16:32 GMT+01:00 Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Okay, I will push a API at the vtkOpenGL Camera level sometime today/tomorrow unless someone objects here. <div><br></div><div>Thanks,</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 5:18 PM, Antonella Cascitelli <span dir="ltr"><<a href="mailto:lenlen1982@gmail.com" target="_blank">lenlen1982@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">To summarize I need to render a small part of the whole scene as Roi Region Of Interest (ROI) in order to render a rectangle around an object without altering its geometry and prospective.</p><div><div>
<div class="gmail_quote">Il 29 ott 2015 8:23 PM, "Aashish Chaudhary" <<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 29, 2015 at 3:15 PM, Antonella Cascitelli <span dir="ltr"><<a href="mailto:lenlen1982@gmail.com" target="_blank">lenlen1982@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you, but I'm trying to render only a smaller part of image instead the whole image to save computational time.<br></div></div></blockquote><div><br></div><div>If that's the case, why not have a smaller viewport? I may be missing something here.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div></div>I have just modified vtkOpenGLCamera the call to glScissor with my custom arguments and It works... is it possible to expose a patch that allow a custom glScissor setting? What I have done is a dirty workaround, which would be the right class to add this new public method?  <br></div></blockquote><div><br></div><div>Hmm..not sure if that would be easy unless we just add an API to the vtkOpenGLCamera. I would be okay with the later option but wondering what others has to say on this. </div><div><br></div><div>- Aashish</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-29 19:52 GMT+01:00 Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You can achieve this by creating two renderers and then for the second one just a smaller viewport (on top of the first one). I am assuming that you are showing two images / data at the same time. <div><br></div><div>There is no API (as far as I know) to help you with this task. </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Oct 29, 2015 at 2:45 PM, Antonella Cascitelli <span dir="ltr"><<a href="mailto:lenlen1982@gmail.com" target="_blank">lenlen1982@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>is it possible set the glScissor in vtk?<br></div>i.e. in vtkOpenGLCamera:<br><br>glViewport(lowerLeft[0], lowerLeft[1], usize, vsize);<br>glEnable(GL_SCISSOR_TEST);<br>glScissor(lowerLeft[0], lowerLeft[1], usize, vsize);<br><br></div>so seems that the scissor area is always the same of the viewport.<br></div>I want to render only a small rectangle area in the viewport like using scissor with opengl.<br><br></div>Thanks<span><font color="#888888"><br><br></font></span></div><span><font color="#888888">Antonella<br></font></span></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div></div>
</blockquote></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><font face="trebuchet ms, sans-serif"><i>| Aashish Chaudhary <br>| Technical Leader         <br>| Kitware Inc.            <br></i></font><div><i><font face="trebuchet ms, sans-serif">| </font><a href="http://www.kitware.com/company/team/chaudhary.html" target="_blank">http://www.kitware.com/company/team/chaudhary.html</a></i></div></div></div>
</div>
</div></div></blockquote></div><br></div>