Hi all, I’m new (very new, in two weeks) in Panda3d and hence I use Panda3d 1.8.1. I’m trying to add my filter to the scene but found that the antialiasing doesn’t work for the offscreen buffer.
I add the filter by using the approach introcuded in the Manual:
Thanks for your reply! …but the problem is not solved yet. I tried to modify the FilterManager.py by adding a line:
in the createBuffer (where the 16 is obtained from base.win.getFbProperties() )but gets a wierd dim scene:
After comparing the FrameBufferProperties of base.win and the buffer I found that the depthbit is not equal (where the buffer is 1 and the base.win is 24). Then I added another line trying to hack this:
Now the color is right again, but I got the edges PARTLY SMOOTH!
I think the performance is between the two images I posted before, and get no idea again
Call getFbProperties() on the buffer after it has been created and print it; does it meet the amount of bits that were requested?
Unfortunately, multisample buffers are a bit of an untested feature in Panda, so there may still be some bugs. You may also search the forums for FXAA, however, which I believe is antialiasing implemented as a postprocessing filter - this may be straightforward to integrate with FilterManager. I could be wrong, though.
One thing you can try to mimic a AA effect is to request a buffer 2x the size of
your screen resolution. When that oversized buffer is downsized to your
native screen resolution, the smoothing will effectively give you some filtering.
Your test pics look pretty simple shader wise, so you may not incur a large
speed penalty doing this.