<div>On Tue, Jul 26, 2011 at 5:54 PM, David Gobbi <span dir="ltr">&lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;</span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br>
<br>
You should never, ever call renderer-&gt;Render().  That method is only<br>
meant to be called by the vtkRenderWindow.  The documentation says<br>
so quite clearly.  By calling it you are probably causing some timestamps<br>
to be set (indicating that all actors in the renderer have rendered), but you<br>
aren&#39;t actually doing any rendering.  Then, when you call<br>
renderWindow-&gt;Render() it sees that those timestamps have been updated<br>
and thinks that there is nothing to be done.<br>
<br>
Also it is a good idea to always set the ViewUp when setting the<br>
Position and FocalPoint.  All three are needed in order to uniquely<br>
define the view transform.<br>
<font color="#888888"><br>
 - David</font></blockquote><div><br></div><div>Thanks for pointing that out. After removing those calls, it works properly:</div><div><br></div><div>  vtkCamera* camera = renderer-&gt;GetActiveCamera();</div><div>  camera-&gt;SetPosition(450, 100, 100);</div>
<div>  camera-&gt;SetFocalPoint(200, 0, 0);</div><div>  camera-&gt;SetViewUp(0, 0, 1);</div><div>  </div><div>  renderWindow-&gt;Render();</div><div>  renderWindowInteractor-&gt;Start();</div><div><br></div><div>However, if I have called renderWindow-&gt;Render(); before positioning the camera, even if I call Modified() on the renderer and renderWindow before the next Render() call, the output is still incorrect before an interaction occurs:</div>
<div><br></div><div><div>  renderWindow-&gt;Render();</div><div><br></div><div>  vtkCamera* camera = renderer-&gt;GetActiveCamera();</div><div>  camera-&gt;SetPosition(450, 100, 100);</div><div>  camera-&gt;SetFocalPoint(200, 0, 0);</div>
<div>  camera-&gt;SetViewUp(0, 0, 1);</div><div><br></div><div>  renderer-&gt;Modified();</div><div>  renderWindow-&gt;Modified();</div><div>  renderWindow-&gt;Render();</div><div>  renderWindowInteractor-&gt;Start();</div>
</div><div><br></div><div>Does this make sense?</div><div><br></div><div><div>Thanks,</div></div><br><div>David </div></div>