Panda 1.8.0 on Mac OSX 10.6.8, python 2.7.2
It seems like direct.filter.FilterManager breaks such that it only renders part of the scene to part of the window (leaving what ever was previously there in the rest) if:
non power of 2 textures are not enabled
The window gets resized
from panda3d.core import loadPrcFileData #loadPrcFileData('', 'textures-power-2 none') from panda3d.core import Texture from direct.showbase.ShowBase import ShowBase ShowBase() loader.loadModel("models/environment").reparentTo(render) from direct.filter.FilterManager import FilterManager from direct.filter.CommonFilters import CommonFilters #filters = CommonFilters(base.win, base.cam) #filters.setBloom(blend=(0,0,0,1), desat=0.5, intensity=1.0, size="large",mintrigger=0.0, maxtrigger=1.0) manager = FilterManager(base.win, base.cam) finalquad = manager.renderSceneInto(colortex=Texture()) finalquad.setColor(1,1,1,1) base.run()
Both the bloom filter and my do nothing filter break if the window is resized. Only my do nothing filter breaks before resizing if power of 2 textures are not enabled (bloom works correctly in this case until the window is resized).
I want resizing the window to not break my filters. What do I do?
What I get when I run this: