[vtkusers] How to define a frustum?

Christopher Denter dennda at the-space-station.com
Mon Feb 8 09:02:55 EST 2010


Hi,

my application is quite slow. Whenever I tell vtk to render() it takes some time which results in noticable lag because the rest of the application doesn't draw the UI or accept input. I want to minimize this by dividing the image to be rendered in smaller tiles. I then want to render tile 1, then draw the UI and accept input, render tile 2, draw UI, accept input and so on until the last tile is rendered. When that happens, I assemble all tiles together and swap it with the current image. That won't make the rendering faster, but the UI "feels" more responsive (in theory).

For that, I need to be able to define an asymmetric frustum for the camera. How would I do that? Basically, I need the VTK equivalent of glFrustum. What I was able to find by looking at the docs was rather something like gluPerspective.

Can anybody toss me into the right direction? I appreciate any help on this. (I'm using the python bindings).

All the best,
	Christopher


More information about the vtkusers mailing list