Weiguang,<br><br>Thanks for the reply.&nbsp; I have no problem using the vtk classes in place of code that I already have.&nbsp; My issue is that I&#39;m not certain how to use the vtkCamera in place of my glFrustum call when I am creating a frustum where, for example, both the left and right sides of the front face of the frustum volume lie on the negative side of the y axis.&nbsp; From what I can tell, the vtkCamera can be given a viewing angle and a near and far plane, but that gives me the equivalent control of a gluPerspective call, which is more limited than the functionality that glFrustum provides.&nbsp; I noticed there was a function to multiply in additional matrices to the camera&#39;s transformation matrix, but I don&#39;t think that would be quite what I want either.
<br><br>-Mark Waligora<br><br><div class="gmail_quote">On Jan 3, 2008 1:08 PM, Weiguang Guan &lt;<a href="mailto:guanw@rhpcs.mcmaster.ca">guanw@rhpcs.mcmaster.ca</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Mark,<br><br>If you decide to move on to vtk, then you shouldn&#39;t called gl commands<br>directly. vtkCamera contains methods that implement what you want to do.<br><font color="#888888"><br>Weiguang<br></font><div><div>
</div><div class="Wj3C7c"><br>On Thu, 3 Jan 2008, Mark Waligora wrote:<br><br>&gt; Hey all,<br>&gt; I&#39;ve done quite a bit of searching and reading and am having some trouble<br>&gt; getting started integrating VTK into my application. &nbsp;I&#39;m a new user, but
<br>&gt; I&#39;ve spent enough time looking that I don&#39;t think I&#39;m missing anything too<br>&gt; obvious.<br>&gt;<br>&gt; I have a fairly simple visualization application written with OpenGL. &nbsp;I<br>&gt; want to visualize some more complicated data sets, so I wanted to write a
<br>&gt; version that works with VTK.<br>&gt;<br>&gt; My visualization application is fed in data from a motion capture system, so<br>&gt; right now, every time my application loop updates, it reads the data from<br>&gt; the mo-cap system, and updates the rendering with very specific calls to
<br>&gt; glFrustum and gluLookAt. &nbsp;The front face of the frustum volume is almost<br>&gt; never centered around the z axis, so I can&#39;t simulate the frustum creation<br>&gt; by simply providing a vtkCamera with a position, direction, and viewing
<br>&gt; angle. &nbsp;I need more control of the frustum shape than that functionality<br>&gt; seems to provide.<br>&gt;<br>&gt; Can anyone advise me on how to create a simple vtk application with no user<br>&gt; control where the frustum and camera position are automatically updated by
<br>&gt; the program every cycle of the main program loop? &nbsp;From what I can tell, I<br>&gt; don&#39;t want to use an interactor since the user will not be interacting with<br>&gt; the application (the user interacts with the motion capture system, and the
<br>&gt; application simply queries data from the motion capture system when it is<br>&gt; rendering). &nbsp;Again, I need to be able to create frustums that aren&#39;t<br>&gt; centered around the z axis.<br>&gt;<br>&gt; Thanks in advance!
<br>&gt;<br>&gt; -Mark Waligora<br>&gt;<br></div></div></blockquote></div><br>