render to buffer instead of window

You’d have to create a display region on it using makeDisplayRegion, and call setCamera(base.cam).

If you use the FilterManager class, this sort of setup is all automated.