I was just wondering if anyone had figured out how to get AA working in conjuction with the Filtermanager?
Cos Im very close to giving myself mild concussion from repeatedly banging my head against my desk.
For those that are not aware AA doesnt work if you use any of the common filters or set up your own with Filtermanager.
The strange thing is it does work if you set it all up by hand.
i.e turning on AA on Tut-Glow-advance.py seems to work as it doesnt use filterManager and sets up the buffers by hand but Tut-Glow-Basic.py doesnt as it uses CommonFilters.
Hmm, it does sound like trouble, all right. I have little direct experience with the FilterManager, but surely someone else has tried this?
Well got it working.
its a bit of a hack right now and I still need to figure out exactly whats happening. Only works with a few of the Commonfilters like bloom. but defo works with my own shaders.
def __init__(self, win, cam, forcex=0, forcey=0):
def createBuffer(self, name, xsize, ysize, texgroup, depthbits=1):
""" Low-level buffer creation. Not intended for public use. """
winprops = WindowProperties()
depthtex, colortex, auxtex0, auxtex1 = texgroup
if (auxtex0 != None):
if (auxtex1 != None):
self.win.getPipe(), name, -1,
props, winprops, GraphicsPipe.BFRefuseWindow | GraphicsPipe.BFResizeable,
if (buffer == None):
buffer.addRenderTexture(depthtex, GraphicsOutput.RTMBindOrCopy, GraphicsOutput.RTPDepth)
buffer.addRenderTexture(colortex, GraphicsOutput.RTMBindOrCopy, GraphicsOutput.RTPColor)
buffer.addRenderTexture(auxtex0, GraphicsOutput.RTMBindOrCopy, GraphicsOutput.RTPAuxRgba0)
buffer.addRenderTexture(auxtex1, GraphicsOutput.RTMBindOrCopy, GraphicsOutput.RTPAuxRgba1)
self.nextsort += 1
#print "filtermanager buffer properties",buffer.getFbProperties()